From: Marek BehĂșn <marek.behun@nic.cz>
Date: Thu, 30 Apr 2020 23:11:44 +0000 (+0200)
Subject: arm64: dts: armada-3720-turris-mox: forbid SDR104 on SDIO for FCC purposes
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7a2c36b039d2343cc29fec6102da839477b8dc60;p=linux.git

arm64: dts: armada-3720-turris-mox: forbid SDR104 on SDIO for FCC purposes

Use sdhci-caps-mask to forbid SDR104 mode on the SDIO capable SDHCI
controller. Without this the device cannot pass electromagnetic
interference certifications.

Fixes: 7109d817db2e ("arm64: dts: marvell: add DTS for Turris Mox")
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
---

diff --git a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
index 4cc735899c5d4..d47be95ad06a3 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
@@ -173,6 +173,8 @@
 	marvell,pad-type = "sd";
 	vqmmc-supply = <&vsdio_reg>;
 	mmc-pwrseq = <&sdhci1_pwrseq>;
+	/* forbid SDR104 for FCC purposes */
+	sdhci-caps-mask = <0x2 0x0>;
 	status = "okay";
 };