* [PATCH] arm64: zynqmp: Add ethernet node for zc1275 revB
@ 2020-12-17 16:03 Michal Simek
2021-01-05 9:38 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-12-17 16:03 UTC (permalink / raw)
To: u-boot
From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
This patch add ethernet node gem1 to zc1275 RevB.
GMII to RGMII converter sits between MAC and external
phy connected over GMII to MAC and RGMMI to external phy.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
arch/arm/dts/zynqmp-zcu1275-revB.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/dts/zynqmp-zcu1275-revB.dts b/arch/arm/dts/zynqmp-zcu1275-revB.dts
index b612215f40e7..1de890c30f64 100644
--- a/arch/arm/dts/zynqmp-zcu1275-revB.dts
+++ b/arch/arm/dts/zynqmp-zcu1275-revB.dts
@@ -23,6 +23,7 @@
serial1 = &dcc;
spi0 = &qspi;
mmc0 = &sdhci1;
+ ethernet0 = &gem1;
};
chosen {
@@ -40,6 +41,29 @@
status = "okay";
};
+&gem1 {
+ status = "okay";
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ phy1: ethernet-phy at 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 at 0 {
--
2.29.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] arm64: zynqmp: Add ethernet node for zc1275 revB
2020-12-17 16:03 [PATCH] arm64: zynqmp: Add ethernet node for zc1275 revB Michal Simek
@ 2021-01-05 9:38 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2021-01-05 9:38 UTC (permalink / raw)
To: u-boot
?t 17. 12. 2020 v 17:03 odes?latel Michal Simek
<michal.simek@xilinx.com> napsal:
>
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>
> This patch add ethernet node gem1 to zc1275 RevB.
> GMII to RGMII converter sits between MAC and external
> phy connected over GMII to MAC and RGMMI to external phy.
>
> Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> arch/arm/dts/zynqmp-zcu1275-revB.dts | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/arm/dts/zynqmp-zcu1275-revB.dts b/arch/arm/dts/zynqmp-zcu1275-revB.dts
> index b612215f40e7..1de890c30f64 100644
> --- a/arch/arm/dts/zynqmp-zcu1275-revB.dts
> +++ b/arch/arm/dts/zynqmp-zcu1275-revB.dts
> @@ -23,6 +23,7 @@
> serial1 = &dcc;
> spi0 = &qspi;
> mmc0 = &sdhci1;
> + ethernet0 = &gem1;
> };
>
> chosen {
> @@ -40,6 +41,29 @@
> status = "okay";
> };
>
> +&gem1 {
> + status = "okay";
> + mdio {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + phy1: ethernet-phy at 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 at 0 {
> --
> 2.29.2
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-05 9:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 16:03 [PATCH] arm64: zynqmp: Add ethernet node for zc1275 revB Michal Simek
2021-01-05 9:38 ` Michal Simek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.