]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: add PoE enable line to Netgear GS310TP 17613/head
authorSander Vanheule <sander@svanheule.net>
Sat, 22 Feb 2025 11:06:10 +0000 (12:06 +0100)
committerSander Vanheule <sander@svanheule.net>
Sat, 22 Feb 2025 11:33:08 +0000 (12:33 +0100)
commitbb6f183e93883abf85c0648f1aa8e2b94cab7b82
tree2f88d760ebb3b1c1f809717d9898818ba084a73e
parent8f3b24643b40e14be1c9c092c74030c29fa9d8c2
realtek: add PoE enable line to Netgear GS310TP

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 890293c13cc0c7e23577cb92c36edcc9911b4400)
target/linux/realtek/dts/rtl8380_netgear_gs310tp-v1.dts