ramips: add support for TP-Link TL-WR842N v5
[openwrt/openwrt.git] / target / linux / ramips / dts / D240.dts
index 4f3da8d316e4ba6ffd9079efc87d5a4ebf207a76..392e92d466a08c7c6a7026e42054716d60125b4f 100644 (file)
 
                power_mpcie2 {
                        gpio-export,name = "power_mpcie2";
-                       gpio-export,output = <GPIO_ACTIVE_LOW>;
-                       gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+                       gpio-export,output = <1>;
+                       gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
                };
+
+               power_mpcie1 {
+                       gpio-export,name = "power_mpcie1";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>;
+               };
+
        };
 
        gpio-leds {
        status = "okay";
 };
 
+&gpio2 {
+       status = "okay";
+};
+
 &gpio3 {
        status = "okay";
 };
 &pinctrl {
        state_default: pinctrl0 {
                default {
-                       ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
+                       ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa", "nd_sd";
                        ralink,function = "gpio";
                };
        };