aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi58
1 files changed, 28 insertions, 30 deletions
diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
index 9ca96cc7cd..7071d35e24 100644
--- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
+++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi
@@ -6,6 +6,34 @@
aliases {
label-mac-device = &ath9k;
};
+
+ gpio-export {
+ compatible = "gpio-export";
+
+ gpio_usb1_power {
+ gpio-export,name = "tp-link:power:usb1";
+ gpio-export,output = <1>;
+ gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
+ };
+
+ gpio_usb2_power {
+ gpio-export,name = "tp-link:power:usb2";
+ gpio-export,output = <1>;
+ gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
+ };
+
+ gpio_ext_lna0 {
+ gpio-export,name = "tp-link:ext:lna0";
+ gpio-export,output = <1>;
+ gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
+ };
+
+ gpio_ext_lna1 {
+ gpio-export,name = "tp-link:ext:lna1";
+ gpio-export,output = <1>;
+ gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&leds {
@@ -24,36 +52,6 @@
};
};
-&gpio {
- lna0 {
- gpio-hog;
- gpios = <18 GPIO_ACTIVE_HIGH>;
- output-high;
- line-name = "tp-link:ext:lna0";
- };
-
- lna1 {
- gpio-hog;
- gpios = <19 GPIO_ACTIVE_HIGH>;
- output-high;
- line-name = "tp-link:ext:lna1";
- };
-
- usb1_power {
- gpio-hog;
- gpios = <22 GPIO_ACTIVE_HIGH>;
- output-high;
- line-name = "tp-link:power:usb1";
- };
-
- usb2_power {
- gpio-hog;
- gpios = <21 GPIO_ACTIVE_HIGH>;
- output-high;
- line-name = "tp-link:power:usb2";
- };
-};
-
&usb {
#address-cells = <1>;
#size-cells = <0>;