ramips: allow USB power control on TP-Link MR3020v3
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-mr3020-v3.dts
index 8860e53efc6c7f2b230e96e8cb813c6550fd66b3..3ffa732541113a92958300c425ff1c417785ff98 100644 (file)
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
        };
+
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               usbpower {
+                       gpio-export,name = "usbpower";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &spi0 {
 
 &state_default {
        gpio {
-               groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
+               groups = "i2s", "refclk", "wdt", "p4led_an", "p2led_an", "p1led_an", "p0led_an", "wled_an";
                function = "gpio";
        };
 };