2018-06-26 14:01:47 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2018-08-02 07:14:10 +00:00
|
|
|
#include "ar7241_tplink.dtsi"
|
2018-06-26 14:01:47 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
gpio-export {
|
|
|
|
compatible = "gpio-export";
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
gpio_usb_power {
|
|
|
|
gpio-export,name = "tp-link:power:usb";
|
|
|
|
gpio-export,output = <1>;
|
|
|
|
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio_leds {
|
|
|
|
led3g {
|
|
|
|
label = "tp-link:green:3g";
|
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
|
|
default-state = "off";
|
|
|
|
trigger-sources = <&hub_port>;
|
|
|
|
linux,default-trigger = "usbport";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb {
|
2018-08-06 05:11:13 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2018-06-26 14:01:47 +00:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
hub_port: port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
#trigger-source-cells = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|