[PATCH 1/2] realtek: netgear-gigabit: Enable RTL8231

Sander Vanheule sander at svanheule.net
Wed Nov 24 21:50:09 PST 2021


Since the move to 5.10, there are now two GPIO drivers. The gpio0 node
refers to the internal GPIOs, so the indirect-access-bus-id is no longer
relevant for that node.

Set indirect-access-bus-id to the correct value (31) on the correct node
(gpio1) and enable the device.

Cc: Raylynn Knight <rayknight at me.com>
Cc: Michael Mohr <akihana at gmail.com>
Cc: Stijn Segers <foss at volatilesystems.org>
Cc: Stijn Tintel <stijn at linux-ipv6.be>
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
To everyone in CC, could you please verify that the RTL8231 is present
in your device(s) at address 31. On my GS110TPP the status LEDs are
located on external GPIOs 31, 32, and 34. Other devices configure the
same pins as outputs, so it is possible the status LED(s) is (are) also
present on these pins on other devices. For the GS310TP, external GPIO
functionality can also be tested through the lines for the SFP cages.

This applies to the following Netgear devices, see the links for vendor
GPIO info:
- GS108T v3 (https://biot.com/switches/gs108tv3)
- GS110TPP v1 (device status LEDs, tested by myself)
- GS308T v1 (https://biot.com/switches/gs308t)
- GS310TP v1 (https://biot.com/switches/gs310tp)
---
 target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
index 6eb316231b47..06e56032da1d 100644
--- a/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl8380_netgear_gigabit.dtsi
@@ -24,8 +24,10 @@
 	};
 };
 
-&gpio0 {
-	indirect-access-bus-id = <0>;
+&gpio1 {
+	status = "okay";
+
+	indirect-access-bus-id = <31>;
 };
 
 &ethernet0 {
-- 
2.33.1




More information about the openwrt-devel mailing list