All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: FUKAUMI Naoki <naoki@radxa.com>
Cc: jonas@kwiboo.se, devicetree@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	FUKAUMI Naoki <naoki@radxa.com>
Subject: Re: [PATCH] arm64: dts: rockchip: fix mmc aliases for Radxa ZERO 3E/3W
Date: Thu, 20 Jun 2024 22:35:56 +0200	[thread overview]
Message-ID: <10613118.nitPUkWRp2@diego> (raw)
In-Reply-To: <20240619232734.1126-1-naoki@radxa.com>

Hi,

Am Donnerstag, 20. Juni 2024, 01:27:34 CEST schrieb FUKAUMI Naoki:
> align with other Radxa products.
> 
> - mmc0 is eMMC
> - mmc1 is microSD
> 

so yes we can still change the mmc aliases as the zero will only become part of 6.11
But mmc aliases should start at 0 and not contain holes.

So if you care much about the ordering, move the alias block out of the zero-3.dtsi
and introduce separate blocks for each board.


In zero-3w:
  	aliases {
		mmc0 = &sdmmc0;
  	};

In zero-3w:
  	aliases {
		mmc0 = &sdhci;
		mmc1 = &sdmmc0;
  		mmc2 = &sdmmc1;
  	};


Alternatively, leave the aliases as they are now
Heiko

> Fixes: 1a5c8d307c83 ("arm64: dts: rockchip: Add Radxa ZERO 3W/3E")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi | 2 +-
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> index 623d5939d194..85d76d535338 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> @@ -7,7 +7,7 @@
>  
>  / {
>  	aliases {
> -		mmc0 = &sdmmc0;
> +		mmc1 = &sdmmc0;
>  	};
>  
>  	chosen {
> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> index 9bf4f464915f..188147c4b78b 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> @@ -9,7 +9,7 @@ / {
>  	compatible = "radxa,zero-3w", "rockchip,rk3566";
>  
>  	aliases {
> -		mmc1 = &sdhci;
> +		mmc0 = &sdhci;
>  		mmc2 = &sdmmc1;
>  	};
>  
> 





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: FUKAUMI Naoki <naoki@radxa.com>
Cc: jonas@kwiboo.se, devicetree@vger.kernel.org,
	linux-rockchip@lists.infradead.org,
	FUKAUMI Naoki <naoki@radxa.com>
Subject: Re: [PATCH] arm64: dts: rockchip: fix mmc aliases for Radxa ZERO 3E/3W
Date: Thu, 20 Jun 2024 22:35:56 +0200	[thread overview]
Message-ID: <10613118.nitPUkWRp2@diego> (raw)
In-Reply-To: <20240619232734.1126-1-naoki@radxa.com>

Hi,

Am Donnerstag, 20. Juni 2024, 01:27:34 CEST schrieb FUKAUMI Naoki:
> align with other Radxa products.
> 
> - mmc0 is eMMC
> - mmc1 is microSD
> 

so yes we can still change the mmc aliases as the zero will only become part of 6.11
But mmc aliases should start at 0 and not contain holes.

So if you care much about the ordering, move the alias block out of the zero-3.dtsi
and introduce separate blocks for each board.


In zero-3w:
  	aliases {
		mmc0 = &sdmmc0;
  	};

In zero-3w:
  	aliases {
		mmc0 = &sdhci;
		mmc1 = &sdmmc0;
  		mmc2 = &sdmmc1;
  	};


Alternatively, leave the aliases as they are now
Heiko

> Fixes: 1a5c8d307c83 ("arm64: dts: rockchip: Add Radxa ZERO 3W/3E")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi | 2 +-
>  arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> index 623d5939d194..85d76d535338 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3.dtsi
> @@ -7,7 +7,7 @@
>  
>  / {
>  	aliases {
> -		mmc0 = &sdmmc0;
> +		mmc1 = &sdmmc0;
>  	};
>  
>  	chosen {
> diff --git a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> index 9bf4f464915f..188147c4b78b 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-zero-3w.dts
> @@ -9,7 +9,7 @@ / {
>  	compatible = "radxa,zero-3w", "rockchip,rk3566";
>  
>  	aliases {
> -		mmc1 = &sdhci;
> +		mmc0 = &sdhci;
>  		mmc2 = &sdmmc1;
>  	};
>  
> 





  reply	other threads:[~2024-06-20 20:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 23:27 [PATCH] arm64: dts: rockchip: fix mmc aliases for Radxa ZERO 3E/3W FUKAUMI Naoki
2024-06-19 23:27 ` FUKAUMI Naoki
2024-06-20 20:35 ` Heiko Stübner [this message]
2024-06-20 20:35   ` Heiko Stübner
2024-06-20 20:58   ` FUKAUMI Naoki
2024-06-20 20:58     ` FUKAUMI Naoki
  -- strict thread matches above, loose matches on Subject: below --
2024-06-20 21:14 FUKAUMI Naoki
2024-06-20 21:14 ` FUKAUMI Naoki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10613118.nitPUkWRp2@diego \
    --to=heiko@sntech.de \
    --cc=devicetree@vger.kernel.org \
    --cc=jonas@kwiboo.se \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=naoki@radxa.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.