]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8m{m,n}-venice-gw7902: add support for GPY111 phy
authorTim Harvey <tharvey@gateworks.com>
Wed, 13 Apr 2022 16:09:49 +0000 (09:09 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:24 +0000 (12:44 +0200)
The TI DP83867 phy has been replaced with the MaxLinear GPY111 phy
due to part availability. Add support for it:
 - increase post-reset time to 300ms per datasheet
 - add tx-delay/rx-delay config

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
arch/arm/dts/imx8mm-venice-gw7902-u-boot.dtsi
arch/arm/dts/imx8mm-venice-gw7902.dts
arch/arm/dts/imx8mn-venice-gw7902-u-boot.dtsi
arch/arm/dts/imx8mn-venice-gw7902.dts

index 1e1769f551270930a9657e18395d528a9af03f65..f21e46b12dd77bfebee4bc10e8c9497c95f67ba6 100644 (file)
 &fec1 {
        phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
        phy-reset-duration = <1>;
-       phy-reset-post-delay = <1>;
+       phy-reset-post-delay = <300>;
 };
 
 &pinctrl_fec1 {
index adf521632d63a774c7495bda6052179b929eebcb..b0404ec4c8af3562ab0ede7d8fc66f6477883ee3 100644 (file)
                ethphy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <0>;
+                       /* TI DP83867 props */
                        ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                        ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                        tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
                        rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+                       /* GPY111 props */
+                       rx-internal-delay-ps = <2000>;
+                       tx-internal-delay-ps = <2500>;
                };
        };
 };
index 9431e2a6cde7eeb42cb31fe04365114cb7dd2890..17e6828c79f8d50ebb0130e37cbe9dab6058387f 100644 (file)
 &fec1 {
        phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
        phy-reset-duration = <1>;
-       phy-reset-post-delay = <1>;
+       phy-reset-post-delay = <300>;
 };
 
 &pinctrl_fec1 {
index 29897c161b96dff3e34e9afc3148c9445bd70f45..d026d965580ecfb5ff66ee498838aff6fdf76623 100644 (file)
                ethphy0: ethernet-phy@0 {
                        compatible = "ethernet-phy-ieee802.3-c22";
                        reg = <0>;
+                       /* TI DP83867 props */
                        ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                        ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                        tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
                        rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+                       /* GPY111 props */
+                       rx-internal-delay-ps = <2000>;
+                       tx-internal-delay-ps = <2500>;
                };
        };
 };