[PATCH 6/8] gpio: gpio-rockchip.c: Add support for GPIO_TYPE_V2_2

David Jander david at protonic.nl
Sun Aug 10 23:40:24 PDT 2025


This is the version found in the RK3576.

Signed-off-by: David Jander <david at protonic.nl>
---
 drivers/gpio/gpio-rockchip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-rockchip.c b/drivers/gpio/gpio-rockchip.c
index 2c13e97b97..db8a045e8b 100644
--- a/drivers/gpio/gpio-rockchip.c
+++ b/drivers/gpio/gpio-rockchip.c
@@ -13,6 +13,7 @@
 #define GPIO_TYPE_V1		(0)           /* GPIO Version ID reserved */
 #define GPIO_TYPE_V2		(0x01000C2B)  /* GPIO Version ID 0x01000C2B */
 #define GPIO_TYPE_V2_1		(0x0101157C)  /* GPIO Version ID 0x0101157C */
+#define GPIO_TYPE_V2_2		(0x010219C8)  /* GPIO Version ID 0x010219C8 */
 
 struct rockchip_gpiochip {
 	struct device			*dev;
@@ -159,7 +160,7 @@ static int rockchip_gpio_probe(struct device *dev)
 	reg_base = rgc->reg_base;
 
 	id = readl(reg_base + 0x78);
-	if (id == GPIO_TYPE_V2 || id == GPIO_TYPE_V2_1)
+	if (id == GPIO_TYPE_V2 || id == GPIO_TYPE_V2_1 || id == GPIO_TYPE_V2_2)
 		gpio_type = GPIO_TYPE_V2;
 	else
 		gpio_type = GPIO_TYPE_V1;
-- 
2.47.2




More information about the barebox mailing list