Skip to contentSkip to conversation

ARM: dts: aspeed: tacoma: Enable eMMC controller

PATCH In review Guenter Roeck 3 participants 3 messages Feb 2, 2020 – Feb 24, 2020

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

PATCH 1/1 ARM: dts: aspeed: tacoma: Enable eMMC controller

Enabling emmc without enabling its controller doesn't do any good. Enable its controller as well to make it work.

Cc Andrew Jeffery <[email protected]>
Cc Joel Stanley <[email protected]>
---
 arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +4 -0
index ff49ec76fa7c..47293a5e0c59 100644
@@ -132,6 +132,10 @@
 	use-ncsi;
 };
 
+&emmc_controller {
+	status = "okay";
+};
+
 &emmc {
 	status = "okay";
 };
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 7 lines · Guenter Roeck

Enabling emmc without enabling its controller doesn't do any good. Enable its controller as well to make it work.

Cc Andrew Jeffery <[email protected]>
Cc Joel Stanley <[email protected]>

Thanks Guenter. The description in aspeed-g6.dtsi changed at some point and Tacoma was not updated.

Quoted 9 lines
---
 arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +0 -0
index ff49ec76fa7c..47293a5e0c59 100644

arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts line 141

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +4 -0
@@ -132,6 +132,10 @@
        use-ncsi;
 };
 
+&emmc_controller {
+       status = "okay";
+};
+
 &emmc {
        status = "okay";
 };

This node is redundant, as it is not disabled in the dtsi.

Andrew, should we add disabled to the emmc node?

Or remove the label completely, and just have emmc_controller?

Cheers,

Joel

Quoted 3 lines

--
2.17.1

#2 lore raw
Quoted 34 lines · Joel Stanley
Quoted 7 lines · Guenter Roeck

Enabling emmc without enabling its controller doesn't do any good. Enable its controller as well to make it work.

Cc Andrew Jeffery <[email protected]>
Cc Joel Stanley <[email protected]>

Thanks Guenter. The description in aspeed-g6.dtsi changed at some point and Tacoma was not updated.

Quoted 9 lines
---
 arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +0 -0
index ff49ec76fa7c..47293a5e0c59 100644

arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts line 141

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts +4 -0
@@ -132,6 +132,10 @@
        use-ncsi;
 };
 
+&emmc_controller {
+       status = "okay";
+};
+
 &emmc {
        status = "okay";
 };

This node is redundant, as it is not disabled in the dtsi.

Quoted 1 line

Andrew, should we add disabled to the emmc node?

Probably. Also the nodes are badly named, partly because of the structure of the IP block. 'emmc' in this instance isn't the actual card, it's the SDHCI, and emmc_controller is a 'parent' that contains some global state which applies to one or more SDHCIs inside the IP block.

We should probably cook up better names.

Quoted 2 lines

Or remove the label completely, and just have emmc_controller?

Maybe this is a better approach? The eMMC IP block only has one associated SDHCI, so that would make sense.

Andrew