ARM: tegra: paz00: Add MMC aliases
authorDmitry Osipenko <digetx@gmail.com>
Mon, 7 Feb 2022 21:28:26 +0000 (00:28 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 24 Feb 2022 15:55:28 +0000 (16:55 +0100)
Add MMC aliases to ensure that the /dev/mmcblk IDs won't change depending
on the probe order of the MMC drivers.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra20-paz00.dts

index d53a175dc17a25ad957704674060a8cb93d348d3..0fb4b1f5bc1c6c775f4f79e2f95e0dc1c86d4ad5 100644 (file)
@@ -13,6 +13,8 @@
        compatible = "compal,paz00", "nvidia,tegra20";
 
        aliases {
+               mmc0 = &sdmmc4; /* eMMC */
+               mmc1 = &sdmmc1; /* MicroSD */
                rtc0 = "/i2c@7000d000/tps6586x@34";
                rtc1 = "/rtc@7000e000";
                serial0 = &uarta;
                status = "okay";
        };
 
-       mmc@c8000000 {
+       sdmmc1: mmc@c8000000 {
                status = "okay";
                cd-gpios = <&gpio TEGRA_GPIO(V, 5) GPIO_ACTIVE_LOW>;
                wp-gpios = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
                bus-width = <4>;
        };
 
-       mmc@c8000600 {
+       sdmmc4: mmc@c8000600 {
                status = "okay";
                bus-width = <8>;
                non-removable;