summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule2025-01-27 21:17:57 +0000
committerSander Vanheule2025-02-22 11:32:35 +0000
commit28fb32a5507c7d3f30aadb820e8132702e991a84 (patch)
tree5be716d7e4080dcc14cd7bf716291cd810c3692d
parented4f7a6dec3cad462a8befbdf6d0fb3012ce7459 (diff)
downloadopenwrt-28fb32a5507c7d3f30aadb820e8132702e991a84.tar.gz
realtek: add PoE enable line to Netgear GS110TPP
By switching to the new RTL8231 driver in commit b7af54d5c18c ("realtek: Simple conversions to RTL8231 MFD driver"), the bootloader state of the RTL8231's pins is now maintained. As the bootloader de-asserts the PoE enable signal, this means PoE output is no longer available. Add a gpio-hog with high output, restoring the line value from when the pin was configured (by default) as an input with a pull-up resistor. This will hard-enable the PoE output, but the individual ports can still be administratively disabled by realtek-poe or a similar tool. Signed-off-by: Sander Vanheule <sander@svanheule.net> (cherry picked from commit 807074309dff4eff4097900b9de53abce8684e2f)
-rw-r--r--target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts b/target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts
index f694ae3317..d25b81c3cb 100644
--- a/target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts
+++ b/target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts
@@ -37,6 +37,15 @@
};
};
+&gpio1 {
+ poe-enable {
+ gpio-hog;
+ gpios = <10 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "poe-enable";
+ };
+};
+
&firmware {
openwrt,ih-magic = <0x4e474520>;
};