sunxi: t113: update (non-working) GMAC config on YT-113X-SPI
authorZoltan HERPAI <wigyori@uid0.hu>
Thu, 27 Jul 2023 11:45:04 +0000 (13:45 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 27 Jul 2023 11:45:04 +0000 (13:45 +0200)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
target/linux/sunxi/patches-6.1/0013-add-myir-spi.patch

index cfc50e8e71204e573355a716532a51c7d3d254fe..b6ab71963ce10aefb20010e2712b99a8b4cae7d3 100644 (file)
@@ -244,19 +244,19 @@ diff -ruN a/arch/arm/boot/dts/sun8i-t113s-myd-yt113x-spi.dts b/arch/arm/boot/dts
 +      };
 +};
 +
-+
-+
-+
-+
 +&mdio {
-+      ext_rgmii_phy: ethernet-phy@0 {
++      reset-assert-us = <10000>;
++      reset-deassert-us = <10000>;
++      reset-gpios = <&pio 4 11 GPIO_ACTIVE_LOW>; /* PE11 */
++
++      extphy: ethernet-phy@7 {
 +//            #address-cells = <1>;
 +//            #size-cells = <0>;
-+//            compatible = "snps,dwmac-mdio";
-+              compatible = "ethernet-phy-ieee802.3-c22";
++              compatible = "snps,dwmac-mdio";
++//            compatible = "ethernet-phy-ieee802.3-c22";
 +
-+              reg = <0>;
-+              reset-gpios = <&pio 4 11 GPIO_ACTIVE_HIGH>;
++              reg = <7>;
++//            reset-gpios = <&pio 4 11 GPIO_ACTIVE_HIGH>;
 +      };
 +};
 +
@@ -265,8 +265,8 @@ diff -ruN a/arch/arm/boot/dts/sun8i-t113s-myd-yt113x-spi.dts b/arch/arm/boot/dts
 +      pinctrl-0 = <&rgmii_pg_pins>;
 +
 +      phy-supply = <&reg_3v3>;
-+      phy-handle = <&ext_rgmii_phy>;
-+      phy-mode = "rgmii";
++      phy-handle = <&extphy>;
++      phy-mode = "rgmii-id";
 +
 +      status = "okay";
 +};