ARM: dts: renesas: fix BSC nodes
Subsystems (2)
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.
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
PATCH 1/2 ARM: dts: renesas: add proper node names to (L)BSC devices
(L)BSC should have a "bus" node name together with its register set [1]. Add the missing names, and change one with a wrong address not matching the register space.
[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
@@ -36,7 +36,7 @@ b_clk: b { clock-div = <3>; }; - bsc: bsc { + bsc: bus@3fffc000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7778.dtsi +1 -1
@@ -40,7 +40,7 @@ aliases { spi2 = &hspi2; }; - bsc: bus@1c000000 { + bsc: bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7779.dtsi +1 -1
@@ -704,7 +704,7 @@ R8A7779_CLK_MMC1 R8A7779_CLK_MMC0 }; }; - lbsc: lbsc { + lbsc: bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
arch/arm/boot/dts/renesas/r8a7792.dtsi +1 -1
@@ -84,7 +84,7 @@ extal_clk: extal { clock-frequency = <0>; }; - lbsc: lbsc { + lbsc: bus@fec00000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.45.2
Re: [PATCH 1/2] ARM: dts: renesas: add proper node names to (L)BSC devices
Hi Wolfram,
Quoted 3 lines · Wolfram Sang
(L)BSC should have a "bus" node name together with its register set [1]. Add the missing names, and change one with a wrong address not matching the register space.
Thanks for your patch!
Quoted 1 line
[1] lbsc: $nodename:0: 'lbsc' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'
The "@<unit-address>" part is optional.
Quoted 13 lines
Signed-off-by Wolfram Sang <[email protected]>--- 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 +0
-0
arch/arm/boot/dts/renesas/r7s72100.dtsi b_clk: b { · line 39
Quoted 5 lines
arch/arm/boot/dts/renesas/r7s72100.dtsi +1
-1@@ -36,7 +36,7 @@ b_clk: b { clock-div = <3>; }; - bsc: bsc { + bsc: bus@3fffc000 {
In the absence of a "reg" property, shouldn't the unit-address match the "ranges" property?
Actually, I cannot find that in the DT spec, only:
"If the node has no reg property, the @unit-address must be omitted".
arch/arm/boot/dts/renesas/r8a7778.dtsi aliases { · line 43
Quoted 13 lines
arch/arm/boot/dts/renesas/r7s72100.dtsi +0
-0compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;arch/arm/boot/dts/renesas/r8a7778.dtsi +1
-1@@ -40,7 +40,7 @@ aliases { spi2 = &hspi2; }; - bsc: bus@1c000000 { + bsc: bus@ff800000 {
"ranges" says 0x1c000000, so the former was correct?
arch/arm/boot/dts/renesas/r8a7779.dtsi R8A7779_CLK_MMC1 R8A7779_CLK_MMC0 · line 707
Quoted 13 lines
arch/arm/boot/dts/renesas/r8a7778.dtsi +0
-0compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;arch/arm/boot/dts/renesas/r8a7779.dtsi +1
-1@@ -704,7 +704,7 @@ R8A7779_CLK_MMC1 R8A7779_CLK_MMC0 }; }; - lbsc: lbsc { + lbsc: bus@ff800000 {
0x1c000000 according to "ranges".
arch/arm/boot/dts/renesas/r8a7792.dtsi extal_clk: extal { · line 87
Quoted 13 lines
arch/arm/boot/dts/renesas/r8a7779.dtsi +0
-0compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;arch/arm/boot/dts/renesas/r8a7792.dtsi +1
-1@@ -84,7 +84,7 @@ extal_clk: extal { clock-frequency = <0>; }; - lbsc: lbsc { + lbsc: bus@fec00000 {
0x1c000000 according to "ranges".
arch/arm/boot/dts/renesas/r8a7792.dtsi extal_clk: extal { · line 90
Quoted 3 lines
arch/arm/boot/dts/renesas/r8a7792.dtsi +0
-0compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
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
Re: [PATCH 1/2] ARM: dts: renesas: add proper node names to (L)BSC devices
Hi Geert,
thanks for the review!
Quoted 1 line
The "@<unit-address>" part is optional.
Ah! Then, I actually prefer dropping the unit address.
Quoted 3 lines
Actually, I cannot find that in the DT spec, only:
"If the node has no reg property, the @unit-address must be omitted".
Sounds good to me. However, sh73a0 and r8a73a4 are still a bit strange. They have a unit-address because they have a reg-property which is documented for renesas,bsc. However, there is no driver for the BSC. AFAICS, this could work as well with "simple-pm-bus" and we could drop the renesas,bsc bindings? This probably is a separate issue, though.
Happy hacking,
Wolfram
Re: [PATCH 1/2] ARM: dts: renesas: add proper node names to (L)BSC devices
Hi Wolfram,
Quoted 3 lines · Wolfram Sang
Quoted 1 line
The "@<unit-address>" part is optional.
Ah! Then, I actually prefer dropping the unit address.
Fine for me!
Quoted 9 lines
Quoted 3 lines
Actually, I cannot find that in the DT spec, only:
"If the node has no reg property, the @unit-address must be omitted".
Sounds good to me. However, sh73a0 and r8a73a4 are still a bit strange. They have a unit-address because they have a reg-property which is documented for renesas,bsc. However, there is no driver for the BSC. AFAICS, this could work as well with "simple-pm-bus" and we could drop the renesas,bsc bindings? This probably is a separate issue, though.
You can have DT bindings without a (full) driver.
Probably the other (L)BSC variants could be extended with a register block and interrupts, too, but so far we didn't have a need to describe them fully.
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
PATCH 2/2 ARM: dts: renesas: r8a7778: rename 'bsc' to 'lbsc'
In reply to Wolfram SangR-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
@@ -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
@@ -40,7 +40,7 @@ aliases { spi2 = &hspi2; }; - bsc: bus@ff800000 { + lbsc: bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.45.2