]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: a523: Rename emac0 to gmac0
authorChen-Yu Tsai <wens@csie.org>
Sat, 28 Jun 2025 05:44:38 +0000 (13:44 +0800)
committerChen-Yu Tsai <wens@csie.org>
Tue, 8 Jul 2025 16:19:44 +0000 (00:19 +0800)
The datasheets refer to the first Ethernet controller as GMAC0, not
EMAC0.

Fix the compatible string, node label and pinmux function name to match
what the datasheets use. A change to the device tree binding is sent
separately.

Fixes: 56766ca6c4f6 ("arm64: dts: allwinner: a523: Add EMAC0 ethernet MAC")
Fixes: acca163f3f51 ("arm64: dts: allwinner: a527: add EMAC0 to Radxa A5E board")
Fixes: c6800f15998b ("arm64: dts: allwinner: t527: add EMAC0 to Avaota-A1 board")
Link: https://patch.msgid.link/20250628054438.2864220-3-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts

index 8b7cbc2e78f500e1dc704e9a6bee87e70285509f..51cd148f4227b422dde080aa34645c320e60058a 100644 (file)
                                       "PH5", "PH6", "PH7", "PH9", "PH10",
                                       "PH14", "PH15", "PH16", "PH17", "PH18";
                                allwinner,pinmux = <5>;
-                               function = "emac0";
+                               function = "gmac0";
                                drive-strength = <40>;
                                bias-disable;
                        };
                        status = "disabled";
                };
 
-               emac0: ethernet@4500000 {
-                       compatible = "allwinner,sun55i-a523-emac0",
+               gmac0: ethernet@4500000 {
+                       compatible = "allwinner,sun55i-a523-gmac0",
                                     "allwinner,sun50i-a64-emac";
                        reg = <0x04500000 0x10000>;
                        clocks = <&ccu CLK_BUS_EMAC0>;
index 0f58d92a6adcd6902d28cdfdabbec86c14eceb77..8bc0f2c72a247ca3435a02cfc316bcc28b77356d 100644 (file)
@@ -12,7 +12,7 @@
        compatible = "radxa,cubie-a5e", "allwinner,sun55i-a527";
 
        aliases {
-               ethernet0 = &emac0;
+               ethernet0 = &gmac0;
                serial0 = &uart0;
        };
 
@@ -55,7 +55,7 @@
        status = "okay";
 };
 
-&emac0 {
+&gmac0 {
        phy-mode = "rgmii-id";
        phy-handle = <&ext_rgmii_phy>;
        phy-supply = <&reg_cldo3>;
index 08127f0cdd3571d4b2083871694ff62b9d7dd39f..142177c1f737f55b5c0d776d48ddc29cd2fbf04a 100644 (file)
@@ -12,7 +12,7 @@
        compatible = "yuzukihd,avaota-a1", "allwinner,sun55i-t527";
 
        aliases {
-               ethernet0 = &emac0;
+               ethernet0 = &gmac0;
                serial0 = &uart0;
        };
 
@@ -65,7 +65,7 @@
        status = "okay";
 };
 
-&emac0 {
+&gmac0 {
        phy-mode = "rgmii-id";
        phy-handle = <&ext_rgmii_phy>;
        phy-supply = <&reg_dcdc4>;