ramips: add mt7620/1 sdhci pinmux
authorMathias Kresin <dev@kresin.me>
Thu, 30 Aug 2018 17:13:20 +0000 (19:13 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 6 Sep 2018 19:35:53 +0000 (21:35 +0200)
Set the pins to the required mode via the pinmux driver. It allows to
get rid of the pinmux related code in the sd card driver.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/dts/GB-PC1.dts
target/linux/ramips/dts/GB-PC2.dts
target/linux/ramips/dts/Newifi-D1.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/Timecloud.dts
target/linux/ramips/dts/U7621-06.dtsi
target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7621.dtsi

index 71f6c4b..996d7c8 100644 (file)
@@ -60,9 +60,6 @@
 
 &sdhci {
        status = "okay";
-
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
index dcef40f..1e7f3b2 100644 (file)
@@ -70,9 +70,6 @@
 
 &sdhci {
        status = "okay";
-
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
index 1aebc1b..772054f 100644 (file)
@@ -75,9 +75,6 @@
 
 &sdhci {
        status = "okay";
-
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
index 537e5f2..1f304a7 100644 (file)
 
 &sdhci {
        status = "okay";
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
index 9e5d8e0..641a225 100644 (file)
@@ -56,9 +56,6 @@
 
 &sdhci {
        status = "okay";
-
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &spi0 {
index b14cadf..80c129d 100644 (file)
@@ -96,8 +96,6 @@
 
 &sdhci {
        status = "okay";
-       pinctrl-names = "default";
-       pinctrl-0 = <&sdhci_pins>;
 };
 
 &pcie {
index 8cb397c..a242684 100644 (file)
                                ralink,function = "pa";
                        };
                };
+
+               sdhci_pins: sdhci {
+                       sdhci {
+                               ralink,group = "nd_sd";
+                               ralink,function = "sd";
+                       };
+               };
        };
 
        rstctrl: rstctrl {
                interrupt-parent = <&intc>;
                interrupts = <14>;
 
+               pinctrl-names = "default";
+               pinctrl-0 = <&sdhci_pins>;
+
                status = "disabled";
        };
 
index 9a2cbbe..f3f47cd 100644 (file)
 
                interrupt-parent = <&gic>;
                interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
+
+               pinctrl-names = "default";
+               pinctrl-0 = <&sdhci_pins>;
        };
 
        xhci: xhci@1E1C0000 {