ramips: add mt7620/1 sdhci pinmux
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>
This commit is contained in:
@@ -60,9 +60,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
|||||||
@@ -70,9 +70,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
|||||||
@@ -75,9 +75,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
|||||||
@@ -106,8 +106,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
|||||||
@@ -56,9 +56,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi0 {
|
&spi0 {
|
||||||
|
|||||||
@@ -96,8 +96,6 @@
|
|||||||
|
|
||||||
&sdhci {
|
&sdhci {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&sdhci_pins>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie {
|
&pcie {
|
||||||
|
|||||||
@@ -417,6 +417,13 @@
|
|||||||
ralink,function = "pa";
|
ralink,function = "pa";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sdhci_pins: sdhci {
|
||||||
|
sdhci {
|
||||||
|
ralink,group = "nd_sd";
|
||||||
|
ralink,function = "sd";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
rstctrl: rstctrl {
|
rstctrl: rstctrl {
|
||||||
@@ -496,6 +503,9 @@
|
|||||||
interrupt-parent = <&intc>;
|
interrupt-parent = <&intc>;
|
||||||
interrupts = <14>;
|
interrupts = <14>;
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&sdhci_pins>;
|
||||||
|
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -341,6 +341,9 @@
|
|||||||
|
|
||||||
interrupt-parent = <&gic>;
|
interrupt-parent = <&gic>;
|
||||||
interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
|
interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&sdhci_pins>;
|
||||||
};
|
};
|
||||||
|
|
||||||
xhci: xhci@1E1C0000 {
|
xhci: xhci@1E1C0000 {
|
||||||
|
|||||||
Reference in New Issue
Block a user