Use the new INTERNAL_PHY_SDS() helper to describe the SFP ports. With
this change the driver now knows that ports 24/26 are driven by serdes
4/5.
For the RTL838x devices this is currently only an additional information
for the mdio bus. It is not evaluated further because everything is
hardcoded.
REMARK! The original commit c829bc1f2c
("realtek: Add support for
Netgear S350 series switches GS308T and GS310TP") says that the SFP
ports are untested. Looking at device internal pictures from
https://techinfodepot.shoutwiki.com/wiki/Netgear_GS310TP there are no
external phys for the SFP ports. So fix port description.
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18851
Signed-off-by: Robert Marko <robimarko@gmail.com>
62 lines
1 KiB
Text
62 lines
1 KiB
Text
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "rtl8380_netgear_gigabit.dtsi"
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
compatible = "netgear,gs310tp-v1", "realtek,rtl838x-soc";
|
|
model = "Netgear GS310TP v1";
|
|
|
|
aliases {
|
|
led-boot = &led_power_green;
|
|
led-failsafe = &led_power_amber;
|
|
led-running = &led_power_green;
|
|
led-upgrade = &led_power_amber;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_power_amber: led-0 {
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
function = LED_FUNCTION_POWER;
|
|
gpios = <&gpio1 32 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_power_green: led-1 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_POWER;
|
|
gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&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_SDS(24, 4)
|
|
INTERNAL_PHY_SDS(26, 5)
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
SWITCH_SFP_PORT(24, 9, 1000base-x)
|
|
SWITCH_SFP_PORT(26, 10, 1000base-x)
|
|
};
|
|
};
|