]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: Enable Zyxel GS1900's RTL8231 reset line
authorSander Vanheule <sander@svanheule.net>
Tue, 21 Jan 2025 18:37:25 +0000 (19:37 +0100)
committerSander Vanheule <sander@svanheule.net>
Sat, 22 Feb 2025 11:32:35 +0000 (12:32 +0100)
As the bootloader is reconfiguring the RTL8231 on these devices anyway,
no pin state can be maintained over warm reboots. This results in for
example the PoE disable pin always being asserted by the bootloader.

Define the GPIO line linked to the RTL8231's reset so the MDIO subsystem
will also reset the expander on boot and ensure the line in the correct
state.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit b2d17dbb68c232393739e6fb48245f1f4bebb698)

target/linux/realtek/dts/rtl8380_zyxel_gs1900.dtsi

index 927b9527a95a00da34562238a2f80895ce56bd24..6ab3e4834a2e70f51d26d23255b7a695efdc1592 100644 (file)
 &mdio_aux {
        status = "okay";
 
-       // Reset GPIO is <&gpio0 1 GPIO_ACTIVE_LOW>
-       // Don't specify the reset info so the mdio subsystem doesn't reset the bus
-       //reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
-       //reset-delay-us = <1000>;
-       //reset-post-delay-us = <10000>;
+       reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+       reset-delay-us = <1000>;
+       reset-post-delay-us = <10000>;
 
        gpio1: expander@0 {
                compatible = "realtek,rtl8231";