19e6c6a4f5cac2fc2eee4cce2147ae1445043fd4
[openwrt/staging/ansuel.git] /
1 From a024abedbca99a20aeb96f5beec9ded13c85dcb3 Mon Sep 17 00:00:00 2001
2 From: Heiko Stuebner <heiko.stuebner@cherry.de>
3 Date: Tue, 5 Dec 2023 17:48:41 +0100
4 Subject: [PATCH] arm64: dts: rockchip: add rk3588 gpio aliases to soc dtsi
5
6 The gpio controllers on rk3588 are named gpio0 - gpio4. Board schematics
7 also use these exact numbers and we want those names to also reflect
8 in the OS devices because everything else would just cause confusion.
9 Userspace gpio access is a thing afterall.
10
11 To prevent each board repeating their list of gpio aliases, define them
12 in the soc dtsi, as previous Rockchip soc like the rk356x do already.
13
14 Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
15 Reviewed-by: Dragan Simic <dsimic@manjaro.org>
16 Link: https://lore.kernel.org/r/20231205164842.556684-4-heiko@sntech.de
17 ---
18 arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 5 +++++
19 1 file changed, 5 insertions(+)
20
21 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
22 +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi
23 @@ -19,6 +19,11 @@
24 #size-cells = <2>;
25
26 aliases {
27 + gpio0 = &gpio0;
28 + gpio1 = &gpio1;
29 + gpio2 = &gpio2;
30 + gpio3 = &gpio3;
31 + gpio4 = &gpio4;
32 i2c0 = &i2c0;
33 i2c1 = &i2c1;
34 i2c2 = &i2c2;