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>
This commit is contained in:
Vitaly Chekryzhev 2017-01-20 18:03:15 +05:00 committed by Jo-Philipp Wich
parent fd693bc0e8
commit 28d626556d
2 changed files with 22 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {