Skip to contentSkip to conversation

arm64: dts: r8a7795: add IMR-LX4 support

PATCH New Sergei Shtylyov 2 participants 4 messages Feb 14, 2017 – Feb 19, 2017

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

PATCH 1/1 arm64: dts: r8a7795: add IMR-LX4 support

Describe the IMR-LX4 devices in the R8A7795 device tree.

Based on the original (and large) patch by Konstantin Kozhevnikov <[email protected]>.

---
This patch is against the 'renesas-devel-20170213-v4.10-rc8' tag of Simon Horman's 'renesas.git' repo.

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |   32 +++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +32 -0
Index: renesas/arch/arm64/boot/dts/renesas/r8a7795.dtsi
===================================================================
@@ -1419,6 +1419,38 @@
 			status = "disabled";
 		};
 
+		imr-lx4 at fe860000 {
+			compatible = "renesas,imr-lx4";
+			reg = <0 0xfe860000 0 0x2000>;
+			interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 823>;
+			power-domains = <&sysc R8A7795_PD_A3VC>;
+		};
+
+		imr-lx4 at fe870000 {
+			compatible = "renesas,imr-lx4";
+			reg = <0 0xfe870000 0 0x2000>;
+			interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 822>;
+			power-domains = <&sysc R8A7795_PD_A3VC>;
+		};
+
+		imr-lx4 at fe880000 {
+			compatible = "renesas,imr-lx4";
+			reg = <0 0xfe880000 0 0x2000>;
+			interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 821>;
+			power-domains = <&sysc R8A7795_PD_A3VC>;
+		};
+
+		imr-lx4 at fe890000 {
+			compatible = "renesas,imr-lx4";
+			reg = <0 0xfe890000 0 0x2000>;
+			interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 820>;
+			power-domains = <&sysc R8A7795_PD_A3VC>;
+		};
+
 		vspbc: vsp at fe920000 {
 			compatible = "renesas,vsp2";
 			reg = <0 0xfe920000 0 0x8000>;
#1 lore raw

PATCH 1/1 arm64: dts: r8a7795: add IMR-LX4 support

Quoted 7 lines · Sergei Shtylyov

Describe the IMR-LX4 devices in the R8A7795 device tree.

Based on the original (and large) patch by Konstantin Kozhevnikov <[email protected]>.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

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

#2 lore raw

PATCH 1/1 arm64: dts: r8a7795: add IMR-LX4 support

In reply to Sergei Shtylyov
Quoted 11 lines · Sergei Shtylyov

Describe the IMR-LX4 devices in the R8A7795 device tree.

Based on the original (and large) patch by Konstantin Kozhevnikov <[email protected]>.

---
This patch is against the 'renesas-devel-20170213-v4.10-rc8' tag of Simon Horman's 'renesas.git' repo.

The binding was documented in the IMR driver patch. I don't expect it to
change even if the driver would be rewritten for DRM.

[...]

arch/arm64/boot/dts/renesas/r8a7795.dtsi line 1423

Quoted 10 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a7795.dtsi
===================================================================

arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
@@ -1419,6 +1419,38 @@
 			status = "disabled";
 		};
 
+		imr-lx4 at fe860000 {
+			compatible = "renesas,imr-lx4";

The manual seems to suggest that IMR-LX4 devicec are different between
7795 and 7796 SoCs, so we may need SoC specific compatibility. I'll look into this...

MBR, Sergei

#3 lore raw

PATCH 1/1 arm64: dts: r8a7795: add IMR-LX4 support

Quoted 25 lines · Sergei Shtylyov
Quoted 5 lines

Describe the IMR-LX4 devices in the R8A7795 device tree.

Based on the original (and large) patch by Konstantin Kozhevnikov <[email protected]>.

Quoted 7 lines

Signed-off-by: Konstantin Kozhevnikov
<[email protected]>

---
This patch is against the 'renesas-devel-20170213-v4.10-rc8' tag of Simon Horman's 'renesas.git' repo.

The binding was documented in the IMR driver patch. I don't expect it to
change even if the driver would be rewritten for DRM.

[...]

Quoted 8 lines

Index: renesas/arch/arm64/boot/dts/renesas/r8a7795.dtsi
===================================================================

arch/arm64/boot/dts/renesas/r8a7795.dtsi +0 -0
@@ -1419,6 +1419,38 @@
             status = "disabled";
         };
 
Quoted 4 lines

arch/arm64/boot/dts/renesas/r8a7795.dtsi line 1423

Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
+        imr-lx4 at fe860000 {
+            compatible = "renesas,imr-lx4";

The manual seems to suggest that IMR-LX4 devicec are different between 7795

Devices, of course. :-)

Quoted 1 line

and 7796 SoCs, so we may need SoC specific compatibility. I'll look into this...

Found no difference between 7795/7796 (other than performance).

MBR, Sergei