aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDmitry Chigiryov <dmitry.chigiryov@ya.ru>2022-02-25 12:41:12 +0300
committerSungbo Eo <mans0n@gorani.run>2022-03-09 15:44:51 +0900
commit9d06f1a618530ecfbd945cf3fb46b610f9b52c86 (patch)
tree3a1f38af1c961c795a71684c315a92deac734764 /target
parent94d4269ec720db66ec8b92df1821ef19330897b1 (diff)
downloadupstream-9d06f1a618530ecfbd945cf3fb46b610f9b52c86.tar.gz
upstream-9d06f1a618530ecfbd945cf3fb46b610f9b52c86.tar.bz2
upstream-9d06f1a618530ecfbd945cf3fb46b610f9b52c86.zip
ramips: allow USB power control on TP-Link MR3020v3
By switching EPHY_LED4_N_JTRST_N from EPHY_LED4_N to GPIO#39 we can control USB port power an all current revisions of MR3020v3. It was not a thing on some first revisions, pin was unused. But for now on all current MR3020v3 boards EPHY_LED4_N_JTRST_N pin is connected to USB power key. Also it was not used as EPHY indicator on any revision of the board. Signed-off-by: Dmitry Chigiryov <dmitry.chigiryov@ya.ru> [changed author address (used SoB one)] Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
index 8860e53efc..3ffa732541 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr3020-v3.dts
@@ -75,6 +75,17 @@
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
+
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+
+ usbpower {
+ gpio-export,name = "usbpower";
+ gpio-export,output = <1>;
+ gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
+ };
+ };
};
&spi0 {
@@ -120,7 +131,7 @@
&state_default {
gpio {
- groups = "i2s", "refclk", "wdt", "p2led_an", "p1led_an", "p0led_an", "wled_an";
+ groups = "i2s", "refclk", "wdt", "p4led_an", "p2led_an", "p1led_an", "p0led_an", "wled_an";
function = "gpio";
};
};