diff mbox series

ARM: dts: imx6: phycore-som: Disable micro-SD write protection

Message ID 20210909172555.435430-1-y.bas@phytec.de
State Accepted
Commit d555a229025de569afe071751ec2d06565cbac06
Headers show
Series ARM: dts: imx6: phycore-som: Disable micro-SD write protection | expand

Commit Message

Yunus Bas Sept. 9, 2021, 5:25 p.m. UTC
The micro-SD card doesn't feature a write-protect pin. Set the
corresponding property in the devicetree to handle this behavior
correctly and suppress driver warnings.

Signed-off-by: Yunus Bas <y.bas@phytec.de>
---
 arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi | 1 +
 arch/arm/boot/dts/imx6ul-phytec-segin.dtsi | 1 +
 2 files changed, 2 insertions(+)

Comments

Shawn Guo Sept. 22, 2021, 8:23 a.m. UTC | #1
On Thu, Sep 09, 2021 at 07:25:55PM +0200, Yunus Bas wrote:
> The micro-SD card doesn't feature a write-protect pin. Set the

> corresponding property in the devicetree to handle this behavior

> correctly and suppress driver warnings.

> 

> Signed-off-by: Yunus Bas <y.bas@phytec.de>


Applied, thanks!
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
index 019938562aa9..0873f53ea275 100644
--- a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi
@@ -256,6 +256,7 @@  &usdhc1 {
 	pinctrl-0 = <&pinctrl_usdhc1>;
 	cd-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
 	no-1-8-v;
+	disable-wp;
 	status = "disabled";
 };
 
diff --git a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
index 95e4080dd0a6..0d4ba9494cf2 100644
--- a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
+++ b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi
@@ -191,6 +191,7 @@  &usdhc1 {
 	no-1-8-v;
 	keep-power-in-suspend;
 	wakeup-source;
+	disable-wp;
 	status = "disabled";
 };