summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-22 21:26:01 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-12-23 02:24:55 +0100
commite4ce3109f28712dad3b3db27938a7b853346d9b6 (patch)
tree5bb59404fbefa9802792d03546508d48b5fcb5c7 /target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
parenta22b7a60d98836343c4f7b9ec0fcae68d9131522 (diff)
downloadopenwrt-e4ce3109f28712dad3b3db27938a7b853346d9b6.tar.gz
openwrt-e4ce3109f28712dad3b3db27938a7b853346d9b6.tar.bz2
openwrt-e4ce3109f28712dad3b3db27938a7b853346d9b6.zip
ramips: simplify state_default/pinctrl0 in device DTS files
The node pinctrl0 is already set up in the SOC DTSI files, but defined again as member of pinctrl in most of the device DTS(I) files. This patch removes this redundancy for the entire ramips target. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/dts/mt7620a_sanlinking_d240.dts')
-rw-r--r--target/linux/ramips/dts/mt7620a_sanlinking_d240.dts36
1 files changed, 17 insertions, 19 deletions
diff --git a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
index c2b94eebb3..35617c0880 100644
--- a/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
+++ b/target/linux/ramips/dts/mt7620a_sanlinking_d240.dts
@@ -177,26 +177,24 @@
ralink,mtd-eeprom = <&factory 0>;
};
-&pinctrl {
- state_default: pinctrl0 {
- default {
- ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
- ralink,function = "gpio";
- };
+&state_default {
+ default {
+ ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
+ ralink,function = "gpio";
+ };
- /*
- * The sd function of the nd_sd group configures two of the
- * groups pins as gpios. The pins are used as PCIe reset/power.
- * Due to the driver load order, the pins are configured way to
- * late if triggered by the sd-card driver.
- * To not introduce another kind of driver load order
- * dependency and configure the pins as early as possible,
- * means during pinmux driver load.
- */
- gpio_sd {
- ralink,group = "nd_sd";
- ralink,function = "sd";
- };
+ /*
+ * The sd function of the nd_sd group configures two of the
+ * groups pins as gpios. The pins are used as PCIe reset/power.
+ * Due to the driver load order, the pins are configured way to
+ * late if triggered by the sd-card driver.
+ * To not introduce another kind of driver load order
+ * dependency and configure the pins as early as possible,
+ * means during pinmux driver load.
+ */
+ gpio_sd {
+ ralink,group = "nd_sd";
+ ralink,function = "sd";
};
};