mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-09 14:12:10 -05:00
RTL93XX reached the point where the SerDes' are no longer treated as regular PHYs. Instead, they are managed by the dedicated PCS driver. Thus, all device tree definitions should follow this change. Remove the pseudo-PHYs for the SerDes (so far usually defined with macro INTERNAL_PHY) and corresponding 'phy-handle's from all SFP ports. This removes a long-lasting confusion from our Realtek driver(s). Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/20577 Signed-off-by: Robert Marko <robimarko@gmail.com>
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/dts-v1/;
|
|
|
|
#include "rtl9302_plasmacloud_common.dtsi"
|
|
|
|
/ {
|
|
compatible = "plasmacloud,psx10", "realtek,rtl838x-soc";
|
|
model = "Plasma Cloud PSX10";
|
|
|
|
i2c1: i2c-gpio1 {
|
|
compatible = "i2c-gpio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
sda-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
|
|
scl-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
|
|
|
|
i2c-gpio,delay-us = <5>; /* ~100 kHz */
|
|
};
|
|
|
|
sfp0: sfp-lan9 {
|
|
compatible = "sff,sfp";
|
|
i2c-bus = <&i2c0>;
|
|
los-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
|
|
mod-def0-gpio = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
|
tx-disable-gpio = <&gpio0 22 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
sfp1: sfp-lan10 {
|
|
compatible = "sff,sfp";
|
|
i2c-bus = <&i2c1>;
|
|
los-gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>;
|
|
mod-def0-gpio = <&gpio0 20 GPIO_ACTIVE_LOW>;
|
|
tx-disable-gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
port@26 {
|
|
reg = <26>;
|
|
label = "lan9";
|
|
pcs-handle = <&serdes8>;
|
|
phy-mode = "1000base-x";
|
|
sfp = <&sfp0>;
|
|
led-set = <0>;
|
|
managed = "in-band-status";
|
|
|
|
nvmem-cells = <&macaddr_ubootenv_ethaddr 9>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
port@27 {
|
|
reg = <27>;
|
|
label = "lan10";
|
|
pcs-handle = <&serdes9>;
|
|
phy-mode = "1000base-x";
|
|
sfp = <&sfp1>;
|
|
led-set = <0>;
|
|
managed = "in-band-status";
|
|
|
|
nvmem-cells = <&macaddr_ubootenv_ethaddr 10>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
};
|
|
};
|