Skip to contentSkip to conversation

arm64: dts: r8a779[56]: salvator-x: Add I2C for DVFS device support

PATCH New Simon Horman 3 participants 12 messages Jan 26, 2017 – Jan 27, 2017

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

cover arm64: dts: r8a779[56]: salvator-x: Add I2C for DVFS device support

Hi,

this series enables I2C for DVFS on the salvator-x board for the r8a7795 and r8a7796 SoCs.

Base:
* This series is based on renesas-next-20170126-v4.10-rc2

Dependencies:
* This series has a run-time dependency on
"[PATCH 0/2] clk: renesas: r8a7795/r8a7796: Add IIC-DVFS clock"
* This series has a check patch dependency on
"[PATCH i2c/for-next] i2c: sh_mobile: document support for r8a7796 (R-Car M3-W)"
* This series should be safe to apply independently of the above dependencies

Dien Pham (2):
arm64: dts: r8a7796: Add I2C for DVFS device node
arm64: dts: r8a7796: salvator-x: Add I2C for DVFS device support

Keita Kobayashi (2):
arm64: dts: r8a7795: Add I2C for DVFS core to dtsi
arm64: dts: r8a7795-salvator-x: Enable I2C for DVFS device

Simon Horman (1):
arm64: defconfig: Enable SH Mobile I2C controller

 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts |  4 ++++
 arch/arm64/boot/dts/renesas/r8a7795.dtsi           | 14 ++++++++++++++
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts |  4 ++++
 arch/arm64/boot/dts/renesas/r8a7796.dtsi           | 14 ++++++++++++++
 arch/arm64/configs/defconfig                       |  1 +
 5 files changed, 37 insertions(+)
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#1 lore raw

PATCH 1/5 arm64: defconfig: Enable SH Mobile I2C controller

Enable SH Mobile I2C controller for use on R-Car Gen3 SoCs.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 869dded0f09f..92a3ee26c6fd 100644
@@ -245,6 +245,7 @@ CONFIG_I2C_MESON=y
 CONFIG_I2C_MV64XXX=y
 CONFIG_I2C_QUP=y
 CONFIG_I2C_RK3X=y
+CONFIG_I2C_SH_MOBILE=y
 CONFIG_I2C_TEGRA=y
 CONFIG_I2C_UNIPHIER_F=y
 CONFIG_I2C_RCAR=y
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#2 lore raw

PATCH 1/5 arm64: defconfig: Enable SH Mobile I2C controller

Quoted 3 lines · Simon Horman

Enable SH Mobile I2C controller for use on R-Car Gen3 SoCs.

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

#3 lore raw

PATCH 2/5 arm64: dts: r8a7796: Add I2C for DVFS device node

In reply to Simon Horman

From: Dien Pham <[email protected]>

This patch adds I2C for DVFS device node for R8A7796 SoC.

---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +14 -0
index f7120cdedd0d..c95ad177b097 100644
@@ -25,6 +25,7 @@
 		i2c4 = &i2c4;
 		i2c5 = &i2c5;
 		i2c6 = &i2c6;
+		i2c7 = &i2c_dvfs;
 	};
 
 	psci {
@@ -269,6 +270,19 @@
 			#power-domain-cells = <1>;
 		};
 
+		i2c_dvfs: i2c at e60b0000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7796",
+				     "renesas,rcar-gen3-iic",
+				     "renesas,rmobile-iic";
+			reg = <0 0xe60b0000 0 0x425>;
+			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 926>;
+			power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
 		i2c0: i2c at e6500000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#4 lore raw

PATCH 2/5 arm64: dts: r8a7796: Add I2C for DVFS device node

Quoted 7 lines · Simon Horman

From: Dien Pham <[email protected]>

This patch adds I2C for DVFS device node for R8A7796 SoC.

Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +0 -0
@@ -269,6 +270,19 @@
                        #power-domain-cells = <1>;
                };

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 281

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +9 -0
 
+               i2c_dvfs: i2c at e60b0000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "renesas,iic-r8a7796",
+                                    "renesas,rcar-gen3-iic",
+                                    "renesas,rmobile-iic";
+                       reg = <0 0xe60b0000 0 0x425>;
+                       interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cpg CPG_MOD 926>;

You may want to add dmas/dma-names.
That can be done later, though.

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 285

Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +4 -0
+                       power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
+                       status = "disabled";
+               };
+

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

#5 lore raw

PATCH 2/5 arm64: dts: r8a7796: Add I2C for DVFS device node

Quoted 19 lines · Geert Uytterhoeven
Quoted 7 lines · Simon Horman

From: Dien Pham <[email protected]>

This patch adds I2C for DVFS device node for R8A7796 SoC.

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +0 -0
@@ -269,6 +270,19 @@
                        #power-domain-cells = <1>;
                };
 
Quoted 12 lines

arch/arm64/boot/dts/renesas/r8a7796.dtsi line 281

Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a7796.dtsi +9 -0
+               i2c_dvfs: i2c at e60b0000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "renesas,iic-r8a7796",
+                                    "renesas,rcar-gen3-iic",
+                                    "renesas,rmobile-iic";
+                       reg = <0 0xe60b0000 0 0x425>;
+                       interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cpg CPG_MOD 926>;

You may want to add dmas/dma-names.
That can be done later, though.

Thanks, I will do that as a follow up and queue up this series for v4.12 in the mean time.

#6 lore raw

PATCH 3/5 arm64: dts: r8a7796: salvator-x: Add I2C for DVFS device support

In reply to Simon Horman

From: Dien Pham <[email protected]>

This patch adds support of I2C for DVFS device for Salvator-X board on R8A7796 SoC.

---
 arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796-salvator-x.dts +4 -0
index c3e0b9e54a74..d7289613e21e 100644
@@ -262,3 +262,7 @@
 	timeout-sec = <60>;
 	status = "okay";
 };
+
+&i2c_dvfs {
+	status = "okay";
+};
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#7 lore raw

PATCH 3/5 arm64: dts: r8a7796: salvator-x: Add I2C for DVFS device support

Quoted 8 lines · Simon Horman

From: Dien Pham <[email protected]>

This patch adds support of I2C for DVFS device for Salvator-X board on R8A7796 SoC.

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

#8 lore raw

PATCH 4/5 arm64: dts: r8a7795: Add I2C for DVFS core to dtsi

In reply to Simon Horman

From: Keita Kobayashi <[email protected]>

This patch adds I2C for DVFS device support for R8A7795 SoC.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +14 -0
index eac4f29aa5cd..fe266bb3d913 100644
@@ -25,6 +25,7 @@
 		i2c4 = &i2c4;
 		i2c5 = &i2c5;
 		i2c6 = &i2c6;
+		i2c7 = &i2c_dvfs;
 	};
 
 	psci {
@@ -793,6 +794,19 @@
 			status = "disabled";
 		};
 
+		i2c_dvfs: i2c at e60b0000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7795",
+				     "renesas,rcar-gen3-iic",
+				     "renesas,rmobile-iic";
+			reg = <0 0xe60b0000 0 0x425>;
+			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 926>;
+			power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
 		i2c0: i2c at e6500000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#9 lore raw

PATCH 4/5 arm64: dts: r8a7795: Add I2C for DVFS core to dtsi

Quoted 9 lines · Simon Horman

From: Keita Kobayashi <[email protected]>

This patch adds I2C for DVFS device support for R8A7795 SoC.

Quoted 6 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +0 -0
@@ -793,6 +794,19 @@
                        status = "disabled";
                };

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

Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +9 -0
 
+               i2c_dvfs: i2c at e60b0000 {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       compatible = "renesas,iic-r8a7795",
+                                    "renesas,rcar-gen3-iic",
+                                    "renesas,rmobile-iic";
+                       reg = <0 0xe60b0000 0 0x425>;
+                       interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&cpg CPG_MOD 926>;

Same comment about dmas/dma-names.

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

Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +3 -0
+                       power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
+                       status = "disabled";
+               };

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

#10 lore raw

PATCH 5/5 arm64: dts: r8a7795-salvator-x: Enable I2C for DVFS device

In reply to Simon Horman

From: Keita Kobayashi <[email protected]>

This patch enables I2C for DVFS device for for Salvator-X board on R8A7795 SoC.

---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +4 -0
index 51ef8bbaa33e..ff8bb5bd675f 100644
@@ -486,6 +486,10 @@
 	clock-frequency = <22579200>;
 };
 
+&i2c_dvfs {
+	status = "okay";
+};
+
 &avb {
 	pinctrl-0 = <&avb_pins>;
 	pinctrl-names = "default";
Signature · 1 line
2.7.0.rc3.207.g0ac5344
#11 lore raw

PATCH 5/5 arm64: dts: r8a7795-salvator-x: Enable I2C for DVFS device

Quoted 8 lines · Simon Horman

From: Keita Kobayashi <[email protected]>

This patch enables I2C for DVFS device for for Salvator-X board on R8A7795 SoC.

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