1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
4 #include "rtl838x_hpe_1920.dtsi"
8 compatible = "realtek,rtl8231-gpio";
11 indirect-access-bus-id = <0>;
15 compatible = "i2c-gpio";
16 sda-gpios = <&gpio1 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
17 scl-gpios = <&gpio1 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
18 i2c-gpio,delay-us = <2>;
24 compatible = "sff,sfp";
26 los-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
27 mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
28 // tx-fault and tx-disable unconnected
32 compatible = "i2c-gpio";
33 sda-gpios = <&gpio1 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
34 scl-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
35 i2c-gpio,delay-us = <2>;
41 compatible = "sff,sfp";
43 los-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
44 mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
45 // tx-fault and tx-disable unconnected
51 compatible = "realtek,rtl838x-mdio";
52 regmap = <ðernet0>;
75 SWITCH_PORT(8, 1, internal)
76 SWITCH_PORT(9, 2, internal)
77 SWITCH_PORT(10, 3, internal)
78 SWITCH_PORT(11, 4, internal)
79 SWITCH_PORT(12, 5, internal)
80 SWITCH_PORT(13, 6, internal)
81 SWITCH_PORT(14, 7, internal)
82 SWITCH_PORT(15, 8, internal)
87 phy-handle = <&phy24>;
88 phy-mode = "1000base-x";
89 managed = "in-band-status";
96 phy-handle = <&phy26>;
97 phy-mode = "1000base-x";
98 managed = "in-band-status";
103 ethernet = <ðernet0>;
105 phy-mode = "internal";