1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
4 #include "rtl838x_hpe_1920.dtsi"
7 compatible = "hpe,1920-8g", "realtek,rtl838x-soc";
8 model = "HPE 1920-8G (JG920A)";
11 compatible = "realtek,rtl8231-gpio";
14 indirect-access-bus-id = <0>;
18 compatible = "i2c-gpio";
19 sda-gpios = <&gpio1 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
20 scl-gpios = <&gpio1 24 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
21 i2c-gpio,delay-us = <2>;
27 compatible = "sff,sfp";
29 los-gpio = <&gpio1 26 GPIO_ACTIVE_HIGH>;
30 mod-def0-gpio = <&gpio1 25 GPIO_ACTIVE_LOW>;
31 // tx-fault and tx-disable unconnected
35 compatible = "i2c-gpio";
36 sda-gpios = <&gpio1 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
37 scl-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
38 i2c-gpio,delay-us = <2>;
44 compatible = "sff,sfp";
46 los-gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
47 mod-def0-gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
48 // tx-fault and tx-disable unconnected
54 compatible = "realtek,rtl838x-mdio";
55 regmap = <ðernet0>;
78 SWITCH_PORT(8, 1, internal)
79 SWITCH_PORT(9, 2, internal)
80 SWITCH_PORT(10, 3, internal)
81 SWITCH_PORT(11, 4, internal)
82 SWITCH_PORT(12, 5, internal)
83 SWITCH_PORT(13, 6, internal)
84 SWITCH_PORT(14, 7, internal)
85 SWITCH_PORT(15, 8, internal)
90 phy-handle = <&phy24>;
91 phy-mode = "1000base-x";
92 managed = "in-band-status";
99 phy-handle = <&phy26>;
100 phy-mode = "1000base-x";
101 managed = "in-band-status";
106 ethernet = <ðernet0>;
108 phy-mode = "internal";