]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
arm64: dts: allwinner: t527: add EMAC0 to Avaota-A1 board
authorYixun Lan <dlan@gentoo.org>
Wed, 30 Apr 2025 05:32:07 +0000 (13:32 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 2 May 2025 17:29:07 +0000 (01:29 +0800)
On Avaota A1 board, the EMAC0 connect to an external RTL8211F-CG PHY,
which features a 25MHz crystal, and using PH8 pin as PHY reset.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
Link: https://patch.msgid.link/20250430-01-sun55i-emac0-v3-5-6fc000bbccbd@gentoo.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts

index dea2acc1849bbe62e8a424c32fe1e42322f9c475..08127f0cdd3571d4b2083871694ff62b9d7dd39f 100644 (file)
@@ -12,6 +12,7 @@
        compatible = "yuzukihd,avaota-a1", "allwinner,sun55i-t527";
 
        aliases {
+               ethernet0 = &emac0;
                serial0 = &uart0;
        };
 
        status = "okay";
 };
 
+&emac0 {
+       phy-mode = "rgmii-id";
+       phy-handle = <&ext_rgmii_phy>;
+       phy-supply = <&reg_dcdc4>;
+
+       allwinner,tx-delay-ps = <100>;
+       allwinner,rx-delay-ps = <300>;
+
+       status = "okay";
+};
+
+&mdio0 {
+       ext_rgmii_phy: ethernet-phy@1 {
+               compatible = "ethernet-phy-ieee802.3-c22";
+               reg = <1>;
+       };
+};
+
 &mmc0 {
        vmmc-supply = <&reg_cldo3>;
        cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */