diff mbox series

[3/5] imx8mp-msc-sm2s: Add mmc aliases

Message ID 20240213114342.2728075-3-festevam@gmail.com
State Accepted
Commit 399c4a9e1cc48322edbb72753d7af5dde477f812
Delegated to: Fabio Estevam
Headers show
Series [1/5] msc_sm2s_imx8mp: Convert to DM_SERIAL | expand

Commit Message

Fabio Estevam Feb. 13, 2024, 11:43 a.m. UTC
From: Fabio Estevam <festevam@denx.de>

Add mmc alias so that the eMMC is mmc0 and the SD card
is mmc1 to have a well defined device numbering scheme.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Ian Ray Feb. 15, 2024, 12:05 p.m. UTC | #1
On Tue, Feb 13, 2024 at 08:43:40AM -0300, Fabio Estevam wrote:
> 
> From: Fabio Estevam <festevam@denx.de>
> 
> Add mmc alias so that the eMMC is mmc0 and the SD card
> is mmc1 to have a well defined device numbering scheme.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

Reviewed-by: Ian Ray <ian.ray@gehealthcare.com>

> ---
>  arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi b/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
> index 1a7b530d9f..ce61ca6671 100644
> --- a/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
> +++ b/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
> @@ -9,6 +9,11 @@
>  	model = "MSC SM2S-IMX8MPLUS";
>  	compatible = "avnet,sm2s-imx8mp", "fsl,imx8mp";
>  
> +	aliases {
> +		mmc0 = &usdhc3;
> +		mmc1 = &usdhc2;
> +	};
> +
>  	wdt-reboot {
>  		compatible = "wdt-reboot";
>  		wdt = <&wdog1>;
> -- 
> 2.34.1
> 
>
diff mbox series

Patch

diff --git a/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi b/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
index 1a7b530d9f..ce61ca6671 100644
--- a/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
+++ b/arch/arm/dts/imx8mp-msc-sm2s-u-boot.dtsi
@@ -9,6 +9,11 @@ 
 	model = "MSC SM2S-IMX8MPLUS";
 	compatible = "avnet,sm2s-imx8mp", "fsl,imx8mp";
 
+	aliases {
+		mmc0 = &usdhc3;
+		mmc1 = &usdhc2;
+	};
+
 	wdt-reboot {
 		compatible = "wdt-reboot";
 		wdt = <&wdog1>;