]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: dts: Update RGMII phy-mode properties
authorAndre Przywara <andre.przywara@arm.com>
Tue, 15 Mar 2022 23:20:54 +0000 (23:20 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 26 Mar 2022 00:16:44 +0000 (00:16 +0000)
Commit f11513d99787 ("net: phy: realtek: Add tx/rx delay config for
8211e") made the Realtek PHY driver honour the phy-mode DT property,
to set up the proper delay scheme for the RX and TX lines. A similar
change in the kernel revealed that those properties were mostly wrong.
The kernel DTs got updated over the last few months, but we were missing
out on the U-Boot version.

Just sync in the phy-mode properties from the mainline kernel,
v5.17-rc7, to avoid the breaking DT sync that late in the cycle.

This fixes Ethernet operation on the affected boards.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
14 files changed:
arch/arm/dts/sun50i-a64-sopine-baseboard.dts
arch/arm/dts/sun50i-h5-nanopi-neo2.dts
arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts
arch/arm/dts/sun6i-a31-hummingbird.dts
arch/arm/dts/sun7i-a20-bananapi-m1-plus.dts
arch/arm/dts/sun7i-a20-bananapi.dts
arch/arm/dts/sun7i-a20-bananapro.dts
arch/arm/dts/sun7i-a20-cubietruck.dts
arch/arm/dts/sun7i-a20-olinuxino-lime2.dts
arch/arm/dts/sun7i-a20-pcduino3-nano.dts
arch/arm/dts/sun8i-a83t-bananapi-m3.dts
arch/arm/dts/sun8i-a83t-cubietruck-plus.dts
arch/arm/dts/sun8i-h3-orangepi-plus.dts
arch/arm/dts/sunxi-bananapi-m2-plus.dtsi

index e22b94c83647fbc1cd22f5137687c341395a9373..5e66ce1a334fb2831071979390c4668ad61df955 100644 (file)
@@ -79,7 +79,7 @@
 &emac {
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>;
-       phy-mode = "rgmii-id";
+       phy-mode = "rgmii-txid";
        phy-handle = <&ext_rgmii_phy>;
        phy-supply = <&reg_dc1sw>;
        status = "okay";
index 02f8e72f0cad1db1e5490ee559cd682b5e8250a5..05486cccee1c4ef73d7e8284d30703280c363c79 100644 (file)
@@ -75,7 +75,7 @@
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_gmac_3v3>;
        phy-handle = <&ext_rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 };
 
index d13980ed7a79a41c2c9024f7b2d0fe3ba082fbc9..7ec5ac850a0dc576a9680aac773ad9792387a9c6 100644 (file)
@@ -69,7 +69,7 @@
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_gmac_3v3>;
        phy-handle = <&ext_rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 };
 
index ce4f9e9834bf1de946984532494e466a79fbd045..2c14358035020f6a24c2813aa915117c0f8df910 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_pins_rgmii_a>, <&gmac_phy_reset_pin_hummingbird>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>;
        snps,reset-active-low;
        snps,reset-delays-us = <0 10000 30000>;
index e2bfe0058830fd12c14cf0b033871ba35f390d21..4dbcad1343b5b07e1dc7d692c75e8ea28bd2589f 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        phy-supply = <&reg_gmac_3v3>;
        status = "okay";
 
index 81bc85d398c155573b128af188673a762591fba9..33040c43bce7b454f28008b8b7b0abbb4a2dbdf6 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        phy-supply = <&reg_gmac_3v3>;
        status = "okay";
 
index 0176e9de018033201cbf04b735d48a5530e9b22e..8a75545e22857c1102bd14a0e555ab3f27bab9d2 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        phy-supply = <&reg_gmac_3v3>;
        status = "okay";
 
index 99f531b8d2a78a2676bd34812e4a1127d214394e..46a9f4669e143a7ce9d27f7e290edae06dfe0194 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 
        phy1: ethernet-phy@1 {
index 4e1c590eb09821bb7827029c203542e9e4e1eed1..996201665b7e6b82d92120cd97c8050c57c20610 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 
        phy1: ethernet-phy@1 {
index 538ea15fa32fe981eb5be25727ac82a6babdb3e5..205eaae44a039f029d1f6e1dfa2bb0943f30239e 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 
        phy1: ethernet-phy@1 {
index eaff6fa40186383cb092a50c4852b0d9ce6d4782..2beafe3a31d273fcd3bbbf070d7b25739e43c6db 100644 (file)
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_sw>;
        phy-handle = <&rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        allwinner,rx-delay-ps = <700>;
        allwinner,tx-delay-ps = <700>;
        status = "okay";
index 5dba4fc310f8dca35232eed33b1399e1023ad8a9..ecd9ff38a8b96ab9488c556d8e00a80f0a8cc5cf 100644 (file)
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_dldo4>;
        phy-handle = <&rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        status = "okay";
 };
 
index 97f497854e05d26819a692139f0a1e336c8de9a1..d05fa679dcd30558aab6d7a8e33e5308a6b16f98 100644 (file)
@@ -85,7 +85,7 @@
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_gmac_3v3>;
        phy-handle = <&ext_rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
 
        status = "okay";
 };
index 39263e74fbb531be8b856362560328ea7d996a9f..8e5cb3b3fd6863a3a1609d52fa2364eeba813e7a 100644 (file)
        pinctrl-0 = <&emac_rgmii_pins>;
        phy-supply = <&reg_gmac_3v3>;
        phy-handle = <&ext_rgmii_phy>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
 
        status = "okay";
 };