Просмотр исходного кода

ramips: mtk-mmc: use "cd-inverted" to set CD line polarity

"cd-inverted" is an upstream documented property used to indicate
the CD line is actived high. We will introduce a new upstream SDHC
driver, and this change will make them compatible with each other.

Signed-off-by: Shiji Yang <[email protected]>
Shiji Yang 1 год назад
Родитель
Сommit
a22bdf7c09

+ 1 - 1
target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts

@@ -171,5 +171,5 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-high;
+	cd-inverted;
 };
 };

+ 0 - 1
target/linux/ramips/dts/mt7628an_jotale_js76x8.dtsi

@@ -132,7 +132,6 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-low;
 };
 };
 
 
 &wmac {
 &wmac {

+ 1 - 1
target/linux/ramips/dts/mt7628an_mediatek_linkit-smart-7688.dts

@@ -167,7 +167,7 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-high;
+	cd-inverted;
 };
 };
 
 
 &wmac {
 &wmac {

+ 1 - 1
target/linux/ramips/dts/mt7628an_minew_g1-c.dts

@@ -151,5 +151,5 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-high;
+	cd-inverted;
 };
 };

+ 0 - 1
target/linux/ramips/dts/mt7628an_onion_omega2.dtsi

@@ -172,7 +172,6 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-low;
 };
 };
 
 
 &wmac {
 &wmac {

+ 0 - 1
target/linux/ramips/dts/mt7628an_widora_neo.dtsi

@@ -175,7 +175,6 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-low;
 };
 };
 
 
 &wmac {
 &wmac {

+ 1 - 1
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts

@@ -168,7 +168,7 @@
 
 
 &sdhci {
 &sdhci {
 	status = "okay";
 	status = "okay";
-	mediatek,cd-high;
+	cd-inverted;
 };
 };
 
 
 &wmac {
 &wmac {

+ 1 - 1
target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c

@@ -2245,7 +2245,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
 	//TODO: read this as bus-width from dt (via mmc_of_parse)
 	//TODO: read this as bus-width from dt (via mmc_of_parse)
 	mmc->caps  |= MMC_CAP_4_BIT_DATA;
 	mmc->caps  |= MMC_CAP_4_BIT_DATA;
 
 
-	cd_active_low = !of_property_read_bool(pdev->dev.of_node, "mediatek,cd-high");
+	cd_active_low = !of_property_read_bool(pdev->dev.of_node, "cd-inverted");
 
 
 	if (of_property_read_bool(pdev->dev.of_node, "mediatek,cd-poll"))
 	if (of_property_read_bool(pdev->dev.of_node, "mediatek,cd-poll"))
 		mmc->caps |= MMC_CAP_NEEDS_POLL;
 		mmc->caps |= MMC_CAP_NEEDS_POLL;