linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node
@ 2018-02-27 10:22 Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 01/10] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode Jacopo Mondi
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Hi Simon, Geert,
   in this second iteration I have dropped iommu dependencies for EtherAVB
and have changed "phy-mode" for all mainlines Gen-3 boards, this time including
ULCB, Draak, Eagle and V3MSK.

The series add phy-mode as a board property to the following board files:
- salvator-common.dtsi
- ulcb.dtsi
- r8a77995-draak.dts
- r8a77970-eagle.dts
- r8a77970-v3msk.dts

And reset the EtherAVB phy-mode to "rgmii" in the following SoC DTSI:
- r8a7795.dtsi
- r8a7796.dtsi
- r8a77995.dtsi
- r8a77970.dtsi

And finally, I added EtherAVB device node for M3-N on top.

I have verified with scripts/dtc/dtx_diff that the only difference compared to
the previous version for all DTS files is the newly introduced EtherAVB node for
r8a77965 Salvator-X board.

------------------------------------------------------------------------------
$ for i in `ls dts-new/*.dtb`; do
	dt=`basename $i`;
	echo $dt;
	./scripts/dtc/dtx_diff dts-old/$dt dts-new/$dt;
  done

$ r8a7795-es1-h3ulcb.dtb
 r8a7795-es1-h3ulcb-kf.dtb
 r8a7795-es1-salvator-x.dtb
 r8a7795-h3ulcb.dtb
 r8a7795-h3ulcb-kf.dtb
 r8a7795-salvator-x.dtb
 r8a7795-salvator-xs.dtb
 r8a77965-salvator-x.dtb
 --- dts-old/r8a77965-salvator-x.dtb
 +++ dts-new/r8a77965-salvator-x.dtb
 @@ -413,10 +413,17 @@
  		ethernet@e6800000 {
  			#address-cells = <0x1>;
  			#size-cells = <0x0>;
 +			clocks = <0x6 0x1 0x32c>;
 +			compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3";
 +			interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7", "ch8", "ch9", "ch10", "ch11", "ch12", "ch13", "ch14", "ch15", "ch16", "ch17", "ch18", "ch19", "ch20", "ch21", "ch22", "ch23", "ch24";
 +			interrupts = <0x0 0x27 0x4 0x0 0x28 0x4 0x0 0x29 0x4 0x0 0x2a 0x4 0x0 0x2b 0x4 0x0 0x2c 0x4 0x0 0x2d 0x4 0x0 0x2e 0x4 0x0 0x2f 0x4 0x0 0x30 0x4 0x0 0x31 0x4 0x0 0x32 0x4 0x0 0x33 0x4 0x0 0x34 0x4 0x0 0x35 0x4 0x0 0x36 0x4 0x0 0x37 0x4 0x0 0x38 0x4 0x0 0x39 0x4 0x0 0x3a 0x4 0x0 0x3b 0x4 0x0 0x3c 0x4 0x0 0x3d 0x4 0x0 0x3e 0x4 0x0 0x3f 0x4>;
  			phy-handle = <0x12>;
 +			phy-mode = "rgmii-txid";
  			pinctrl-0 = <0x11>;
  			pinctrl-names = "default";
 +			power-domains = <0x1 0x20>;
  			reg = <0x0 0xe6800000 0x0 0x800 0x0 0xe6a00000 0x0 0x10000>;
 +			resets = <0x6 0x32c>;
  			status = "okay";

  			ethernet-phy@0 {
 r8a7796-m3ulcb.dtb
 r8a7796-m3ulcb-kf.dtb
 r8a7796-salvator-x.dtb
 r8a7796-salvator-xs.dtb
 r8a77970-eagle.dtb
 r8a77970-v3msk.dtb
 r8a77995-draak.dtb
------------------------------------------------------------------------------

As per the previous version, this is based on what Simon already picked in his
development branch.

Branch for testing available at:
git://jmondi.org/linux m3-n/renesas-drivers-2018-02-13-v4.16-rc1/v2-simon

Thanks
   j

v1 -> v2:
- Change rgmii mode in ULCB, Draak, Eagle and V3MSK
- Reset rgmii mode for r8a77970
- Drop iommu dependencies and associated patches

Jacopo Mondi (10):
  arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode
  arm64: dts: renesas: ulcb: Override EtherAVB phy-mode
  arm64: dts: renesas: draak: Override EtherAVB phy-mode
  arm64: dts: renesas: eagle: Override EtherAVB phy-mode
  arm64: dts: renesas: v3msk: Override EtherAVB phy-mode
  arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii"
  arm64: dts: renesas: r8a7795: Set EtherAVB phy mode to "rgmii"
  arm64: dts: renesas: r8a77995: Set EtherAVB phy mode to "rgmii"
  arm64: dts: renesas: r8a77970: Set EtherAVB phy mode to "rgmii"
  arm64: dts: renesas: r8a77965: Add EtherAVB device node

 arch/arm64/boot/dts/renesas/r8a7795.dtsi         |  2 +-
 arch/arm64/boot/dts/renesas/r8a7796.dtsi         |  2 +-
 arch/arm64/boot/dts/renesas/r8a77965.dtsi        | 43 ++++++++++++++++++++++--
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts   |  1 +
 arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts   |  1 +
 arch/arm64/boot/dts/renesas/r8a77970.dtsi        |  2 +-
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts   |  1 +
 arch/arm64/boot/dts/renesas/r8a77995.dtsi        |  2 +-
 arch/arm64/boot/dts/renesas/salvator-common.dtsi |  1 +
 arch/arm64/boot/dts/renesas/ulcb.dtsi            |  1 +
 10 files changed, 49 insertions(+), 7 deletions(-)

--
2.7.4

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

* [PATCH v2 01/10] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 02/10] arm64: dts: renesas: ulcb: " Jacopo Mondi
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

As the PHY interface installed on the Salvator-X[S] board, provides TX
channel delay, make the "phy-mode" property a board-specific one, meant
to override the one specified in the SoC DTSI.

Follow up patches will reset the r8a7795/96/965 SoC DTSI to use "rgmii"
mode and let the board files override that.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
index 8e8ec30..c725f9b 100644
--- a/arch/arm64/boot/dts/renesas/salvator-common.dtsi
+++ b/arch/arm64/boot/dts/renesas/salvator-common.dtsi
@@ -279,6 +279,7 @@
 	pinctrl-0 = <&avb_pins>;
 	pinctrl-names = "default";
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-txid";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.7.4

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

* [PATCH v2 02/10] arm64: dts: renesas: ulcb: Override EtherAVB phy-mode
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 01/10] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 03/10] arm64: dts: renesas: draak: " Jacopo Mondi
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

As the PHY interface installed on the ULCB board provides TX
channel delay, make the "phy-mode" property a board-specific one, meant
to override the one specified in the SoC DTSI.

Follow up patches will reset the r8a7795/96 SoC DTSI to use "rgmii" mode\
and let the board files override that.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 arch/arm64/boot/dts/renesas/ulcb.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/renesas/ulcb.dtsi b/arch/arm64/boot/dts/renesas/ulcb.dtsi
index 3e7a6b9..6f81484 100644
--- a/arch/arm64/boot/dts/renesas/ulcb.dtsi
+++ b/arch/arm64/boot/dts/renesas/ulcb.dtsi
@@ -146,6 +146,7 @@
 	pinctrl-0 = <&avb_pins>;
 	pinctrl-names = "default";
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-txid";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.7.4

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

* [PATCH v2 03/10] arm64: dts: renesas: draak: Override EtherAVB phy-mode
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 01/10] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 02/10] arm64: dts: renesas: ulcb: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 04/10] arm64: dts: renesas: eagle: " Jacopo Mondi
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

As the PHY interface installed on the Draak board, provides TX
channel delay, make the "phy-mode" property a board-specific one, meant
to override the one specified in the SoC DTSI.

Follow up patches will reset the r8a77995 SoC DTSI to use "rgmii" mode
and let the board file override that.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
index af07da2..af18a09 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts
@@ -108,6 +108,7 @@
 	pinctrl-names = "default";
 	renesas,no-ether-link;
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-txid";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.7.4

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

* [PATCH v2 04/10] arm64: dts: renesas: eagle: Override EtherAVB phy-mode
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (2 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 03/10] arm64: dts: renesas: draak: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 05/10] arm64: dts: renesas: v3msk: " Jacopo Mondi
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

As the PHY interface installed on the Eagle board provides TX and RX
channels delays, make the "phy-mode" property a board-specific one,
meant to override the one specified in the SoC DTSI.

Follow up patches will reset the r8a77970 SoC DTSI to use "rgmii" mode
and let the board file override that.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
index 359e835..3c5f598 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts
@@ -36,6 +36,7 @@
 &avb {
 	renesas,no-ether-link;
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-id";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.7.4

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

* [PATCH v2 05/10] arm64: dts: renesas: v3msk: Override EtherAVB phy-mode
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (3 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 04/10] arm64: dts: renesas: eagle: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 06/10] arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii" Jacopo Mondi
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

As the PHY interface installed on the V3MSK board provides TX and RX
channels delays, make the "phy-mode" property a board-specific one,
meant to override the one specified in the SoC DTSI.

Follow up patches will reset the r8a77970 SoC DTSI to use "rgmii"
mode and let the board file override that.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts b/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
index 8624ca8..bb554ee 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77970-v3msk.dts
@@ -34,6 +34,7 @@
 &avb {
 	renesas,no-ether-link;
 	phy-handle = <&phy0>;
+	phy-mode = "rgmii-id";
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-- 
2.7.4

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

* [PATCH v2 06/10] arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii"
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (4 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 05/10] arm64: dts: renesas: v3msk: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 07/10] arm64: dts: renesas: r8a7795: " Jacopo Mondi
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Set the "phy-mode" property of EtherAVB device to "rgmii" and let board
files override it if the installed PHY layer provides delays for the
RX/TX channels.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
index 6075511..a99b0b2 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
@@ -974,7 +974,7 @@
 			clocks = <&cpg CPG_MOD 812>;
 			power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
 			resets = <&cpg 812>;
-			phy-mode = "rgmii-txid";
+			phy-mode = "rgmii";
 			iommus = <&ipmmu_ds0 16>;
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.7.4

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

* [PATCH v2 07/10] arm64: dts: renesas: r8a7795: Set EtherAVB phy mode to "rgmii"
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (5 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 06/10] arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii" Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 08/10] arm64: dts: renesas: r8a77995: " Jacopo Mondi
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Set the "phy-mode" property of EtherAVB device to "rgmii" and let board
files override it if the installed PHY layer provides delays for the
RX/TX channels.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 1f32340..87327eb 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -873,7 +873,7 @@
 			clocks = <&cpg CPG_MOD 812>;
 			power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
 			resets = <&cpg 812>;
-			phy-mode = "rgmii-txid";
+			phy-mode = "rgmii";
 			iommus = <&ipmmu_ds0 16>;
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.7.4

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

* [PATCH v2 08/10] arm64: dts: renesas: r8a77995: Set EtherAVB phy mode to "rgmii"
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (6 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 07/10] arm64: dts: renesas: r8a7795: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 09/10] arm64: dts: renesas: r8a77970: " Jacopo Mondi
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Set the "phy-mode" property of EtherAVB device to "rgmii" and let board
files override it if the installed PHY layer provides delays for the
RX/TX channels.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm64/boot/dts/renesas/r8a77995.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
index cd3c6a3..fc48677 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
@@ -512,7 +512,7 @@
 			clocks = <&cpg CPG_MOD 812>;
 			power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
 			resets = <&cpg 812>;
-			phy-mode = "rgmii-txid";
+			phy-mode = "rgmii";
 			iommus = <&ipmmu_ds0 16>;
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.7.4

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

* [PATCH v2 09/10] arm64: dts: renesas: r8a77970: Set EtherAVB phy mode to "rgmii"
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (7 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 08/10] arm64: dts: renesas: r8a77995: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-02-27 10:22 ` [PATCH v2 10/10] arm64: dts: renesas: r8a77965: Add EtherAVB device node Jacopo Mondi
  2018-03-01  9:53 ` [PATCH v2 00/10] R-Car M3-N: Enable " Simon Horman
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Set the "phy-mode" property of EtherAVB device to "rgmii" and let board
files override it if the installed PHY layer provides delays for the
RX/TX channels.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
---
 arch/arm64/boot/dts/renesas/r8a77970.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index de84df3..955fded 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -607,7 +607,7 @@
 			clocks = <&cpg CPG_MOD 812>;
 			power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
 			resets = <&cpg 812>;
-			phy-mode = "rgmii-id";
+			phy-mode = "rgmii";
 			iommus = <&ipmmu_rt 3>;
 			#address-cells = <1>;
 			#size-cells = <0>;
-- 
2.7.4

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

* [PATCH v2 10/10] arm64: dts: renesas: r8a77965: Add EtherAVB device node
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (8 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 09/10] arm64: dts: renesas: r8a77970: " Jacopo Mondi
@ 2018-02-27 10:22 ` Jacopo Mondi
  2018-03-01  9:53 ` [PATCH v2 00/10] R-Car M3-N: Enable " Simon Horman
  10 siblings, 0 replies; 12+ messages in thread
From: Jacopo Mondi @ 2018-02-27 10:22 UTC (permalink / raw)
  To: geert, horms, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland
  Cc: Jacopo Mondi, devicetree, linux-arm-kernel, netdev,
	linux-renesas-soc, linux-kernel

Populate the ethernet@e6800000 device node to enable Ethernet interface
for R-Car M3-N (R8A77965) SoC.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

---
v1 -> v2:
- Replace ALWAYS_ON power area identifier with numeric constant
v2 -> v3:
- Send as part of a dedicated series reworking "rgmii" properties in all
  mainline Renesas boards/SoC
- Add iommu dependencies
v3 -> v4:
- Remove iommu dependencies
---
 arch/arm64/boot/dts/renesas/r8a77965.dtsi | 43 ++++++++++++++++++++++++++++---
 1 file changed, 40 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi
index 8c9648a..1f25934 100644
--- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi
@@ -522,11 +522,48 @@
 		};
 
 		avb: ethernet@e6800000 {
+			compatible = "renesas,etheravb-r8a77965",
+				     "renesas,etheravb-rcar-gen3";
+			reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
+			interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "ch0", "ch1", "ch2", "ch3",
+					  "ch4", "ch5", "ch6", "ch7",
+					  "ch8", "ch9", "ch10", "ch11",
+					  "ch12", "ch13", "ch14", "ch15",
+					  "ch16", "ch17", "ch18", "ch19",
+					  "ch20", "ch21", "ch22", "ch23",
+					  "ch24";
+			clocks = <&cpg CPG_MOD 812>;
+			power-domains = <&sysc 32>;
+			resets = <&cpg 812>;
+			phy-mode = "rgmii";
 			#address-cells = <1>;
 			#size-cells = <0>;
-
-			reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>;
-			/* placeholder */
+			status = "disabled";
 		};
 
 		csi20: csi2@fea80000 {
-- 
2.7.4

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

* Re: [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node
  2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
                   ` (9 preceding siblings ...)
  2018-02-27 10:22 ` [PATCH v2 10/10] arm64: dts: renesas: r8a77965: Add EtherAVB device node Jacopo Mondi
@ 2018-03-01  9:53 ` Simon Horman
  10 siblings, 0 replies; 12+ messages in thread
From: Simon Horman @ 2018-03-01  9:53 UTC (permalink / raw)
  To: Jacopo Mondi
  Cc: geert, sergei.shtylyov, magnus.damm, robh+dt, mark.rutland,
	devicetree, linux-arm-kernel, netdev, linux-renesas-soc,
	linux-kernel

On Tue, Feb 27, 2018 at 11:22:44AM +0100, Jacopo Mondi wrote:
> Hi Simon, Geert,
>    in this second iteration I have dropped iommu dependencies for EtherAVB
> and have changed "phy-mode" for all mainlines Gen-3 boards, this time including
> ULCB, Draak, Eagle and V3MSK.
> 
> The series add phy-mode as a board property to the following board files:
> - salvator-common.dtsi
> - ulcb.dtsi
> - r8a77995-draak.dts
> - r8a77970-eagle.dts
> - r8a77970-v3msk.dts
> 
> And reset the EtherAVB phy-mode to "rgmii" in the following SoC DTSI:
> - r8a7795.dtsi
> - r8a7796.dtsi
> - r8a77995.dtsi
> - r8a77970.dtsi
> 
> And finally, I added EtherAVB device node for M3-N on top.

Thanks for the test report, applied.

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

end of thread, other threads:[~2018-03-01  9:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 10:22 [PATCH v2 00/10] R-Car M3-N: Enable EtherAVB device node Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 01/10] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 02/10] arm64: dts: renesas: ulcb: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 03/10] arm64: dts: renesas: draak: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 04/10] arm64: dts: renesas: eagle: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 05/10] arm64: dts: renesas: v3msk: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 06/10] arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii" Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 07/10] arm64: dts: renesas: r8a7795: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 08/10] arm64: dts: renesas: r8a77995: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 09/10] arm64: dts: renesas: r8a77970: " Jacopo Mondi
2018-02-27 10:22 ` [PATCH v2 10/10] arm64: dts: renesas: r8a77965: Add EtherAVB device node Jacopo Mondi
2018-03-01  9:53 ` [PATCH v2 00/10] R-Car M3-N: Enable " 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).