devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add R8A7792 EtherAVB support
@ 2016-07-04 21:21 Sergei Shtylyov
  2016-07-04 21:22 ` [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sergei Shtylyov @ 2016-07-04 21:21 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-20160704-v4.7-rc6' tag plus the R8A7792 PFC/GPIO patchsets.
We're adding the R8A7792 EtherAVB clocks and device nodes. They have been
tested on the Blanche board (along with the EtherAVB patches)...

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

WBR, Sergei

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

* [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks
  2016-07-04 21:21 [PATCH 0/2] Add R8A7792 EtherAVB support Sergei Shtylyov
@ 2016-07-04 21:22 ` Sergei Shtylyov
  2016-07-05  7:42   ` Geert Uytterhoeven
  2016-07-04 21:23 ` [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support Sergei Shtylyov
  2016-07-18  2:10 ` [PATCH 0/2] Add R8A7792 " Simon Horman
  2 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2016-07-04 21:22 UTC (permalink / raw)
  To: horms, linux-renesas-soc, robh+dt, mark.rutland, devicetree
  Cc: magnus.damm, linux, linux-arm-kernel

Add the EtherAVB clock and its parent, HP clock to the R8A7792 device tree.

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

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

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -464,6 +464,13 @@
 			clock-div = <6>;
 			clock-mult = <1>;
 		};
+		hp_clk: hp {
+			compatible = "fixed-factor-clock";
+			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
+			#clock-cells = <0>;
+			clock-div = <12>;
+			clock-mult = <1>;
+		};
 		p_clk: p {
 			compatible = "fixed-factor-clock";
 			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
@@ -531,6 +538,15 @@
 			clock-output-names = "hscif1", "hscif0", "scif3",
 					     "scif2", "scif1", "scif0";
 		};
+		mstp8_clks: mstp8_clks@e6150990 {
+			compatible = "renesas,r8a7792-mstp-clocks",
+				     "renesas,cpg-mstp-clocks";
+			reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
+			clocks = <&hp_clk>;
+			#clock-cells = <1>;
+			clock-indices = <R8A7792_CLK_ETHERAVB>;
+			clock-output-names = "etheravb";
+		};
 		mstp9_clks: mstp9_clks@e6150994 {
 			compatible = "renesas,r8a7792-mstp-clocks",
 				     "renesas,cpg-mstp-clocks";

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

* [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support
  2016-07-04 21:21 [PATCH 0/2] Add R8A7792 EtherAVB support Sergei Shtylyov
  2016-07-04 21:22 ` [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks Sergei Shtylyov
@ 2016-07-04 21:23 ` Sergei Shtylyov
  2016-07-05  7:46   ` Geert Uytterhoeven
  2016-07-18  2:10 ` [PATCH 0/2] Add R8A7792 " Simon Horman
  2 siblings, 1 reply; 6+ messages in thread
From: Sergei Shtylyov @ 2016-07-04 21:23 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 EtherAVB device node.

Based on the commit 89aac8af1a60 ("ARM: dts: r8a7794: add EtherAVB support").

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

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

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -444,6 +444,18 @@
 			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
 		};
 
+		avb: ethernet@e6800000 {
+			compatible = "renesas,etheravb-r8a7792",
+				     "renesas,etheravb-rcar-gen2";
+			reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+			interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp8_clks R8A7792_CLK_ETHERAVB>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		/* Special CPG clocks */
 		cpg_clocks: cpg_clocks@e6150000 {
 			compatible = "renesas,r8a7792-cpg-clocks",

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

* Re: [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks
  2016-07-04 21:22 ` [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks Sergei Shtylyov
@ 2016-07-05  7:42   ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2016-07-05  7:42 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 Mon, Jul 4, 2016 at 11:22 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Add the EtherAVB clock and its parent, HP clock to the R8A7792 device tree.
>
> 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] 6+ messages in thread

* Re: [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support
  2016-07-04 21:23 ` [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support Sergei Shtylyov
@ 2016-07-05  7:46   ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2016-07-05  7: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 Mon, Jul 4, 2016 at 11:23 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the generic R8A7792 part of the EtherAVB device node.
>
> Based on the commit 89aac8af1a60 ("ARM: dts: r8a7794: add EtherAVB support").
>
> 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] 6+ messages in thread

* Re: [PATCH 0/2] Add R8A7792 EtherAVB support
  2016-07-04 21:21 [PATCH 0/2] Add R8A7792 EtherAVB support Sergei Shtylyov
  2016-07-04 21:22 ` [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks Sergei Shtylyov
  2016-07-04 21:23 ` [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support Sergei Shtylyov
@ 2016-07-18  2:10 ` Simon Horman
  2 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2016-07-18  2:10 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: linux-renesas-soc, robh+dt, mark.rutland, devicetree, magnus.damm,
	linux, linux-arm-kernel

On Tue, Jul 05, 2016 at 12:21:31AM +0300, Sergei Shtylyov wrote:
> Hello.
> 
>    Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
> 'renesas-devel-20160704-v4.7-rc6' tag plus the R8A7792 PFC/GPIO patchsets.
> We're adding the R8A7792 EtherAVB clocks and device nodes. They have been
> tested on the Blanche board (along with the EtherAVB patches)...
> 
> [1/2] ARM: dts: r8a7792: add EtherAVB clocks
> [2/2] ARM: dts: r8a7792: add EtherAVB support

Thanks, I have queued these up.

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

end of thread, other threads:[~2016-07-18  2:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04 21:21 [PATCH 0/2] Add R8A7792 EtherAVB support Sergei Shtylyov
2016-07-04 21:22 ` [PATCH 1/2] ARM: dts: r8a7792: add EtherAVB clocks Sergei Shtylyov
2016-07-05  7:42   ` Geert Uytterhoeven
2016-07-04 21:23 ` [PATCH 2/2] ARM: dts: r8a7792: add EtherAVB support Sergei Shtylyov
2016-07-05  7:46   ` Geert Uytterhoeven
2016-07-18  2:10 ` [PATCH 0/2] Add R8A7792 " Simon Horman

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