arm64: dts: rockchip: move mmc aliases to board dts on px30
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Wed, 24 Mar 2021 12:22:31 +0000 (13:22 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 11 Apr 2021 09:13:06 +0000 (11:13 +0200)
As suggested by Arnd Bergmann, the newly added mmc aliases
should be board specific, so move them from the general dtsi
to the individual boards.

For the Engicam-boards this means a split as the core
boards contains the emmc while the commit baseboard handles
sdmmc and sdio.

Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Link: https://lore.kernel.org/r/20210324122235.1059292-3-heiko@sntech.de
arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi
arch/arm64/boot/dts/rockchip/px30-engicam-px30-core.dtsi
arch/arm64/boot/dts/rockchip/px30-evb.dts
arch/arm64/boot/dts/rockchip/px30.dtsi
arch/arm64/boot/dts/rockchip/rk3326-odroid-go2.dts

index 08b0b9f..3429e12 100644 (file)
@@ -6,6 +6,11 @@
  */
 
 / {
+       aliases {
+               mmc1 = &sdmmc;
+               mmc2 = &sdio;
+       };
+
        vcc5v0_sys: vcc5v0-sys {
                compatible = "regulator-fixed";
                regulator-name = "vcc5v0_sys";  /* +5V */
index cdacd34..7249871 100644 (file)
 
 / {
        compatible = "engicam,px30-core", "rockchip,px30";
+
+       aliases {
+               mmc0 = &emmc;
+       };
 };
 
 &cpu0 {
index 5fe905f..c1ce9c2 100644 (file)
        model = "Rockchip PX30 EVB";
        compatible = "rockchip,px30-evb", "rockchip,px30";
 
+       aliases {
+               mmc0 = &sdmmc;
+               mmc1 = &sdio;
+               mmc2 = &emmc;
+       };
+
        chosen {
                stdout-path = "serial5:115200n8";
        };
index 9394400..09baa8a 100644 (file)
@@ -25,9 +25,6 @@
                i2c1 = &i2c1;
                i2c2 = &i2c2;
                i2c3 = &i2c3;
-               mmc0 = &sdmmc;
-               mmc1 = &sdio;
-               mmc2 = &emmc;
                serial0 = &uart0;
                serial1 = &uart1;
                serial2 = &uart2;
index 97fb93e..49c97f7 100644 (file)
        model = "ODROID-GO Advance";
        compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
 
+       aliases {
+               mmc0 = &sdmmc;
+       };
+
        chosen {
                stdout-path = "serial2:115200n8";
        };