diff mbox series

[1/2] arm64: dts: rockchip: Fix spl-boot-order for edgeble-ncm6b

Message ID 20240527063915.6205-1-jagan@edgeble.ai
State New
Delegated to: Kever Yang
Headers show
Series [1/2] arm64: dts: rockchip: Fix spl-boot-order for edgeble-ncm6b | expand

Commit Message

Jagan Teki May 27, 2024, 6:39 a.m. UTC
Edgeble NCM6B SoM has built-in eMMC so make sdhci has first boot
priority.

Fix it for NCM6A, NCM6B SoM.

Signed-off-by: Jagan Teki <jagan@edgeble.ai>
---
 arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi |  6 +-----
 arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 11 ++++++-----
 2 files changed, 7 insertions(+), 10 deletions(-)

Comments

Anand Moon May 27, 2024, 7:51 a.m. UTC | #1
Hi Jagan,

On Mon, 27 May 2024 at 12:09, Jagan Teki <jagan@edgeble.ai> wrote:
>
> Edgeble NCM6B SoM has built-in eMMC so make sdhci has first boot
> priority.
>
> Fix it for NCM6A, NCM6B SoM.
>
> Signed-off-by: Jagan Teki <jagan@edgeble.ai>

Reviewed-by: Anand Moon <anand@edgeble.ai>



> ---
>  arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi |  6 +-----
>  arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 11 ++++++-----
>  2 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> index dd0058262b..88f3f7eee2 100644
> --- a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> @@ -6,12 +6,8 @@
>  #include "rk3588-u-boot.dtsi"
>
>  / {
> -       aliases {
> -               mmc0 = &sdmmc;
> -       };
> -
>         chosen {
> -               u-boot,spl-boot-order = &sdmmc;
> +               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
>         };
>  };
>
> diff --git a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> index a45b3f5e86..289578803e 100644
> --- a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> @@ -6,11 +6,12 @@
>  #include "rk3588j-u-boot.dtsi"
>
>  / {
> -       aliases {
> -               mmc0 = &sdmmc;
> -       };
> -
>         chosen {
> -               u-boot,spl-boot-order = &sdmmc;
> +               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
>         };
>  };
> +
> +&sdmmc {
> +       bus-width = <4>;
> +       status = "okay";
> +};
> --
> 2.34.1
>
Quentin Schulz May 27, 2024, 8:37 a.m. UTC | #2
Hi Jagan,

On 5/27/24 8:39 AM, Jagan Teki wrote:
> Edgeble NCM6B SoM has built-in eMMC so make sdhci has first boot
> priority.
> 
> Fix it for NCM6A, NCM6B SoM.
> 
> Signed-off-by: Jagan Teki <jagan@edgeble.ai>
> ---
>   arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi |  6 +-----
>   arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 11 ++++++-----
>   2 files changed, 7 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> index dd0058262b..88f3f7eee2 100644
> --- a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
> @@ -6,12 +6,8 @@
>   #include "rk3588-u-boot.dtsi"
>   
>   / {
> -	aliases {
> -		mmc0 = &sdmmc;
> -	};
> -
>   	chosen {
> -		u-boot,spl-boot-order = &sdmmc;
> +		u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
>   	};
>   };
>   
> diff --git a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> index a45b3f5e86..289578803e 100644
> --- a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
> @@ -6,11 +6,12 @@
>   #include "rk3588j-u-boot.dtsi"
>   
>   / {
> -	aliases {
> -		mmc0 = &sdmmc;
> -	};
> -
>   	chosen {
> -		u-boot,spl-boot-order = &sdmmc;
> +		u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
>   	};
>   };
> +
> +&sdmmc {
> +	bus-width = <4>;
> +	status = "okay";
> +};

The sdmmc parts are already part of 
dts/upstream/src/arm64/rockchip/rk3588-edgeble-neu6b-io.dts, are you 
sure this is actually needed?

Cheers,
Quentin
diff mbox series

Patch

diff --git a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
index dd0058262b..88f3f7eee2 100644
--- a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi
@@ -6,12 +6,8 @@ 
 #include "rk3588-u-boot.dtsi"
 
 / {
-	aliases {
-		mmc0 = &sdmmc;
-	};
-
 	chosen {
-		u-boot,spl-boot-order = &sdmmc;
+		u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
 	};
 };
 
diff --git a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
index a45b3f5e86..289578803e 100644
--- a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi
@@ -6,11 +6,12 @@ 
 #include "rk3588j-u-boot.dtsi"
 
 / {
-	aliases {
-		mmc0 = &sdmmc;
-	};
-
 	chosen {
-		u-boot,spl-boot-order = &sdmmc;
+		u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
 	};
 };
+
+&sdmmc {
+	bus-width = <4>;
+	status = "okay";
+};