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

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