devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7792 DU support
@ 2016-08-05 18:24 Sergei Shtylyov
  2016-08-05 18:25 ` [PATCH 1/2] ARM: dts: r8a7792: add DU clocks Sergei Shtylyov
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2016-08-05 18:24 UTC (permalink / raw)
  To: horms-/R6kz+dDXgpPR4JQBCEnsQ,
	linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
	devicetree-u79uwXL29TY76Z2rM5mHXA
  Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w, linux-lFZ/pmaqli7XmaaqVzeoHQ,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160725-v4.7-rc7' tag. We're adding the R8A7792 DU clocks and
device nodes. They have been tested on the Blanche board -- I'm not posting the
Blanche patch only because it also has some strange interaction with the
Ethernet chip, so that NFS root can't work anymore...

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

WBR, Sergei

--
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

* [PATCH 1/2] ARM: dts: r8a7792: add DU clocks
  2016-08-05 18:24 [PATCH 0/2] Add R8A7792 DU support Sergei Shtylyov
@ 2016-08-05 18:25 ` Sergei Shtylyov
       [not found]   ` <2482521.XCJrVWGkiq-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
  2016-08-05 18:26 ` [PATCH 2/2] ARM: dts: r8a7792: add DU support Sergei Shtylyov
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2016-08-05 18:25 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: linux, magnus.damm, linux-arm-kernel

Describe the DU0/1 clocks and their parent, ZX clock in the R8A7792 device
tree.

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

---
 arch/arm/boot/dts/r8a7792.dtsi |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -660,6 +660,13 @@
 			clock-div = <2>;
 			clock-mult = <1>;
 		};
+		zx_clk: zx {
+			compatible = "fixed-factor-clock";
+			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
+			#clock-cells = <0>;
+			clock-div = <3>;
+			clock-mult = <1>;
+		};
 		zs_clk: zs {
 			compatible = "fixed-factor-clock";
 			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
@@ -761,15 +768,17 @@
 				     "renesas,cpg-mstp-clocks";
 			reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>;
 			clocks = <&zs_clk>, <&zs_clk>, <&p_clk>, <&p_clk>,
-				 <&p_clk>, <&p_clk>;
+				 <&p_clk>, <&p_clk>, <&zx_clk>, <&zx_clk>;
 			#clock-cells = <1>;
 			clock-indices = <
 				R8A7792_CLK_HSCIF1 R8A7792_CLK_HSCIF0
 				R8A7792_CLK_SCIF3 R8A7792_CLK_SCIF2
 				R8A7792_CLK_SCIF1 R8A7792_CLK_SCIF0
+				R8A7792_CLK_DU1 R8A7792_CLK_DU0
 			>;
 			clock-output-names = "hscif1", "hscif0", "scif3",
-					     "scif2", "scif1", "scif0";
+					     "scif2", "scif1", "scif0",
+					     "du1", "du0";
 		};
 		mstp8_clks: mstp8_clks@e6150990 {
 			compatible = "renesas,r8a7792-mstp-clocks",

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

* [PATCH 2/2] ARM: dts: r8a7792: add DU support
  2016-08-05 18:24 [PATCH 0/2] Add R8A7792 DU support Sergei Shtylyov
  2016-08-05 18:25 ` [PATCH 1/2] ARM: dts: r8a7792: add DU clocks Sergei Shtylyov
@ 2016-08-05 18:26 ` Sergei Shtylyov
  2016-08-08 13:18   ` Geert Uytterhoeven
  2016-08-05 18:28 ` [PATCH 0/2] Add R8A7792 " Sergei Shtylyov
  2016-08-18 18:00 ` Sergei Shtylyov
  3 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2016-08-05 18:26 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Define the generic R8A7792 part of the DU device node.

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

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

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -556,6 +556,34 @@
 			status = "disabled";
 		};
 
+		du: display@feb00000 {
+			compatible = "renesas,du-r8a7792";
+			reg = <0 0xfeb00000 0 0x40000>;
+			reg-names = "du";
+			interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp7_clks R8A7792_CLK_DU0>,
+				 <&mstp7_clks R8A7792_CLK_DU1>;
+			clock-names = "du.0", "du.1";
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					du_out_rgb0: endpoint {
+					};
+				};
+				port@1 {
+					reg = <1>;
+					du_out_rgb1: endpoint {
+					};
+				};
+			};
+		};
+
 		can0: can@e6e80000 {
 			compatible = "renesas,can-r8a7792",
 				     "renesas,rcar-gen2-can";

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

* Re: [PATCH 0/2] Add R8A7792 DU support
  2016-08-05 18:24 [PATCH 0/2] Add R8A7792 DU support Sergei Shtylyov
  2016-08-05 18:25 ` [PATCH 1/2] ARM: dts: r8a7792: add DU clocks Sergei Shtylyov
  2016-08-05 18:26 ` [PATCH 2/2] ARM: dts: r8a7792: add DU support Sergei Shtylyov
@ 2016-08-05 18:28 ` Sergei Shtylyov
  2016-08-09 12:32   ` Simon Horman
  2016-08-18 18:00 ` Sergei Shtylyov
  3 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2016-08-05 18:28 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

On 08/05/2016 09:24 PM, Sergei Shtylyov wrote:

>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160725-v4.7-rc7' tag. We're adding the R8A7792 DU clocks and
> device nodes. They have been tested on the Blanche board -- I'm not posting the
> Blanche patch only because it also has some strange interaction with the
> Ethernet chip, so that NFS root can't work anymore...

    Forgot to mention that the patch #2 depends on the R8A7792 DU driver patch 
posted last night.

MBR, Sergei

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

* Re: [PATCH 1/2] ARM: dts: r8a7792: add DU clocks
       [not found]   ` <2482521.XCJrVWGkiq-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
@ 2016-08-08 13:16     ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2016-08-08 13:16 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 Fri, Aug 5, 2016 at 8:25 PM, Sergei Shtylyov
<sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> wrote:
> Describe the DU0/1 clocks and their parent, ZX 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 DU support
  2016-08-05 18:26 ` [PATCH 2/2] ARM: dts: r8a7792: add DU support Sergei Shtylyov
@ 2016-08-08 13:18   ` Geert Uytterhoeven
  0 siblings, 0 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2016-08-08 13:18 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 Fri, Aug 5, 2016 at 8:26 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the generic R8A7792 part of the DU device node.
>
> 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

* Re: [PATCH 0/2] Add R8A7792 DU support
  2016-08-05 18:28 ` [PATCH 0/2] Add R8A7792 " Sergei Shtylyov
@ 2016-08-09 12:32   ` Simon Horman
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Horman @ 2016-08-09 12:32 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-renesas-soc, robh+dt, mark.rutland, devicetree, magnus.damm,
	linux, linux-arm-kernel

On Fri, Aug 05, 2016 at 09:28:59PM +0300, Sergei Shtylyov wrote:
> On 08/05/2016 09:24 PM, Sergei Shtylyov wrote:
> 
> >   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> >'renesas-devel-20160725-v4.7-rc7' tag. We're adding the R8A7792 DU clocks and
> >device nodes. They have been tested on the Blanche board -- I'm not posting the
> >Blanche patch only because it also has some strange interaction with the
> >Ethernet chip, so that NFS root can't work anymore...
> 
>    Forgot to mention that the patch #2 depends on the R8A7792 DU driver
> patch posted last night.

Thanks.

The driver changes look line an incremental update to what is already done
for other R-Car Gen2 SoCs. And I am assuming that applying these patches
without the driver change is harmless - the driver just won't be
initialised until both the driver and DTS changes are present.

With the above reasoning I have queued up these patches with Geert's
reviewed-by tag. Please let me know if that is not desirable for some
reason.

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

* Re: [PATCH 0/2] Add R8A7792 DU support
  2016-08-05 18:24 [PATCH 0/2] Add R8A7792 DU support Sergei Shtylyov
                   ` (2 preceding siblings ...)
  2016-08-05 18:28 ` [PATCH 0/2] Add R8A7792 " Sergei Shtylyov
@ 2016-08-18 18:00 ` Sergei Shtylyov
  3 siblings, 0 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2016-08-18 18:00 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: linux, magnus.damm, linux-arm-kernel

Hello.

On 08/05/2016 09:24 PM, Sergei Shtylyov wrote:

>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160725-v4.7-rc7' tag. We're adding the R8A7792 DU clocks and
> device nodes. They have been tested on the Blanche board -- I'm not posting the
> Blanche patch only because it also has some strange interaction with the
> Ethernet chip, so that NFS root can't work anymore...

    Looks like this effect is confined to only one Blanche board, so I'm going 
to start posting the pending patches.

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

WBR, Sergei

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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-05 18:24 [PATCH 0/2] Add R8A7792 DU support Sergei Shtylyov
2016-08-05 18:25 ` [PATCH 1/2] ARM: dts: r8a7792: add DU clocks Sergei Shtylyov
     [not found]   ` <2482521.XCJrVWGkiq-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2016-08-08 13:16     ` Geert Uytterhoeven
2016-08-05 18:26 ` [PATCH 2/2] ARM: dts: r8a7792: add DU support Sergei Shtylyov
2016-08-08 13:18   ` Geert Uytterhoeven
2016-08-05 18:28 ` [PATCH 0/2] Add R8A7792 " Sergei Shtylyov
2016-08-09 12:32   ` Simon Horman
2016-08-18 18:00 ` 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).