[PATCH v2 5/8] gpio: rockchip: support new version GPIO
Bartosz Golaszewski
brgl at kernel.org
Sat Dec 6 03:04:28 PST 2025
On Sat, 6 Dec 2025 06:08:41 +0100, Ye Zhang <ye.zhang at rock-chips.com> said:
> Support the next version GPIO controller on SoCs like rv1126b.
>
> Signed-off-by: Ye Zhang <ye.zhang at rock-chips.com>
> ---
> drivers/gpio/gpio-rockchip.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c
> index 47174eb3ba76..c3e831c6bcf1 100644
> --- a/drivers/gpio/gpio-rockchip.c
> +++ b/drivers/gpio/gpio-rockchip.c
> @@ -36,6 +36,7 @@
> #define GPIO_TYPE_V2 (0x01000C2B)
> #define GPIO_TYPE_V2_1 (0x0101157C)
> #define GPIO_TYPE_V2_2 (0x010219C8)
> +#define GPIO_TYPE_V2_6 (0x01063F6E)
>
> static const struct rockchip_gpio_regs gpio_regs_v1 = {
> .port_dr = 0x00,
> @@ -674,6 +675,7 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
> case GPIO_TYPE_V2:
> case GPIO_TYPE_V2_1:
> case GPIO_TYPE_V2_2:
> + case GPIO_TYPE_V2_6:
> bank->gpio_regs = &gpio_regs_v2;
> bank->gpio_type = GPIO_TYPE_V2;
> bank->db_clk = of_clk_get(bank->of_node, 1);
> --
> 2.34.1
>
>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the linux-arm-kernel
mailing list