1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_d-link_dgs-1210_common.dtsi"
7 compatible = "d-link,dgs-1210-10p", "realtek,rtl838x-soc";
8 model = "D-Link DGS-1210-10P";
10 /* i2c of the left SFP cage: port 9 */
12 compatible = "i2c-gpio";
13 sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
14 scl-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
15 i2c-gpio,delay-us = <2>;
21 compatible = "sff,sfp";
23 los-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
24 mod-def0-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
25 tx-disable-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
28 /* i2c of the right SFP cage: port 10 */
30 compatible = "i2c-gpio";
31 sda-gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
32 scl-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
33 i2c-gpio,delay-us = <2>;
39 compatible = "sff,sfp";
41 los-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
42 mod-def0-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
43 tx-disable-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
47 compatible = "gpio-keys-polled";
52 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_LIGHTS_TOGGLE>;
58 gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
65 label = "green:link_act";
66 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
75 label = "yellow:poe_max";
76 gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
81 compatible = "realtek,rtl8231-gpio";
84 indirect-access-bus-id = <0>;
94 compatible = "realtek,rtl838x-mdio";
95 regmap = <ðernet0>;
114 #address-cells = <1>;
117 SWITCH_PORT(8, 1, internal)
118 SWITCH_PORT(9, 2, internal)
119 SWITCH_PORT(10, 3, internal)
120 SWITCH_PORT(11, 4, internal)
121 SWITCH_PORT(12, 5, internal)
122 SWITCH_PORT(13, 6, internal)
123 SWITCH_PORT(14, 7, internal)
124 SWITCH_PORT(15, 8, internal)
129 phy-handle = <&phy24>;
130 phy-mode = "1000base-x";
131 managed = "in-band-status";
138 phy-handle = <&phy26>;
139 phy-mode = "1000base-x";
140 managed = "in-band-status";
145 ethernet = <ðernet0>;
147 phy-mode = "internal";