diff mbox series

ARM: dts: rockchip: Add mmc aliases for rk3288-veyron devices

Message ID 20230307095516.4116827-1-heiko@sntech.de (mailing list archive)
State New, archived
Headers show
Series ARM: dts: rockchip: Add mmc aliases for rk3288-veyron devices | expand

Commit Message

Heiko Stuebner March 7, 2023, 9:55 a.m. UTC
All of them have an internal emmc that becomes mmc0 and
devices including the sdmmc snippet get mmc1 for the external
sd slot on suitable devices.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 6 ++++++
 arch/arm/boot/dts/rk3288-veyron.dtsi       | 4 ++++
 2 files changed, 10 insertions(+)

Comments

Doug Anderson March 7, 2023, 4:36 p.m. UTC | #1
Hi,

On Tue, Mar 7, 2023 at 1:55 AM Heiko Stuebner <heiko@sntech.de> wrote:
>
> All of them have an internal emmc that becomes mmc0 and
> devices including the sdmmc snippet get mmc1 for the external
> sd slot on suitable devices.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>  arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi | 6 ++++++
>  arch/arm/boot/dts/rk3288-veyron.dtsi       | 4 ++++
>  2 files changed, 10 insertions(+)

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Heiko Stuebner March 15, 2023, 7:54 a.m. UTC | #2
On Tue, 7 Mar 2023 10:55:16 +0100, Heiko Stuebner wrote:
> All of them have an internal emmc that becomes mmc0 and
> devices including the sdmmc snippet get mmc1 for the external
> sd slot on suitable devices.
> 
> 

Applied, thanks!

[1/1] ARM: dts: rockchip: Add mmc aliases for rk3288-veyron devices
      commit: 56af59fc0be3fda8d8a32ed996dfb84758d4f431

Best regards,
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi b/arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi
index 27fb06ce907e..8b58773e592e 100644
--- a/arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi
+++ b/arch/arm/boot/dts/rk3288-veyron-sdmmc.dtsi
@@ -5,6 +5,12 @@ 
  * Copyright 2015 Google, Inc
  */
 
+/ {
+	aliases {
+		mmc1 = &sdmmc;
+	};
+};
+
 &io_domains {
 	sdcard-supply = <&vccio_sd>;
 };
diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi
index e406c8c7c7e5..d838bf0d5d9a 100644
--- a/arch/arm/boot/dts/rk3288-veyron.dtsi
+++ b/arch/arm/boot/dts/rk3288-veyron.dtsi
@@ -10,6 +10,10 @@ 
 #include "rk3288.dtsi"
 
 / {
+	aliases {
+		mmc0 = &emmc;
+	};
+
 	chosen {
 		stdout-path = "serial2:115200n8";
 	};