72956359d18b197a6d2e09545e4979fc24deef5a
[openwrt/staging/ldir.git] / target / linux / realtek / dts-5.10 / rtl8380_netgear_gigabit.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "rtl838x.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7
8 / {
9 compatible = "realtek,rtl838x-soc";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x8000000>;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 mode {
20 label = "reset";
21 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25
26 gpio-restart {
27 compatible = "gpio-restart";
28 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
29 open-source;
30 };
31 };
32
33 &gpio0 {
34 indirect-access-bus-id = <0>;
35 };
36
37 &ethernet0 {
38 mdio: mdio-bus {
39 compatible = "realtek,rtl838x-mdio";
40 regmap = <&ethernet0>;
41 #address-cells = <1>;
42 #size-cells = <0>;
43
44 INTERNAL_PHY(8)
45 INTERNAL_PHY(9)
46 INTERNAL_PHY(10)
47 INTERNAL_PHY(11)
48 INTERNAL_PHY(12)
49 INTERNAL_PHY(13)
50 INTERNAL_PHY(14)
51 INTERNAL_PHY(15)
52 };
53 };
54
55 &switch0 {
56 ports {
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 SWITCH_PORT(8, 1, internal)
61 SWITCH_PORT(9, 2, internal)
62 SWITCH_PORT(10, 3, internal)
63 SWITCH_PORT(11, 4, internal)
64 SWITCH_PORT(12, 5, internal)
65 SWITCH_PORT(13, 6, internal)
66 SWITCH_PORT(14, 7, internal)
67 SWITCH_PORT(15, 8, internal)
68
69 port@28 {
70 ethernet = <&ethernet0>;
71 reg = <28>;
72 phy-mode = "internal";
73 fixed-link {
74 speed = <1000>;
75 full-duplex;
76 };
77 };
78 };
79 };