Move core bus and gpio aliases to SoC dtsi for RK3128
Subsystems (2)
cover Move core bus and gpio aliases to SoC dtsi for RK3128
Following up the recent discussion [0] about where aliases can be/should be placed this series moves gpio, i2c and uart aliases to SoC dtsi for RK3128.
Note: This patches are based on maintainter's repo.
[0] https://lore.kernel.org/all/[email protected]/T/#m94aebb23a29b015d94b250a70b675febdaa902ea
Alex Bee (3):
ARM: dts: rockchip: Move gpio aliases to SoC dtsi for RK3128
ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128
ARM: dts: rockchip: Move uart aliases to SoC dtsi for RK3128
arch/arm/boot/dts/rockchip/rk3128-evb.dts | 5 ----- arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts | 7 +------ arch/arm/boot/dts/rockchip/rk3128.dtsi | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 11 deletions(-)
base-commit: fd610e604837936440ef7c64ab6998b004631647
Signature · 1 line
2.43.0
PATCH 1/3 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.
--- arch/arm/boot/dts/rockchip/rk3128-evb.dts | 4 ---- arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts | 4 ---- arch/arm/boot/dts/rockchip/rk3128.dtsi | 7 +++++++ 3 files changed, 7 insertions(+), 8 deletions(-)
arch/arm/boot/dts/rockchip/rk3128-evb.dts +0 -4
@@ -12,10 +12,6 @@ / { compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; aliases { - gpio0 = &gpio0; - gpio1 = &gpio1; - gpio2 = &gpio2; - gpio3 = &gpio3; i2c1 = &i2c1; mmc0 = &emmc; };
arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts +0 -4
@@ -11,10 +11,6 @@ / { compatible = "geniatech,xpi-3128", "rockchip,rk3128"; aliases { - gpio0 = &gpio0; - gpio1 = &gpio1; - gpio2 = &gpio2; - gpio3 = &gpio3; mmc0 = &emmc; mmc1 = &sdmmc; serial0 = &uart1;
arch/arm/boot/dts/rockchip/rk3128.dtsi +7 -0
@@ -15,6 +15,13 @@ / { #address-cells = <1>; #size-cells = <1>; + aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + }; + arm-pmu { compatible = "arm,cortex-a7-pmu"; interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.43.0
PATCH 2/3 ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128
In reply to Alex BeeSoC TRM, SoC datasheet and board schematics always refer to the same i2c 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 all other Rockchip ARM SoCs.
--- arch/arm/boot/dts/rockchip/rk3128-evb.dts | 1 - arch/arm/boot/dts/rockchip/rk3128.dtsi | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-)
arch/arm/boot/dts/rockchip/rk3128-evb.dts +0 -1
@@ -12,7 +12,6 @@ / { compatible = "rockchip,rk3128-evb", "rockchip,rk3128"; aliases { - i2c1 = &i2c1; mmc0 = &emmc; };
arch/arm/boot/dts/rockchip/rk3128.dtsi +4 -0
@@ -20,6 +20,10 @@ aliases { gpio1 = &gpio1; gpio2 = &gpio2; gpio3 = &gpio3; + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; }; arm-pmu {
Signature · 1 line
2.43.0
PATCH 1/1 ARM: dts: rockchip: Move uart aliases to SoC dtsi for RK3128
In reply to Alex BeeSoC TRM, SoC datasheet and board schematics always refer to the same uart 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 all other Rockchip ARM SoCs.
--- arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts | 3 +-- arch/arm/boot/dts/rockchip/rk3128.dtsi | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/rockchip/rk3128-xpi-3128.dts +1 -2
@@ -13,7 +13,6 @@ / { aliases { mmc0 = &emmc; mmc1 = &sdmmc; - serial0 = &uart1; }; memory@60000000 {
@@ -22,7 +21,7 @@ memory@60000000 { }; chosen { - stdout-path = "serial0:115200n8"; + stdout-path = &uart1; }; adc-keys {
arch/arm/boot/dts/rockchip/rk3128.dtsi +3 -0
@@ -24,6 +24,9 @@ aliases { i2c1 = &i2c1; i2c2 = &i2c2; i2c3 = &i2c3; + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; }; arm-pmu {
Signature · 1 line
2.43.0
Quoted 8 lines · Alex Bee
Following up the recent discussion [0] about where aliases can be/should be placed this series moves gpio, i2c and uart aliases to SoC dtsi for RK3128.
Note: This patches are based on maintainter's repo.
[0] https://lore.kernel.org/all/[email protected]/T/#m94aebb23a29b015d94b250a70b675febdaa902ea
[...]
Applied, thanks!
[1/3] ARM: dts: rockchip: Move gpio aliases to SoC dtsi for RK3128
commit: 3b0422a4ce59d8afb84bd7516bf71a3c1caa7925
[2/3] ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128
commit: 39732a49803cf271454416341549df09c4a2fd2fI also applied patch 3 ... though had to pick it manually from the list as the subject was a bit garbled (missing 3/3), so b4 did not pick it up.
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>
Hi Heiko,
Am 05.12.23 um 01:05 schrieb Heiko Stuebner:
Quoted 11 lines · Alex Bee
Quoted 8 lines
Following up the recent discussion [0] about where aliases can be/should be placed this series moves gpio, i2c and uart aliases to SoC dtsi for RK3128.
Note: This patches are based on maintainter's repo.
[0] https://lore.kernel.org/all/[email protected]/T/#m94aebb23a29b015d94b250a70b675febdaa902ea
[...]
Applied, thanks!
Quoted 7 lines
[1/3] ARM: dts: rockchip: Move gpio aliases to SoC dtsi for RK3128
commit: 3b0422a4ce59d8afb84bd7516bf71a3c1caa7925 [2/3] ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128 commit: 39732a49803cf271454416341549df09c4a2fd2fI also applied patch 3 ... though had to pick it manually from the list as the subject was a bit garbled (missing 3/3), so b4 did not pick it up.
Thanks and sorry for the mess.
Not sure how I managed to get this done :) Will double check next time before submitting.
Alex
Quoted 2 lines
Best regards,