Skip to content

Commit 8bcbd03

Browse files
Ye ZhangBartosz Golaszewski
authored andcommitted
gpio: rockchip: support new version GPIO
Support the next version GPIO controller on SoCs like rk3576. Signed-off-by: Ye Zhang <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 4120930 commit 8bcbd03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpio-rockchip.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define GPIO_TYPE_V1 (0) /* GPIO Version ID reserved */
3636
#define GPIO_TYPE_V2 (0x01000C2B)
3737
#define GPIO_TYPE_V2_1 (0x0101157C)
38+
#define GPIO_TYPE_V2_2 (0x010219C8)
3839

3940
static const struct rockchip_gpio_regs gpio_regs_v1 = {
4041
.port_dr = 0x00,
@@ -670,6 +671,7 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
670671
switch (id) {
671672
case GPIO_TYPE_V2:
672673
case GPIO_TYPE_V2_1:
674+
case GPIO_TYPE_V2_2:
673675
bank->gpio_regs = &gpio_regs_v2;
674676
bank->gpio_type = GPIO_TYPE_V2;
675677
bank->db_clk = of_clk_get(bank->of_node, 1);

0 commit comments

Comments
 (0)