diff mbox series

arm64: zynqmp: Add Ethernet node for zcu1285 revA

Message ID e057d43e85ff9e2ca04e2b38d51a4a3c5d8835b4.1608221207.git.michal.simek@xilinx.com
State Accepted
Commit 0e3a7aa7a9cbf5764cae8ffbda09985c677d4476
Delegated to: Michal Simek
Headers show
Series arm64: zynqmp: Add Ethernet node for zcu1285 revA | expand

Commit Message

Michal Simek Dec. 17, 2020, 4:06 p.m. UTC
From: Harini Katakam <harini.katakam@xilinx.com>

This patch add ethernet node gem1 to zcu1285 RevB.
GMII to RGMII converter sits between MAC and external
phy connected over GMII to MAC and RGMMI to external phy

Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/dts/zynqmp-zcu1285-revA.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Michal Simek Jan. 5, 2021, 9:38 a.m. UTC | #1
čt 17. 12. 2020 v 17:06 odesílatel Michal Simek
<michal.simek@xilinx.com> napsal:
>
> From: Harini Katakam <harini.katakam@xilinx.com>
>
> This patch add ethernet node gem1 to zcu1285 RevB.
> GMII to RGMII converter sits between MAC and external
> phy connected over GMII to MAC and RGMMI to external phy
>
> Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  arch/arm/dts/zynqmp-zcu1285-revA.dts | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/arch/arm/dts/zynqmp-zcu1285-revA.dts b/arch/arm/dts/zynqmp-zcu1285-revA.dts
> index f041df83dab4..21d62e993a33 100644
> --- a/arch/arm/dts/zynqmp-zcu1285-revA.dts
> +++ b/arch/arm/dts/zynqmp-zcu1285-revA.dts
> @@ -23,6 +23,7 @@
>                 serial1 = &dcc;
>                 spi0 = &qspi;
>                 mmc0 = &sdhci1;
> +               ethernet0 = &gem1; /* EMIO */
>                 i2c = &i2c0; /* EMIO */
>         };
>
> @@ -222,6 +223,28 @@
>         };
>  };
>
> +&gem1 {
> +       mdio {
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +               phy1: ethernet-phy@1 {
> +                       reg = <1>; /* KSZ9031RNXIC on AES-FMC-NETW1-G */
> +                       rxc-skew-ps = <1800>; /* Skew control of RX_CLK pad output */
> +                       txc-skew-ps = <1800>; /* Skew control of GTX_CLK pad input */
> +                       txen-skew-ps = <900>; /* Skew control of TX_CTL pad input */
> +                       rxdv-skew-ps = <0>; /* Skew control of RX_CTL pad output */
> +                       rxd0-skew-ps = <0>; /* Skew control of RXD0 pad output */
> +                       rxd1-skew-ps = <0>; /* Skew control of RXD1 pad output */
> +                       rxd2-skew-ps = <0>; /* Skew control of RXD2 pad output */
> +                       rxd3-skew-ps = <0>; /* Skew control of RXD3 pad output */
> +                       txd0-skew-ps = <900>; /* Skew control of TXD0 pad input */
> +                       txd1-skew-ps = <900>; /* Skew control of TXD1 pad input */
> +                       txd2-skew-ps = <900>; /* Skew control of TXD2 pad input */
> +                       txd3-skew-ps = <900>; /* Skew control of TXD3 pad input */
> +               };
> +       };
> +};
> +
>  &qspi {
>         status = "okay";
>         flash@0 {
> --
> 2.29.2
>

Applied.
M
diff mbox series

Patch

diff --git a/arch/arm/dts/zynqmp-zcu1285-revA.dts b/arch/arm/dts/zynqmp-zcu1285-revA.dts
index f041df83dab4..21d62e993a33 100644
--- a/arch/arm/dts/zynqmp-zcu1285-revA.dts
+++ b/arch/arm/dts/zynqmp-zcu1285-revA.dts
@@ -23,6 +23,7 @@ 
 		serial1 = &dcc;
 		spi0 = &qspi;
 		mmc0 = &sdhci1;
+		ethernet0 = &gem1; /* EMIO */
 		i2c = &i2c0; /* EMIO */
 	};
 
@@ -222,6 +223,28 @@ 
 	};
 };
 
+&gem1 {
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		phy1: ethernet-phy@1 {
+			reg = <1>; /* KSZ9031RNXIC on AES-FMC-NETW1-G */
+			rxc-skew-ps = <1800>; /* Skew control of RX_CLK pad output */
+			txc-skew-ps = <1800>; /* Skew control of GTX_CLK pad input */
+			txen-skew-ps = <900>; /* Skew control of TX_CTL pad input */
+			rxdv-skew-ps = <0>; /* Skew control of RX_CTL pad output */
+			rxd0-skew-ps = <0>; /* Skew control of RXD0 pad output */
+			rxd1-skew-ps = <0>; /* Skew control of RXD1 pad output */
+			rxd2-skew-ps = <0>; /* Skew control of RXD2 pad output */
+			rxd3-skew-ps = <0>; /* Skew control of RXD3 pad output */
+			txd0-skew-ps = <900>; /* Skew control of TXD0 pad input */
+			txd1-skew-ps = <900>; /* Skew control of TXD1 pad input */
+			txd2-skew-ps = <900>; /* Skew control of TXD2 pad input */
+			txd3-skew-ps = <900>; /* Skew control of TXD3 pad input */
+		};
+	};
+};
+
 &qspi {
 	status = "okay";
 	flash@0 {