
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>
39 lines
532 B
Plaintext
39 lines
532 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "rtl8380_netgear_gigabit.dtsi"
|
|
|
|
/ {
|
|
compatible = "netgear,gs310tp-v1", "realtek,rtl838x-soc";
|
|
model = "Netgear GS310TP v1";
|
|
|
|
};
|
|
|
|
&gpio1 {
|
|
poe-enable {
|
|
gpio-hog;
|
|
gpios = <10 GPIO_ACTIVE_HIGH>;
|
|
output-high;
|
|
line-name = "poe-enable";
|
|
};
|
|
};
|
|
|
|
&firmware {
|
|
openwrt,ih-magic = <0x4e474335>;
|
|
};
|
|
|
|
&uart1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio {
|
|
INTERNAL_PHY(24)
|
|
INTERNAL_PHY(26)
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
SWITCH_SFP_PORT(24, 9, rgmii-id)
|
|
SWITCH_SFP_PORT(26, 10, rgmii-id)
|
|
};
|
|
};
|