[PATCH] arm64: dts: rockchip: Set gpioN aliases on RK3576
From: Alexey Charkov
Date: Mon Sep 14 2026 - 04:53:05 EST
With no alias, the OS is free to number the GPIO chips arbitrarily, such
as in probe order, which is what Linux kernel's rockchip_gpio_probe() does
if its of_alias_get_id(np, "gpio") fails.
This results in GPIO chip numbers arbitrarily shuffled in userspace,
causing confusion and pain.
Set gpioN aliases in the SoC .dtsi, just like other SoC versions do.
Signed-off-by: Alexey Charkov <alchark@xxxxxxxxxxx>
---
arch/arm64/boot/dts/rockchip/rk3576.dtsi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3576.dtsi b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
index d418bfc04097..e87ace5d05e6 100644
--- a/arch/arm64/boot/dts/rockchip/rk3576.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3576.dtsi
@@ -21,6 +21,11 @@ / {
#size-cells = <2>;
aliases {
+ gpio0 = &gpio0;
+ gpio1 = &gpio1;
+ gpio2 = &gpio2;
+ gpio3 = &gpio3;
+ gpio4 = &gpio4;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
---
base-commit: 68142f986ff04b2b70b31db00f719bf690f64a9a
change-id: 20260914-rk3576-gpio-aliases-9c0a6088b59f
Best regards,
--
Alexey Charkov <alchark@xxxxxxxxxxx>