Skip to content

Commit 5ca860f

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: Move gpio aliases to SoC dtsi for RK3128
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 move the aliases to SoC dtsi for RK3128 like it's being done for most other Rockchip ARM SoCs. Signed-off-by: Alex Bee <knaerzche@gmail.com> Link: https://lore.kernel.org/r/20231202130506.66738-3-knaerzche@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 5d7d06e commit 5ca860f

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

arch/arm/boot/dts/rockchip/rk3128-evb.dts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
compatible = "rockchip,rk3128-evb", "rockchip,rk3128";
1313

1414
aliases {
15-
gpio0 = &gpio0;
16-
gpio1 = &gpio1;
17-
gpio2 = &gpio2;
18-
gpio3 = &gpio3;
1915
i2c1 = &i2c1;
2016
mmc0 = &emmc;
2117
};

arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts

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

1313
aliases {
1414
ethernet0 = &gmac;
15-
gpio0 = &gpio0;
16-
gpio1 = &gpio1;
17-
gpio2 = &gpio2;
18-
gpio3 = &gpio3;
1915
mmc0 = &emmc;
2016
mmc1 = &sdmmc;
2117
serial0 = &uart1;

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
#address-cells = <1>;
1717
#size-cells = <1>;
1818

19+
aliases {
20+
gpio0 = &gpio0;
21+
gpio1 = &gpio1;
22+
gpio2 = &gpio2;
23+
gpio3 = &gpio3;
24+
};
25+
1926
arm-pmu {
2027
compatible = "arm,cortex-a7-pmu";
2128
interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,

0 commit comments

Comments
 (0)