arm64: dts: rockchip: Remove ethernet0 alias from the SoC dtsi for RK3399
authorDragan Simic <dsimic@manjaro.org>
Tue, 12 Dec 2023 07:53:48 +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 RK3399's built-in GMAC, while the
SoC TRM and the datasheet don't define some standard numbering in this case.
Thus, remove the ethernet0 alias from the RK3399 SoC dtsi file, and add the
same alias back to the appropriate board dts(i) files.

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/20879826c01fb9ead71c339866846ea794669802.1702366958.git.dsimic@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
19 files changed:
arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts
arch/arm64/boot/dts/rockchip/rk3399-evb.dts
arch/arm64/boot/dts/rockchip/rk3399-ficus.dts
arch/arm64/boot/dts/rockchip/rk3399-firefly.dts
arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts
arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-captain.dts
arch/arm64/boot/dts/rockchip/rk3399-khadas-edge-v.dts
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
arch/arm64/boot/dts/rockchip/rk3399-leez-p710.dts
arch/arm64/boot/dts/rockchip/rk3399-nanopi4.dtsi
arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
arch/arm64/boot/dts/rockchip/rk3399-roc-pc.dtsi
arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts
arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
arch/arm64/boot/dts/rockchip/rk3399.dtsi
arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi

index 6464ef4d113ddd8613910ed24c6809cb016f8c0e..173da81fc23117f959b859e5587d44dcea7c1143 100644 (file)
@@ -15,6 +15,7 @@
        compatible = "openailab,eaidk-610", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 3d1e126b553f93f4a93f33289ee7b0221a082183..55eca7a50a1f546d17e5ff8b66d7fd040058f181 100644 (file)
@@ -12,6 +12,7 @@
        compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdhci;
        };
 
index 1ce85a5816e4514519ff975fae4bbb26511fd10a..30e4879f322c5dc0317c55ac17fbe38010746af6 100644 (file)
        model = "96boards RK3399 Ficus";
        compatible = "vamrs,ficus", "rockchip,rk3399";
 
+       aliases {
+               ethernet0 = &gmac;
+       };
+
        chosen {
                stdout-path = "serial2:1500000n8";
        };
index c5db64f3e12413c5fe0259735b37c321d3bac00b..260415d99aebf8fcb301bd6e3d32354eb4d1f63d 100644 (file)
@@ -16,6 +16,7 @@
        compatible = "firefly,firefly-rk3399", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 7af27e8216f1b30e394ba5586f061a55ad7ffa72..4a6ab6c2e24cff8cd47c6f09c554bf8a84e4dc1c 100644 (file)
@@ -11,6 +11,7 @@
        compatible = "hugsun,x99", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 8302e51def52a382ef9a442509f6dab44d414c71..99ac4ed0f13f6f69b1ec826de346dad4374dca69 100644 (file)
 / {
        model = "Khadas Edge-Captain";
        compatible = "khadas,edge-captain", "rockchip,rk3399";
+
+       aliases {
+               ethernet0 = &gmac;
+       };
 };
 
 &gmac {
index f5dcb99dc3495a571ee44ec68ce5f78c37cdb126..e12e7b4d64ca17226b936c02bd70cbcfaf6bd5b0 100644 (file)
 / {
        model = "Khadas Edge-V";
        compatible = "khadas,edge-v", "rockchip,rk3399";
+
+       aliases {
+               ethernet0 = &gmac;
+       };
 };
 
 &gmac {
index 1eb287a3f8c03e2c7ed333d284bcd4b81be92d94..9e3aec4440bd652c6d4b2702aa72e9653fc57adf 100644 (file)
@@ -19,6 +19,7 @@
        compatible = "kobol,helios64", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdmmc;
                mmc1 = &sdhci;
                spi1 = &spi1;
index a21ac319f809fea04c99e90e51aeeaab85be7fed..cb69e2145fa9400c84b8038c9ccd372224f14fb4 100644 (file)
@@ -15,6 +15,7 @@
        compatible = "leez,p710", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 7c5f441a2219ee4ec7631a09b5309ff29c5d77f4..b7f1e47978a69e796fda80afec783becac45ad8d 100644 (file)
@@ -18,6 +18,7 @@
 
 / {
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index dba4d03bfc2b84e4a373d1e30ab2f9c4e0cb9ba3..e7551449e718ca7f6f79b01a97194a9ecb12829f 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "rockchip,rk3399-orangepi", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 20e3f41efe97fa873aa3727aaf3e7597dffa0cef..574a775ca880f5358c8d680ae2c43699dd73f0d2 100644 (file)
@@ -9,6 +9,7 @@
 
 / {
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdhci;
        };
 
index c32913df93c327e5208e8a8b2119e3a133d856f2..ca7a446b656895bc59f14c4d663d8cdaf2dc8ed8 100644 (file)
@@ -14,6 +14,7 @@
        compatible = "firefly,roc-rk3399-pc", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdmmc;
                mmc1 = &sdhci;
        };
index 8bfd5f88d1ef61d9ce45d617d4fc5d199d4b84cc..7baf9d1b22fd5fd9e88cfd37ade59377d3ce2829 100644 (file)
@@ -15,6 +15,7 @@
        compatible = "radxa,rock-4c-plus", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdhci;
                mmc1 = &sdmmc;
        };
index f2279aa6ca9e129120018508191c0c68a926f801..281a12180703433462fa9f4fb7e0ed1f2dfaeeef 100644 (file)
@@ -12,6 +12,7 @@
 
 / {
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdhci;
                mmc1 = &sdmmc;
        };
index bca2b50e0a93473d6fe63fbcb682d5cb2ad8d126..f30b82a10ca385a5735ec772bca2cb39aced0ef7 100644 (file)
@@ -11,6 +11,7 @@
 
 / {
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdio0;
                mmc1 = &sdmmc;
                mmc2 = &sdhci;
index 69dd3568b84eeff795e9f1791e41140c38251ef7..b3ef1c85e7549ec0a89c669b34056eda47c4410f 100644 (file)
@@ -12,6 +12,7 @@
        compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdmmc;
                mmc1 = &sdhci;
        };
index b242b2642e684ec6aa01da16b2ccddac1bcc250c..b0c45a99a0e4a5f11a56e6ad98399de7bef33f2a 100644 (file)
@@ -19,7 +19,6 @@
        #size-cells = <2>;
 
        aliases {
-               ethernet0 = &gmac;
                gpio0 = &gpio0;
                gpio1 = &gpio1;
                gpio2 = &gpio2;
index 8b8992a8e9c0d8a141756391ba3b68e4e9296267..8823c924dc1d643e850855cc528c4a51aab86bef 100644 (file)
@@ -13,6 +13,7 @@
        compatible = "vamrs,rk3399pro-vmarc-som", "rockchip,rk3399pro";
 
        aliases {
+               ethernet0 = &gmac;
                mmc0 = &sdhci;
                mmc1 = &sdmmc;
        };