ath25: switch default kernel to 5.15
[openwrt/staging/ldir.git] / target / linux / realtek / dts-5.10 / rtl8382_d-link_dgs-1210-10p.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "rtl838x.dtsi"
4 #include "rtl83xx_d-link_dgs-1210_common.dtsi"
5
6 / {
7 compatible = "d-link,dgs-1210-10p", "realtek,rtl838x-soc";
8 model = "D-Link DGS-1210-10P";
9
10 keys {
11 compatible = "gpio-keys-polled";
12 poll-interval = <20>;
13
14 mode {
15 label = "mode";
16 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_LIGHTS_TOGGLE>;
18 };
19
20 reset {
21 label = "reset";
22 gpios = <&gpio1 33 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25 };
26
27 leds {
28 link_act {
29 label = "green:link_act";
30 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
31 };
32
33 poe {
34 label = "green:poe";
35 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
36 };
37
38 poe_max {
39 label = "yellow:poe_max";
40 gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
41 };
42 };
43
44 gpio1: rtl8231-gpio {
45 compatible = "realtek,rtl8231-gpio";
46 #gpio-cells = <2>;
47 gpio-controller;
48 indirect-access-bus-id = <0>;
49 };
50 };
51
52 &uart1 {
53 status = "okay";
54 };
55
56 &ethernet0 {
57 mdio: mdio-bus {
58 compatible = "realtek,rtl838x-mdio";
59 regmap = <&ethernet0>;
60 #address-cells = <1>;
61 #size-cells = <0>;
62
63 INTERNAL_PHY(8)
64 INTERNAL_PHY(9)
65 INTERNAL_PHY(10)
66 INTERNAL_PHY(11)
67 INTERNAL_PHY(12)
68 INTERNAL_PHY(13)
69 INTERNAL_PHY(14)
70 INTERNAL_PHY(15)
71 INTERNAL_PHY(24)
72 INTERNAL_PHY(26)
73 };
74 };
75
76 &switch0 {
77 ports {
78 #address-cells = <1>;
79 #size-cells = <0>;
80
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)
91
92 port@28 {
93 ethernet = <&ethernet0>;
94 reg = <28>;
95 phy-mode = "internal";
96 fixed-link {
97 speed = <1000>;
98 full-duplex;
99 };
100 };
101 };
102 };