ramips: fix ZyXEL Keenetic Omni/Omni II GPIOs
[lede.git] / target / linux / ramips / dts / kn_rc.dts
index c63c1a391482488b44b48bc03fe4cc0458e04caf..d275902d1b6d74b22e946cdee8ba7df7e5c9145b 100644 (file)
 
                wan {
                        label = "kn_rc:green:wan";
-                       gpios = <&gpio0 38 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "kn_rc:green:usb";
-                       gpios = <&gpio0 39 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wifi {
                        label = "kn_rc:green:wifi";
-                       gpios = <&gpio0 72 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                power {
                        linux,code = <BTN_0>;
                };
        };
+
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               usb_power {
+                       gpio-export,name = "usb";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
+               };
+       };
+};
+
+&gpio1 {
+       status = "okay";
+};
+
+&gpio3 {
+       status = "okay";
 };
 
 &spi0 {
 
 &ethernet {
        mtd-mac-address = <&factory 0x4>;
-       ralink,port-map = "wllll";
+       mediatek,portmap = "llllw";
 };
 
 &wmac {