forked from Openwrt-EcoNet/openwrt
The "gpio-export" driver doesn't require a "reg" property in the device tree, hence we don't need to use the "#size-cells" property to describe the size of "reg". Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18290 Signed-off-by: Robert Marko <robimarko@gmail.com>
33 lines
492 B
Plaintext
33 lines
492 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar7241_tplink.dtsi"
|
|
|
|
/ {
|
|
gpio-export {
|
|
compatible = "gpio-export";
|
|
|
|
gpio_usb_power {
|
|
gpio-export,name = "tp-link:power:usb";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&leds {
|
|
led3g {
|
|
label = "green:3g";
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
trigger-sources = <&hub_port>;
|
|
linux,default-trigger = "usbport";
|
|
};
|
|
};
|
|
|
|
&usb {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|