Skip to contentSkip to conversation

Move core bus and gpio aliases to SoC dtsi for RK3128

PATCH Applied Alex Bee 2 participants 6 messages Dec 2, 2023 – Dec 5, 2023

Subsystems (2)
lore
Share & tools
lore

Alex Bee

author
#0 lore raw

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
author
#1 lore raw

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
index c38f42497cbd..776a483cc26b 100644
@@ -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
index 61b9f069c8a2..b448e2b96e08 100644
@@ -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
index 4e8b38604ecd..5b751284d6ca 100644
@@ -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
author
#2 lore raw

PATCH 2/3 ARM: dts: rockchip: Move i2c aliases to SoC dtsi for RK3128

In reply to Alex Bee

SoC 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
index 776a483cc26b..c7ab7fcdb436 100644
@@ -12,7 +12,6 @@ / {
 	compatible = "rockchip,rk3128-evb", "rockchip,rk3128";
 
 	aliases {
-		i2c1 = &i2c1;
 		mmc0 = &emmc;
 	};
 
arch/arm/boot/dts/rockchip/rk3128.dtsi +4 -0
index 5b751284d6ca..dc149d98cf9e 100644
@@ -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
author
#3 lore raw

PATCH 1/1 ARM: dts: rockchip: Move uart aliases to SoC dtsi for RK3128

In reply to Alex Bee

SoC 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
index b448e2b96e08..6e46e839de39 100644
@@ -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
index dc149d98cf9e..edf90ebd7ff9 100644
@@ -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
maintainer Applied
#4 lore raw
In reply to Alex Bee
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: 39732a49803cf271454416341549df09c4a2fd2f

I 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]>
author
#5 lore raw

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: 39732a49803cf271454416341549df09c4a2fd2f

I 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,