devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH  0/2] Add EtherAVB support
@ 2018-04-24 15:37 Biju Das
  2018-04-24 15:37 ` [PATCH 1/2] ARM: dts: r8a77470: " Biju Das
  2018-04-24 15:37 ` [PATCH 2/2] ARM: dts: iwg23s-sbc: " Biju Das
  0 siblings, 2 replies; 6+ messages in thread
From: Biju Das @ 2018-04-24 15:37 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Simon Horman, Magnus Damm, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, devicetree, linux-renesas-soc, Biju Das

This patch series add EtherAVB support to r8a77470 SoC dtsi and 
iwg23s-sbc board.

Biju Das (2):
  ARM: dts: r8a77470: Add EtherAVB support
  ARM: dts: iwg23s-sbc: Add EtherAVB support

 arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts | 15 ++++++++++++++-
 arch/arm/boot/dts/r8a77470.dtsi           | 13 +++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

-- 
2.7.4

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

* [PATCH  1/2] ARM: dts: r8a77470: Add EtherAVB support
  2018-04-24 15:37 [PATCH 0/2] Add EtherAVB support Biju Das
@ 2018-04-24 15:37 ` Biju Das
  2018-04-30  7:59   ` Simon Horman
  2018-04-24 15:37 ` [PATCH 2/2] ARM: dts: iwg23s-sbc: " Biju Das
  1 sibling, 1 reply; 6+ messages in thread
From: Biju Das @ 2018-04-24 15:37 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Simon Horman, Magnus Damm, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, devicetree, linux-renesas-soc, Biju Das

Define the generic R8A77470 part of the EtherAVB device node.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
 arch/arm/boot/dts/r8a77470.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/r8a77470.dtsi b/arch/arm/boot/dts/r8a77470.dtsi
index baec3ca..c85032f 100644
--- a/arch/arm/boot/dts/r8a77470.dtsi
+++ b/arch/arm/boot/dts/r8a77470.dtsi
@@ -190,6 +190,19 @@
 			dma-channels = <15>;
 		};
 
+		avb: ethernet@e6800000 {
+			compatible = "renesas,etheravb-r8a77470",
+				     "renesas,etheravb-rcar-gen2";
+			reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>;
+			interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 812>;
+			power-domains = <&sysc 32>;
+			resets = <&cpg 812>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		scif0: serial@e6e60000 {
 			compatible = "renesas,scif-r8a77470",
 				     "renesas,rcar-gen2-scif", "renesas,scif";
-- 
2.7.4

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

* [PATCH  2/2] ARM: dts: iwg23s-sbc: Add EtherAVB support
  2018-04-24 15:37 [PATCH 0/2] Add EtherAVB support Biju Das
  2018-04-24 15:37 ` [PATCH 1/2] ARM: dts: r8a77470: " Biju Das
@ 2018-04-24 15:37 ` Biju Das
  2018-04-30  8:00   ` Simon Horman
  1 sibling, 1 reply; 6+ messages in thread
From: Biju Das @ 2018-04-24 15:37 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland
  Cc: Simon Horman, Magnus Damm, Geert Uytterhoeven, Chris Paterson,
	Fabrizio Castro, devicetree, linux-renesas-soc, Biju Das

Define the iW-RainboW-G23S board dependent part of the
EtherAVB device node.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
---
* currently u-boot sets the AVB pin configuration.

 arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts
index d21baad..e3585da 100644
--- a/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts
+++ b/arch/arm/boot/dts/r8a77470-iwg23s-sbc.dts
@@ -12,11 +12,12 @@
 	compatible = "iwave,g23s", "renesas,r8a77470";
 
 	aliases {
+		ethernet0 = &avb;
 		serial1 = &scif1;
 	};
 
 	chosen {
-		bootargs = "ignore_loglevel";
+		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
 		stdout-path = "serial1:115200n8";
 	};
 
@@ -26,6 +27,18 @@
 	};
 };
 
+&avb {
+	phy-handle = <&phy3>;
+	phy-mode = "gmii";
+	renesas,no-ether-link;
+	status = "okay";
+
+	phy3: ethernet-phy@3 {
+		reg = <3>;
+		micrel,led-mode = <1>;
+	};
+};
+
 &extal_clk {
 	clock-frequency = <20000000>;
 };
-- 
2.7.4

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

* Re: [PATCH  1/2] ARM: dts: r8a77470: Add EtherAVB support
  2018-04-24 15:37 ` [PATCH 1/2] ARM: dts: r8a77470: " Biju Das
@ 2018-04-30  7:59   ` Simon Horman
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2018-04-30  7:59 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Magnus Damm, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, devicetree, linux-renesas-soc

On Tue, Apr 24, 2018 at 04:37:32PM +0100, Biju Das wrote:
> Define the generic R8A77470 part of the EtherAVB device node.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

Thanks, applied.

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

* Re: [PATCH  2/2] ARM: dts: iwg23s-sbc: Add EtherAVB support
  2018-04-24 15:37 ` [PATCH 2/2] ARM: dts: iwg23s-sbc: " Biju Das
@ 2018-04-30  8:00   ` Simon Horman
  2018-04-30  8:14     ` Biju Das
  0 siblings, 1 reply; 6+ messages in thread
From: Simon Horman @ 2018-04-30  8:00 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mark Rutland, Magnus Damm, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, devicetree, linux-renesas-soc

On Tue, Apr 24, 2018 at 04:37:33PM +0100, Biju Das wrote:
> Define the iW-RainboW-G23S board dependent part of the
> EtherAVB device node.
> 
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>

Thanks, applied.

> ---
> * currently u-boot sets the AVB pin configuration.

Understood, I assume at some point the pins will be described in DT.

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

* RE: [PATCH  2/2] ARM: dts: iwg23s-sbc: Add EtherAVB support
  2018-04-30  8:00   ` Simon Horman
@ 2018-04-30  8:14     ` Biju Das
  0 siblings, 0 replies; 6+ messages in thread
From: Biju Das @ 2018-04-30  8:14 UTC (permalink / raw)
  To: Simon Horman
  Cc: Rob Herring, Mark Rutland, Magnus Damm, Geert Uytterhoeven,
	Chris Paterson, Fabrizio Castro, devicetree@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org

Hi Simon,

> -----Original Message-----
> From: Simon Horman [mailto:horms@verge.net.au]
> Sent: 30 April 2018 09:00
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Rob Herring <robh+dt@kernel.org>; Mark Rutland
> <mark.rutland@arm.com>; Magnus Damm <magnus.damm@gmail.com>;
> Geert Uytterhoeven <geert+renesas@glider.be>; Chris Paterson
> <Chris.Paterson2@renesas.com>; Fabrizio Castro
> <fabrizio.castro@bp.renesas.com>; devicetree@vger.kernel.org; linux-
> renesas-soc@vger.kernel.org
> Subject: Re: [PATCH 2/2] ARM: dts: iwg23s-sbc: Add EtherAVB support
>
> On Tue, Apr 24, 2018 at 04:37:33PM +0100, Biju Das wrote:
> > Define the iW-RainboW-G23S board dependent part of the EtherAVB
> device
> > node.
> >
> > Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> > Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
>
> Thanks, applied.
>
> > ---
> > * currently u-boot sets the AVB pin configuration.
>
> Understood, I assume at some point the pins will be described in DT.

Yes that is correct.  Will submit after the r8a77470 PFC driver acceptance.



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

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

end of thread, other threads:[~2018-04-30  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-24 15:37 [PATCH 0/2] Add EtherAVB support Biju Das
2018-04-24 15:37 ` [PATCH 1/2] ARM: dts: r8a77470: " Biju Das
2018-04-30  7:59   ` Simon Horman
2018-04-24 15:37 ` [PATCH 2/2] ARM: dts: iwg23s-sbc: " Biju Das
2018-04-30  8:00   ` Simon Horman
2018-04-30  8:14     ` Biju Das

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