arm64: dts: r8a779[56]: salvator-x: Add I2C for DVFS device support
Subsystems (2)
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
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
@@ -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
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.
Signed-off-by Simon Horman <[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
PATCH 2/5 arm64: dts: r8a7796: Add I2C for DVFS device node
In reply to Simon HormanFrom: 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
@@ -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
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.
Signed-off-by Dien Pham <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Simon Horman <[email protected]>
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
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.
Signed-off-by Dien Pham <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Simon Horman <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>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.
PATCH 3/5 arm64: dts: r8a7796: salvator-x: Add I2C for DVFS device support
In reply to Simon HormanFrom: 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
@@ -262,3 +262,7 @@ timeout-sec = <60>; status = "okay"; }; + +&i2c_dvfs { + status = "okay"; +};
Signature · 1 line
2.7.0.rc3.207.g0ac5344
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.
Signed-off-by Dien Pham <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Simon Horman <[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
PATCH 4/5 arm64: dts: r8a7795: Add I2C for DVFS core to dtsi
In reply to Simon HormanFrom: 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
@@ -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
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.
Signed-off-by Keita Kobayashi <[email protected]>Signed-off-by Gaku Inami <[email protected]>Signed-off-by Dien Pham <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Simon Horman <[email protected]>
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
PATCH 5/5 arm64: dts: r8a7795-salvator-x: Enable I2C for DVFS device
In reply to Simon HormanFrom: 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
@@ -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
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.
Signed-off-by Keita Kobayashi <[email protected]>Signed-off-by Takeshi Kihara <[email protected]>Signed-off-by Simon Horman <[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