diff options
| author | Vitaly Chekryzhev | 2017-01-20 13:03:15 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2017-01-26 15:39:08 +0000 |
| commit | 9a53e1bdf974c04442c43d8d36107d5afea54cca (patch) | |
| tree | 8ce60d6f9ce046c02673847810f5c5405bf7405f | |
| parent | 0352cc6b195d94148dfdc49ae4473865dcafcdfa (diff) | |
| download | openwrt-9a53e1bdf974c04442c43d8d36107d5afea54cca.tar.gz | |
ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power
Export gpio usb to allow power management of USB port.
Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
| -rw-r--r-- | target/linux/ramips/dts/kn_rc.dts | 11 | ||||
| -rw-r--r-- | target/linux/ramips/dts/kn_rf.dts | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts index c63c1a3914..2709b5188a 100644 --- a/target/linux/ramips/dts/kn_rc.dts +++ b/target/linux/ramips/dts/kn_rc.dts @@ -56,6 +56,17 @@ 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>; + }; + }; }; &spi0 { diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts index 22b16b05cc..1190eab714 100644 --- a/target/linux/ramips/dts/kn_rf.dts +++ b/target/linux/ramips/dts/kn_rf.dts @@ -56,6 +56,17 @@ 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>; + }; + }; }; &spi0 { |