arm64: dts: rockchip: Remove ethernetX aliases from the SoC dtsi for RK3328
authorDragan Simic <dsimic@manjaro.org>
Tue, 12 Dec 2023 07:53:50 +0000 (08:53 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 12 Dec 2023 20:43:47 +0000 (21:43 +0100)
Not all supported boards actually use the RK3328's built-in GMACs, while the
SoC TRM and the datasheet don't define some standard numbering in this case.
Thus, remove the ethernet0 and ethernet1 aliases from the RK3328 SoC dtsi file,
and add the same alias back to the appropriate board dts(i) files.

These changes also touch one RK3318-based board dts, because it actually
depends on the RK3328 SoC dtsi and enables one of the GMACs.

This is quite similar to the already performed migration of the mmcX aliases
from the Rockchip SoC dtsi files to the board dts(i) files.

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Link: https://lore.kernel.org/r/0c14f2e354d32f5d45c718ce16643553ca72f6a5.1702366958.git.dsimic@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3318-a95x-z2.dts
arch/arm64/boot/dts/rockchip/rk3328-a1.dts
arch/arm64/boot/dts/rockchip/rk3328-evb.dts
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
arch/arm64/boot/dts/rockchip/rk3328-orangepi-r1-plus.dts
arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
arch/arm64/boot/dts/rockchip/rk3328.dtsi

index 1deef53a4c9407694fa71184c9eb08d691cf9a62..c7b1862fca6a0f14ab1eef78239f5875a52be164 100644 (file)
@@ -9,6 +9,7 @@
        compatible = "zkmagic,a95x-z2", "rockchip,rk3318";
 
        aliases {
+               ethernet0 = &gmac2phy;
                mmc0 = &sdmmc;
                mmc1 = &sdio;
                mmc2 = &emmc;
index 40bf808642b91f679586ce617ca8d1be2869fa5c..824183e515da6434caedf89dd6fd206988690cf5 100644 (file)
@@ -9,6 +9,7 @@
        compatible = "azw,beelink-a1", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
index ff6b466e0e07442b10ba97d9ba129f1cc36fbeb8..1eef5504445fa9eaffd135980e955309ef8c2126 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "rockchip,rk3328-evb", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2phy;
                mmc0 = &sdmmc;
                mmc1 = &sdio;
                mmc2 = &emmc;
index 1445b879ac7abd8f6deec6c39d63900b67d8f6f0..a4399da7d8b1ad4652060b53f00f05ae2c9c33e7 100644 (file)
@@ -14,6 +14,7 @@
        compatible = "friendlyarm,nanopi-r2s", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                ethernet1 = &rtl8153;
                mmc0 = &sdmmc;
        };
index dc83d74045a3c1660b8695e4fd90b6535bed9a8b..f20662929c7713c918c43a8633853571ce8b1274 100644 (file)
@@ -15,6 +15,7 @@
        compatible = "xunlong,orangepi-r1-plus", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                ethernet1 = &rtl8153;
                mmc0 = &sdmmc;
        };
index 5d5d9574088cab6047d533b35cc57ba137597418..414897a57e757045e5d5a036568f56d004dcba99 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "firefly,roc-rk3328-cc", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
index 018a3a5075c72ed013ea33b7a7a8b16a24675a40..07f00af19aaf50b223851a97a4f921544ce9f015 100644 (file)
@@ -21,6 +21,8 @@
        compatible = "radxa,rockpi-e", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
+               ethernet1 = &gmac2phy;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
index 0a27fa5271f57684a930d4a0cd9ded6dd74d1eb2..229fe9da9c2ddc1e31ac662a6996424efe78d64e 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "pine64,rock64", "rockchip,rk3328";
 
        aliases {
+               ethernet0 = &gmac2io;
                mmc0 = &sdmmc;
                mmc1 = &emmc;
        };
index 8e0f686d8faa1aa544c583e86428f722a85d6881..56e1d058164881d6b6a7d594f432c55989082a41 100644 (file)
@@ -31,8 +31,6 @@
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                i2c3 = &i2c3;
-               ethernet0 = &gmac2io;
-               ethernet1 = &gmac2phy;
        };
 
        cpus {