Skip to contentSkip to conversation

ARM: dts: renesas: fix BSC nodes

PATCH In review Wolfram Sang 2 participants 6 messages Sep 26, 2024 – Oct 5, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover ARM: dts: renesas: fix BSC nodes

While cleaning up the Genmai DTS, I stumbled upon further checks regarding the (L)BSC. These patches fix them.

Change since v1:
* drop the unit-address

Wolfram Sang (2):
ARM: dts: renesas: add proper node names to (L)BSC devices
ARM: dts: renesas: r8a7778: rename 'bsc' to 'lbsc'

 arch/arm/boot/dts/renesas/r7s72100.dtsi     | 2 +-
 arch/arm/boot/dts/renesas/r8a7778-bockw.dts | 2 +-
 arch/arm/boot/dts/renesas/r8a7778.dtsi      | 2 +-
 arch/arm/boot/dts/renesas/r8a7779.dtsi      | 2 +-
 arch/arm/boot/dts/renesas/r8a7792.dtsi      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.45.2
#1 lore raw

PATCH v2 1/2 ARM: dts: renesas: add proper node names to (L)BSC devices

(L)BSC must have a "bus" node name [1] and no unit-address because there is no reg-property. Fix these entries.

[1] lbsc: $nodename:0: 'lbsc' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'

---
 arch/arm/boot/dts/renesas/r7s72100.dtsi | 2 +-
 arch/arm/boot/dts/renesas/r8a7778.dtsi  | 2 +-
 arch/arm/boot/dts/renesas/r8a7779.dtsi  | 2 +-
 arch/arm/boot/dts/renesas/r8a7792.dtsi  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/renesas/r7s72100.dtsi +1 -1
index 07ffd9ec96cc..fa26e4a39fd7 100644
@@ -36,7 +36,7 @@ b_clk: b {
 		clock-div = <3>;
 	};
 
-	bsc: bsc {
+	bsc: bus {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7778.dtsi +1 -1
index b80e832c9277..ab3e42bded8c 100644
@@ -40,7 +40,7 @@ aliases {
 		spi2 = &hspi2;
 	};
 
-	bsc: bus@1c000000 {
+	bsc: bus {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7779.dtsi +1 -1
index 1944703cba4f..e437c22f452d 100644
@@ -704,7 +704,7 @@ R8A7779_CLK_MMC1 R8A7779_CLK_MMC0
 		};
 	};
 
-	lbsc: lbsc {
+	lbsc: bus {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7792.dtsi +1 -1
index dd3bc32668b7..08cbe6c13cee 100644
@@ -84,7 +84,7 @@ extal_clk: extal {
 		clock-frequency = <0>;
 	};
 
-	lbsc: lbsc {
+	lbsc: bus {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.45.2
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] ARM: dts: renesas: add proper node names to (L)BSC devices

Quoted 6 lines · Wolfram Sang

(L)BSC must have a "bus" node name [1] and no unit-address because there is no reg-property. Fix these entries.

[1] lbsc: $nodename:0: 'lbsc' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'

i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#3 lore raw

PATCH v2 2/2 ARM: dts: renesas: r8a7778: rename 'bsc' to 'lbsc'

In reply to Wolfram Sang

R-Car Gen1 has an LBSC which has quite a different register set from the former BSC. To match H1 with M1, rename the nodes to LBSC.

---
 arch/arm/boot/dts/renesas/r8a7778-bockw.dts | 2 +-
 arch/arm/boot/dts/renesas/r8a7778.dtsi      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/renesas/r8a7778-bockw.dts +1 -1
index a3f9d74e8877..d79095470a02 100644
@@ -61,7 +61,7 @@ sndcodec: simple-audio-card,codec {
 	};
 };
 
-&bsc {
+&lbsc {
 	flash@0 {
 		compatible = "cfi-flash";
 		reg = <0x0 0x04000000>;
arch/arm/boot/dts/renesas/r8a7778.dtsi +1 -1
index ab3e42bded8c..859dd29dfce3 100644
@@ -40,7 +40,7 @@ aliases {
 		spi2 = &hspi2;
 	};
 
-	bsc: bus {
+	lbsc: bus {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 1 line
2.45.2
Reviewed-by on v2 2/2
#4 lore raw

Re: [PATCH v2 2/2] ARM: dts: renesas: r8a7778: rename 'bsc' to 'lbsc'

Quoted 2 lines · Wolfram Sang

R-Car Gen1 has an LBSC which has quite a different register set from the former BSC. To match H1 with M1, rename the nodes to LBSC.

M1 with H1?

Quoted 2 lines

i.e. will queue in renesas-devel for v6.13.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#5 lore raw

Re: [PATCH v2 2/2] ARM: dts: renesas: r8a7778: rename 'bsc' to 'lbsc'

Quoted 6 lines · Geert Uytterhoeven
Quoted 2 lines · Wolfram Sang

R-Car Gen1 has an LBSC which has quite a different register set from the former BSC. To match H1 with M1, rename the nodes to LBSC.

M1 with H1?

Yes. Argh, M1 numbering (7778) is before H1 (7779), grmbl...