Skip to contentSkip to conversation

arm64: dts: mt8183: kukui: Use aliases to mmc nodes

PATCH In review Hsin-Yi Wang 3 participants 4 messages Jul 28, 2021 – Aug 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 arm64: dts: mt8183: kukui: Use aliases to mmc nodes

With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots.

---
v3->v4: change commit message based on review in v3.

---
 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +2 -0
index ae549d55a94fc..8e9cf36a9a41a 100644
@@ -13,6 +13,8 @@
 / {
 	aliases {
 		serial0 = &uart0;
+		mmc0 = &mmc0;
+		mmc1 = &mmc1;
 	};
 
 	chosen {
Signature · 1 line
2.32.0.432.gabb21c7263-goog
#1 lore raw

PATCH v4 2/2 arm64: dts: mt8173: elm: Use aliases to mmc nodes

With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots.

---
v3->v4: change commit message based on review in v3.

---
 arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +6 -0
index 21452c51a20a8..d5a2cad39c9c7 100644
@@ -10,6 +10,12 @@
 #include "mt8173.dtsi"
 
 / {
+	aliases {
+		mmc0 = &mmc0;
+		mmc1 = &mmc1;
+		mmc2 = &mmc3;
+	};
+
 	memory@40000000 {
 		device_type = "memory";
 		reg = <0 0x40000000 0 0x80000000>;
Signature · 1 line
2.32.0.432.gabb21c7263-goog
#2 lore raw
In reply to Hsin-Yi Wang
Quoted 11 lines · Hsin-Yi Wang

With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots.

---
v3->v4: change commit message based on review in v3.

Thanks for following up. My reviewed-by is still valid for both patches.

ChenYu

maintainer
#3 lore raw
Quoted 7 lines · Chen-Yu Tsai
Quoted 6 lines · Hsin-Yi Wang

With commit 1796164fac7e ("dt-bindings: mmc: document alias support"), a way to specify fixed index numbers was provided. This patch use aliases to mmc nodes so the partition name for eMMC and SD card will be consistent across boots.

Quoted 8 lines
Quoted 5 lines

---
v3->v4: change commit message based on review in v3.

Thanks for following up. My reviewed-by is still valid for both patches.

Sorry for the confusion on this series. I now took this version into v5.14-next/dts64

Thanks