Browse Source

ramips: ZyXEL Keenetic Viva: export gpio usb power

Export gpio usb to allow power management of USB port.

Signed-off-by: Vitaly Chekryzhev <[email protected]>
Vitaly Chekryzhev 9 years ago
parent
commit
e8c265b2cc
1 changed files with 11 additions and 0 deletions
  1. 11 0
      target/linux/ramips/dts/kng_rc.dts

+ 11 - 0
target/linux/ramips/dts/kng_rc.dts

@@ -62,6 +62,17 @@
 		};
 	};
 
+	gpio_export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+
+		usb_power {
+			gpio-export,name = "usb";
+			gpio-export,output = <1>;
+			gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
+		};
+	};
+
 	rtl8367rb {
 		compatible = "realtek,rtl8367b";
 		cpu_port = <7>;