devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7792 I2C support
@ 2016-07-23 18:47 Sergei Shtylyov
  0 siblings, 0 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2016-07-23 18:47 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160722-v4.7-rc7' tag plus the SDHI patches just reposted.
We're adding the R8A7792 I2C clocks and device nodes.

[1/2] ARM: dts: r8a7792: add I2C clocks
[2/2] ARM: dts: r8a7792: add I2C support

WBR, Sergei

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 0/2] Add R8A7792 I2C support
@ 2016-07-23 19:15 Sergei Shtylyov
  2016-07-23 19:16 ` [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2016-07-23 19:15 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160722-v4.7-rc7' tag plus the SDHI/I2C patches just posted.
We're adding the R8A7792 VIN clocks and device nodes. The patches have been
tested on the Blanche board with the switches set to the HDMI input mode...

[1/2] ARM: dts: r8a7792: add VIN clocks
[2/2] ARM: dts: r8a7792: add VIN support

WBR, Sergei

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks
  2016-07-23 19:15 [PATCH 0/2] Add R8A7792 I2C support Sergei Shtylyov
@ 2016-07-23 19:16 ` Sergei Shtylyov
       [not found]   ` <1477310.o5B8uhf3mT-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
  2016-07-23 19:17 ` [PATCH 2/2] ARM: dts: r8a7792: add VIN support Sergei Shtylyov
  2016-07-25  2:09 ` [PATCH 0/2] Add R8A7792 I2C support Simon Horman
  2 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2016-07-23 19:16 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Describe the VIN[0-5] clocks and their parent, ZG clock in the R8A7792
device  tree.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7792.dtsi |   20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -643,6 +643,13 @@
 			clock-div = <49>;
 			clock-mult = <1>;
 		};
+		zg_clk: zg {
+			compatible = "fixed-factor-clock";
+			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
+			#clock-cells = <0>;
+			clock-div = <5>;
+			clock-mult = <1>;
+		};
 
 		/* Gate clocks */
 		mstp1_clks: mstp1_clks@e6150134 {
@@ -702,10 +709,17 @@
 			compatible = "renesas,r8a7792-mstp-clocks",
 				     "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
-			clocks = <&hp_clk>;
+			clocks = <&zg_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>,
+			         <&zg_clk>, <&zg_clk>, <&hp_clk>;
 			#clock-cells = <1>;
-			clock-indices = <R8A7792_CLK_ETHERAVB>;
-			clock-output-names = "etheravb";
+			clock-indices = <
+				R8A7792_CLK_VIN5 R8A7792_CLK_VIN4
+				R8A7792_CLK_VIN3 R8A7792_CLK_VIN2
+				R8A7792_CLK_VIN1 R8A7792_CLK_VIN0
+				R8A7792_CLK_ETHERAVB
+			>;
+			clock-output-names = "vin5", "vin4", "vin3", "vin2",
+					     "vin1", "vin0", "etheravb";
 		};
 		mstp9_clks: mstp9_clks@e6150994 {
 			compatible = "renesas,r8a7792-mstp-clocks",

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 2/2] ARM: dts: r8a7792: add VIN support
  2016-07-23 19:15 [PATCH 0/2] Add R8A7792 I2C support Sergei Shtylyov
  2016-07-23 19:16 ` [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks Sergei Shtylyov
@ 2016-07-23 19:17 ` Sergei Shtylyov
  2016-08-08 12:46   ` Geert Uytterhoeven
  2016-07-25  2:09 ` [PATCH 0/2] Add R8A7792 I2C support Simon Horman
  2 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2016-07-23 19:17 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7792 parts of the VIN[0-5] device nodes.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
 arch/arm/boot/dts/r8a7792.dtsi |   66 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -25,6 +25,12 @@
 		i2c3 = &i2c3;
 		i2c4 = &i2c4;
 		i2c5 = &i2c5;
+		vin0 = &vin0;
+		vin1 = &vin1;
+		vin2 = &vin2;
+		vin3 = &vin3;
+		vin4 = &vin4;
+		vin5 = &vin5;
 };
 
 	cpus {
@@ -573,6 +579,66 @@
 			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
 			status = "disabled";
 		};
+
+		vin0: video@e6ef0000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef0000 0 0x1000>;
+			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN0>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		vin1: video@e6ef1000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef1000 0 0x1000>;
+			interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN1>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		vin2: video@e6ef2000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef2000 0 0x1000>;
+			interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN2>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		vin3: video@e6ef3000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef3000 0 0x1000>;
+			interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN3>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		vin4: video@e6ef4000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef4000 0 0x1000>;
+			interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN4>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
+
+		vin5: video@e6ef5000 {
+			compatible = "renesas,vin-r8a7792",
+				     "renesas,rcar-gen2-vin";
+			reg = <0 0xe6ef5000 0 0x1000>;
+			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_VIN5>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			status = "disabled";
+		};
 
 		/* Special CPG clocks */
 		cpg_clocks: cpg_clocks@e6150000 {

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] Add R8A7792 I2C support
  2016-07-23 19:15 [PATCH 0/2] Add R8A7792 I2C support Sergei Shtylyov
  2016-07-23 19:16 ` [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks Sergei Shtylyov
  2016-07-23 19:17 ` [PATCH 2/2] ARM: dts: r8a7792: add VIN support Sergei Shtylyov
@ 2016-07-25  2:09 ` Simon Horman
  2016-07-25 10:40   ` Sergei Shtylyov
  2 siblings, 1 reply; 8+ messages in thread
From: Simon Horman @ 2016-07-25  2:09 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-renesas-soc, robh+dt, mark.rutland, devicetree, magnus.damm,
	linux, linux-arm-kernel

On Sat, Jul 23, 2016 at 10:15:56PM +0300, Sergei Shtylyov wrote:
> Hello.
> 
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160722-v4.7-rc7' tag plus the SDHI/I2C patches just posted.
> We're adding the R8A7792 VIN clocks and device nodes. The patches have been
> tested on the Blanche board with the switches set to the HDMI input mode...
> 
> [1/2] ARM: dts: r8a7792: add VIN clocks
> [2/2] ARM: dts: r8a7792: add VIN support

Thanks, I have queued these up for v4.9.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/2] Add R8A7792 I2C support
  2016-07-25  2:09 ` [PATCH 0/2] Add R8A7792 I2C support Simon Horman
@ 2016-07-25 10:40   ` Sergei Shtylyov
  0 siblings, 0 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2016-07-25 10:40 UTC (permalink / raw)
  To: Simon Horman
  Cc: linux-renesas-soc, robh+dt, mark.rutland, devicetree, magnus.damm,
	linux, linux-arm-kernel

On 7/25/2016 5:09 AM, Simon Horman wrote:

>>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
>> 'renesas-devel-20160722-v4.7-rc7' tag plus the SDHI/I2C patches just posted.
>> We're adding the R8A7792 VIN clocks and device nodes. The patches have been
>> tested on the Blanche board with the switches set to the HDMI input mode...
>>
>> [1/2] ARM: dts: r8a7792: add VIN clocks
>> [2/2] ARM: dts: r8a7792: add VIN support
>
> Thanks, I have queued these up for v4.9.

    Oops, sorry for using a stale subject. :-(
    Thank you!

MBR, Sergei

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks
       [not found]   ` <1477310.o5B8uhf3mT-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
@ 2016-08-08 12:42     ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2016-08-08 12:42 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Simon Horman, Linux-Renesas, Rob Herring, Mark Rutland,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
	Russell King,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org

On Sat, Jul 23, 2016 at 9:16 PM, Sergei Shtylyov
<sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> wrote:
> Describe the VIN[0-5] clocks and their parent, ZG clock in the R8A7792
> device  tree.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/2] ARM: dts: r8a7792: add VIN support
  2016-07-23 19:17 ` [PATCH 2/2] ARM: dts: r8a7792: add VIN support Sergei Shtylyov
@ 2016-08-08 12:46   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2016-08-08 12:46 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Simon Horman, Linux-Renesas, Rob Herring, Mark Rutland,
	devicetree@vger.kernel.org, Magnus Damm, Russell King,
	linux-arm-kernel@lists.infradead.org

On Sat, Jul 23, 2016 at 9:17 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the generic R8A7792 parts of the VIN[0-5] device nodes.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-08 12:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-23 19:15 [PATCH 0/2] Add R8A7792 I2C support Sergei Shtylyov
2016-07-23 19:16 ` [PATCH 1/2] ARM: dts: r8a7792: add VIN clocks Sergei Shtylyov
     [not found]   ` <1477310.o5B8uhf3mT-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-08-08 12:42     ` Geert Uytterhoeven
2016-07-23 19:17 ` [PATCH 2/2] ARM: dts: r8a7792: add VIN support Sergei Shtylyov
2016-08-08 12:46   ` Geert Uytterhoeven
2016-07-25  2:09 ` [PATCH 0/2] Add R8A7792 I2C support Simon Horman
2016-07-25 10:40   ` Sergei Shtylyov
  -- strict thread matches above, loose matches on Subject: below --
2016-07-23 18:47 Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).