realtek: copy dts/files/patches/configs for 5.15
[openwrt/openwrt.git] / target / linux / realtek / dts-5.15 / rtl8380_d-link_dgs-1210-10mp-f.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 #include "rtl83xx_d-link_dgs-1210_gpio.dtsi"
6
7 / {
8 compatible = "d-link,dgs-1210-10mp-f", "realtek,rtl8382-soc", "realtek,rtl838x-soc";
9
10 model = "D-Link DGS-1210-10MP F";
11 };
12
13 &leds {
14 link_act {
15 label = "green:link_act";
16 gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
17 };
18
19 poe {
20 label = "green:poe";
21 gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
22 };
23
24 poe_max {
25 label = "yellow:poe_max";
26 gpios = <&gpio1 27 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 &keys {
31 mode {
32 label = "mode";
33 gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_LIGHTS_TOGGLE>;
35 };
36 };
37
38 &uart1 {
39 status = "okay";
40 };
41
42 &ethernet0 {
43 mdio: mdio-bus {
44 compatible = "realtek,rtl838x-mdio";
45 regmap = <&ethernet0>;
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 INTERNAL_PHY(8)
50 INTERNAL_PHY(9)
51 INTERNAL_PHY(10)
52 INTERNAL_PHY(11)
53 INTERNAL_PHY(12)
54 INTERNAL_PHY(13)
55 INTERNAL_PHY(14)
56 INTERNAL_PHY(15)
57 INTERNAL_PHY(24)
58 INTERNAL_PHY(26)
59 };
60 };
61
62 &switch0 {
63 ports {
64 #address-cells = <1>;
65 #size-cells = <0>;
66
67 SWITCH_PORT(8, 1, internal)
68 SWITCH_PORT(9, 2, internal)
69 SWITCH_PORT(10, 3, internal)
70 SWITCH_PORT(11, 4, internal)
71 SWITCH_PORT(12, 5, internal)
72 SWITCH_PORT(13, 6, internal)
73 SWITCH_PORT(14, 7, internal)
74 SWITCH_PORT(15, 8, internal)
75 SWITCH_SFP_PORT(24, 9, rgmii-id)
76 SWITCH_SFP_PORT(26, 10, rgmii-id)
77
78 port@28 {
79 ethernet = <&ethernet0>;
80 reg = <28>;
81 phy-mode = "internal";
82 fixed-link {
83 speed = <1000>;
84 full-duplex;
85 };
86 };
87 };
88 };