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";
11 compatible = "gpio-keys-polled";
16 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_LIGHTS_TOGGLE>;
22 gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
29 label = "green:link_act";
30 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
35 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
39 label = "yellow:poe_max";
40 gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
45 compatible = "realtek,rtl8231-gpio";
48 indirect-access-bus-id = <0>;
58 compatible = "realtek,rtl838x-mdio";
59 regmap = <ðernet0>;
81 SWITCH_PORT(8, 1, internal)
82 SWITCH_PORT(9, 2, internal)
83 SWITCH_PORT(10, 3, internal)
84 SWITCH_PORT(11, 4, internal)
85 SWITCH_PORT(12, 5, internal)
86 SWITCH_PORT(13, 6, internal)
87 SWITCH_PORT(14, 7, internal)
88 SWITCH_PORT(15, 8, internal)
89 SWITCH_SFP_PORT(24, 9, rgmii-id)
90 SWITCH_SFP_PORT(26, 10, rgmii-id)
93 ethernet = <ðernet0>;
95 phy-mode = "internal";