Skip to content

Commit 04c521c

Browse files
Johan Jonkermmind
authored andcommitted
ARM: dts: rockchip: add gpio alias for gpio dt nodes
Rockchip SoC TRM, SoC datasheet and board schematics always refer to the same gpio numbers - even if not all are used for a specific board. In order to not have to re-define them for every board add the aliases to SoC dtsi files. Co-developed-by: Jianqun Xu <jay.xu@rock-chips.com> Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com> Signed-off-by: Johan Jonker <jbx6244@gmail.com> Reviewed-by: Dragan Simic <dsimic@manjaro.org> Link: https://lore.kernel.org/r/89f2a229-9f14-d43f-c53d-5d4688e70456@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 33898f2 commit 04c521c

5 files changed

Lines changed: 25 additions & 0 deletions

File tree

arch/arm/boot/dts/rockchip/rk3036.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
interrupt-parent = <&gic>;
1818

1919
aliases {
20+
gpio0 = &gpio0;
21+
gpio1 = &gpio1;
22+
gpio2 = &gpio2;
2023
i2c0 = &i2c0;
2124
i2c1 = &i2c1;
2225
i2c2 = &i2c2;

arch/arm/boot/dts/rockchip/rk3066a.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
/ {
1414
compatible = "rockchip,rk3066a";
1515

16+
aliases {
17+
gpio4 = &gpio4;
18+
gpio6 = &gpio6;
19+
};
20+
1621
cpus {
1722
#address-cells = <1>;
1823
#size-cells = <0>;

arch/arm/boot/dts/rockchip/rk322x.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
interrupt-parent = <&gic>;
1616

1717
aliases {
18+
gpio0 = &gpio0;
19+
gpio1 = &gpio1;
20+
gpio2 = &gpio2;
21+
gpio3 = &gpio3;
1822
serial0 = &uart0;
1923
serial1 = &uart1;
2024
serial2 = &uart2;

arch/arm/boot/dts/rockchip/rk3288.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919

2020
aliases {
2121
ethernet0 = &gmac;
22+
gpio0 = &gpio0;
23+
gpio1 = &gpio1;
24+
gpio2 = &gpio2;
25+
gpio3 = &gpio3;
26+
gpio4 = &gpio4;
27+
gpio5 = &gpio5;
28+
gpio6 = &gpio6;
29+
gpio7 = &gpio7;
30+
gpio8 = &gpio8;
2231
i2c0 = &i2c0;
2332
i2c1 = &i2c1;
2433
i2c2 = &i2c2;

arch/arm/boot/dts/rockchip/rk3xxx.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
aliases {
1818
ethernet0 = &emac;
19+
gpio0 = &gpio0;
20+
gpio1 = &gpio1;
21+
gpio2 = &gpio2;
22+
gpio3 = &gpio3;
1923
i2c0 = &i2c0;
2024
i2c1 = &i2c1;
2125
i2c2 = &i2c2;

0 commit comments

Comments
 (0)