devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: bcm2711-rpi-4-b: Use aliases to set custom MMC device index
@ 2022-06-08 12:32 Ariel D'Alessandro
  2022-06-12 20:38 ` Peter Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Ariel D'Alessandro @ 2022-06-08 12:32 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, linux-kernel, linux-rpi-kernel
  Cc: gbcm-kernel-feedback-list, gkrzysztof.kozlowski+dt, gnsaenz,
	grobh+dt

Add MMC aliases to ensure that the /dev/mmcblk ID for SD card won't
change depending on the probe order of the MMC drivers.

Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
---
 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
index 4432412044de..780812542bad 100644
--- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
+++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
@@ -14,6 +14,10 @@ chosen {
 		stdout-path = "serial1:115200n8";
 	};
 
+	aliases {
+		mmc0 = &emmc2;	/* mmcblk0 for SD */
+	};
+
 	leds {
 		led-act {
 			gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-14  6:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-08 12:32 [PATCH] ARM: dts: bcm2711-rpi-4-b: Use aliases to set custom MMC device index Ariel D'Alessandro
2022-06-12 20:38 ` Peter Robinson
2022-06-13 12:46   ` Ariel D'Alessandro
2022-06-13 23:34     ` Florian Fainelli
2022-06-14  6:34       ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).