arm64: dts: r8a77995: Add MSIOF device nodes
Subsystems (3)
PATCH 1/2 arm64: dts: r8a77995: Add MSIOF device nodes
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +66 -0
@@ -783,6 +783,72 @@ compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>; }; + + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x0064>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + clock-names = "msiof_clk"; + dmas = <&dmac1 0x41>, <&dmac1 0x40>, + <&dmac2 0x41>, <&dmac2 0x40>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 210>; + clock-names = "msiof_clk"; + dmas = <&dmac1 0x43>, <&dmac1 0x42>, + <&dmac2 0x43>, <&dmac2 0x42>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 210>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 209>; + clock-names = "msiof_clk"; + dmas = <&dmac0 0x45>, <&dmac0 0x44>; + dma-names = "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 209>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 208>; + clock-names = "msiof_clk"; + dmas = <&dmac0 0x47>, <&dmac0 0x46>; + dma-names = "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 208>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; timer {
Signature · 1 line
2.7.4
PATCH 2/2 spi: sh-msiof: Document R-Car D3 support
Document support for the MSIOF module in the Renesas D3 (r8a77995) SoC.
No driver update is needed.
--- Documentation/devicetree/bindings/spi/sh-msiof.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/spi/sh-msiof.txt +1 -0
@@ -11,6 +11,7 @@ Required properties: "renesas,msiof-r8a7795" (R-Car H3) "renesas,msiof-r8a7796" (R-Car M3-W) "renesas,msiof-r8a77965" (R-Car M3-N) + "renesas,msiof-r8a77995" (R-Car D3) "renesas,msiof-sh73a0" (SH-Mobile AG5) "renesas,sh-mobile-msiof" (generic SH-Mobile compatibile device) "renesas,rcar-gen2-msiof" (generic R-Car Gen2 and RZ/G1 compatible device)
Signature · 1 line
2.7.4
Re: [PATCH 2/2] spi: sh-msiof: Document R-Car D3 support
Quoted 5 lines · Ulrich Hecht
Document support for the MSIOF module in the Renesas D3 (r8a77995) SoC.
No driver update is needed.
Signed-off-by Ulrich Hecht <[email protected]>
Quoted 19 lines
--- Documentation/devicetree/bindings/spi/sh-msiof.txt | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/spi/sh-msiof.txt +1
-0@@ -11,6 +11,7 @@ Required properties: "renesas,msiof-r8a7795" (R-Car H3) "renesas,msiof-r8a7796" (R-Car M3-W) "renesas,msiof-r8a77965" (R-Car M3-N) + "renesas,msiof-r8a77995" (R-Car D3) "renesas,msiof-sh73a0" (SH-Mobile AG5) "renesas,sh-mobile-msiof" (generic SH-Mobile compatibile device) "renesas,rcar-gen2-msiof" (generic R-Car Gen2 and RZ/G1 compatible device)Signature · 1 line
2.7.4
Re: [PATCH 2/2] spi: sh-msiof: Document R-Car D3 support
In reply to Ulrich HechtQuoted 5 lines · Ulrich Hecht
Document support for the MSIOF module in the Renesas D3 (r8a77995) SoC.
No driver update is needed.
Signed-off-by Ulrich Hecht <[email protected]>
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
Hi Uli,
Quoted 7 lines · Ulrich Hecht
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
Signed-off-by Hiromitsu Yamasaki <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>[uli: remove unimplemented ref clock]
I think you should remove the clock-names properties, too.
Quoted 20 lines
Signed-off-by Ulrich Hecht <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)arch/arm64/boot/dts/renesas/r8a77995.dtsi +7
-0@@ -783,6 +783,72 @@ compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>; }; + + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x0064>; + interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>;
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 802
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +10
-0+ clock-names = "msiof_clk"; + dmas = <&dmac1 0x41>, <&dmac1 0x40>, + <&dmac2 0x41>, <&dmac2 0x40>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + };
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
Quoted 19 lines · Geert Uytterhoeven
Hi Uli,
Quoted 7 lines · Ulrich Hecht
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
Signed-off-by Hiromitsu Yamasaki <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>[uli: remove unimplemented ref clock]I think you should remove the clock-names properties, too.
Quoted 5 lines
Signed-off-by Ulrich Hecht <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 790
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +5
-0@@ -783,6 +783,72 @@ compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>; }; + + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x0064>;
minor nit: s/0x0064/0x64/
Ulrich, could you consider reposing with the feedback from Geert and the minor nit above addressed?
Quoted 24 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 802
Quoted 12 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +12
-0+ interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 211>; + clock-names = "msiof_clk"; + dmas = <&dmac1 0x41>, <&dmac1 0x40>, + <&dmac2 0x41>, <&dmac2 0x40>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + };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
Quoted 36 lines · Simon Horman
Quoted 19 lines · Geert Uytterhoeven
Hi Uli,
Quoted 7 lines · Ulrich Hecht
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
Signed-off-by Hiromitsu Yamasaki <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>[uli: remove unimplemented ref clock]I think you should remove the clock-names properties, too.
Quoted 5 lines
Signed-off-by Ulrich Hecht <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 66 +++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi line 790
Quoted 13 lines
arch/arm64/boot/dts/renesas/r8a77995.dtsi +5
-0@@ -783,6 +783,72 @@ compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>; }; + + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77995", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x0064>;minor nit: s/0x0064/0x64/
Quoted 2 lines
Ulrich, could you consider reposing with the feedback from Geert and the minor nit above addressed?
Ulrich, ping for this series.
Quoted 8 lines · Ulrich Hecht
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
Signed-off-by Hiromitsu Yamasaki <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>[uli: remove unimplemented ref clock]Signed-off-by Ulrich Hecht <[email protected]>
Thanks, Uli!
For the record: can you describe shortly which of these got tested with what setup? I don't know the Draak, so I don't know what is exposed.
Quoted 10 lines · Wolfram Sang
Quoted 8 lines · Ulrich Hecht
From: Hiromitsu Yamasaki <[email protected]>
This patch adds MSIOF device nodes for the R8A77995 SoC.
Signed-off-by Hiromitsu Yamasaki <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>[uli: remove unimplemented ref clock]Signed-off-by Ulrich Hecht <[email protected]>
Quoted 4 lines
Thanks, Uli!
For the record: can you describe shortly which of these got tested with what setup? I don't know the Draak, so I don't know what is exposed.
MSIOF2 is conveniently hooked up to a 1x4 pin header (CN41), no weird-ass Samtec connectors required. My testing covered sending some data using spidev_test and watching the output on an oscilloscope attached to MSIOF2_TXD (pin 3). Looks plausible.
CU
Uli
Quoted 8 lines
Quoted 3 lines
For the record: can you describe shortly which of these got tested with what setup? I don't know the Draak, so I don't know what is exposed.
MSIOF2 is conveniently hooked up to a 1x4 pin header (CN41), no weird-ass Samtec connectors required. My testing covered sending some data using
spidev_testand watching the output on an oscilloscope attached toMSIOF2_TXD(pin 3). Looks plausible.
Perfect, thanks!