Skip to content
Snippets Groups Projects
Commit 9d06f1a6 authored by Dmitry Chigiryov's avatar Dmitry Chigiryov Committed by Sungbo Eo
Browse files

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: default avatarDmitry Chigiryov <dmitry.chigiryov@ya.ru>
[changed author address (used SoB one)]
Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
parent 94d4269e
No related branches found
No related tags found
No related merge requests found
......@@ -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";
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment