1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_d-link_dgs-1210_common.dtsi"
5 #include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
8 compatible = "d-link,dgs-1210-10mp-f", "realtek,rtl8382-soc", "realtek,rtl838x-soc";
10 model = "D-Link DGS-1210-10MP F";
12 /* i2c for sfp port9 */
14 compatible = "i2c-gpio";
15 sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
16 scl-gpios = <&gpio1 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
17 i2c-gpio,delay-us = <2>;
23 compatible = "sff,sfp";
25 los-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
26 mod-def0-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
27 tx-disable-gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
30 /* i2c for sfp port10 */
32 compatible = "i2c-gpio";
33 sda-gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
34 scl-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
35 i2c-gpio,delay-us = <2>;
41 compatible = "sff,sfp";
43 los-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
44 mod-def0-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
45 tx-disable-gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
51 label = "green:link_act";
52 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
61 label = "yellow:poe_max";
62 gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_LIGHTS_TOGGLE>;
80 compatible = "realtek,rtl838x-mdio";
81 regmap = <ðernet0>;
100 #address-cells = <1>;
103 SWITCH_PORT(8, 1, internal)
104 SWITCH_PORT(9, 2, internal)
105 SWITCH_PORT(10, 3, internal)
106 SWITCH_PORT(11, 4, internal)
107 SWITCH_PORT(12, 5, internal)
108 SWITCH_PORT(13, 6, internal)
109 SWITCH_PORT(14, 7, internal)
110 SWITCH_PORT(15, 8, internal)
115 phy-handle = <&phy24>;
116 phy-mode = "1000base-x";
117 managed = "in-band-status";
124 phy-handle = <&phy26>;
125 phy-mode = "1000base-x";
126 managed = "in-band-status";
131 ethernet = <ðernet0>;
133 phy-mode = "internal";