All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: zynqmp: Describe TI phy as ethernet-phy-id with reset on zcu106
@ 2022-11-16 10:59 Michal Simek
  2022-11-22 11:07 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2022-11-16 10:59 UTC (permalink / raw)
  To: u-boot, git

zcu106 also connects ethernet phy reset via tca6416 chip as is done on
other evaluation boards. That's why describe this connection to make sure
that ethernet phy is reset before it's use.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 arch/arm/dts/zynqmp-zcu106-revA.dts | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/arch/arm/dts/zynqmp-zcu106-revA.dts b/arch/arm/dts/zynqmp-zcu106-revA.dts
index 3e137676feb6..4858b4d1f5e9 100644
--- a/arch/arm/dts/zynqmp-zcu106-revA.dts
+++ b/arch/arm/dts/zynqmp-zcu106-revA.dts
@@ -200,12 +200,19 @@
 	phy-mode = "rgmii-id";
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_gem3_default>;
-	phy0: ethernet-phy@c {
-		reg = <0xc>;
-		ti,rx-internal-delay = <0x8>;
-		ti,tx-internal-delay = <0xa>;
-		ti,fifo-depth = <0x1>;
-		ti,dp83867-rxctrl-strap-quirk;
+	mdio: mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		phy0: ethernet-phy@c {
+			#phy-cells = <1>;
+			reg = <0xc>;
+			compatible = "ethernet-phy-id2000.a231";
+			ti,rx-internal-delay = <0x8>;
+			ti,tx-internal-delay = <0xa>;
+			ti,fifo-depth = <0x1>;
+			ti,dp83867-rxctrl-strap-quirk;
+			reset-gpios = <&tca6416_u97 6 GPIO_ACTIVE_LOW>;
+		};
 	};
 };
 
-- 
2.36.1


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

* Re: [PATCH] arm64: zynqmp: Describe TI phy as ethernet-phy-id with reset on zcu106
  2022-11-16 10:59 [PATCH] arm64: zynqmp: Describe TI phy as ethernet-phy-id with reset on zcu106 Michal Simek
@ 2022-11-22 11:07 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2022-11-22 11:07 UTC (permalink / raw)
  To: Michal Simek; +Cc: u-boot, git

st 16. 11. 2022 v 11:59 odesílatel Michal Simek <michal.simek@amd.com> napsal:
>
> zcu106 also connects ethernet phy reset via tca6416 chip as is done on
> other evaluation boards. That's why describe this connection to make sure
> that ethernet phy is reset before it's use.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
>  arch/arm/dts/zynqmp-zcu106-revA.dts | 19 +++++++++++++------
>  1 file changed, 13 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/dts/zynqmp-zcu106-revA.dts b/arch/arm/dts/zynqmp-zcu106-revA.dts
> index 3e137676feb6..4858b4d1f5e9 100644
> --- a/arch/arm/dts/zynqmp-zcu106-revA.dts
> +++ b/arch/arm/dts/zynqmp-zcu106-revA.dts
> @@ -200,12 +200,19 @@
>         phy-mode = "rgmii-id";
>         pinctrl-names = "default";
>         pinctrl-0 = <&pinctrl_gem3_default>;
> -       phy0: ethernet-phy@c {
> -               reg = <0xc>;
> -               ti,rx-internal-delay = <0x8>;
> -               ti,tx-internal-delay = <0xa>;
> -               ti,fifo-depth = <0x1>;
> -               ti,dp83867-rxctrl-strap-quirk;
> +       mdio: mdio {
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +               phy0: ethernet-phy@c {
> +                       #phy-cells = <1>;
> +                       reg = <0xc>;
> +                       compatible = "ethernet-phy-id2000.a231";
> +                       ti,rx-internal-delay = <0x8>;
> +                       ti,tx-internal-delay = <0xa>;
> +                       ti,fifo-depth = <0x1>;
> +                       ti,dp83867-rxctrl-strap-quirk;
> +                       reset-gpios = <&tca6416_u97 6 GPIO_ACTIVE_LOW>;
> +               };
>         };
>  };
>
> --
> 2.36.1
>

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:[~2022-11-22 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 10:59 [PATCH] arm64: zynqmp: Describe TI phy as ethernet-phy-id with reset on zcu106 Michal Simek
2022-11-22 11:07 ` 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.