From: Vitaly Chekryzhev <13hakta@gmail.com> Date: Fri, 20 Jan 2017 13:03:15 +0000 (+0500) Subject: ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=28d626556d846ce69246d72e2a0e3a008e5fc7dd;p=openwrt%2Fstaging%2Frmilecki.git 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> --- diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts index c63c1a39148..2709b5188a8 100644 --- a/target/linux/ramips/dts/kn_rc.dts +++ b/target/linux/ramips/dts/kn_rc.dts @@ -56,6 +56,17 @@ linux,code = ; }; }; + + 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 22b16b05cc1..1190eab714d 100644 --- a/target/linux/ramips/dts/kn_rf.dts +++ b/target/linux/ramips/dts/kn_rf.dts @@ -56,6 +56,17 @@ linux,code = ; }; }; + + 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 {