realtek: Consolidate bootargs
[openwrt/staging/nbd.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
27 &gpio0 {
28 indirect-access-bus-id = <0>;
29 };
30
31 &ethernet0 {
32 mdio: mdio-bus {
33 compatible = "realtek,rtl838x-mdio";
34 regmap = <&ethernet0>;
35 #address-cells = <1>;
36 #size-cells = <0>;
37
38 INTERNAL_PHY(8)
39 INTERNAL_PHY(9)
40 INTERNAL_PHY(10)
41 INTERNAL_PHY(11)
42 INTERNAL_PHY(12)
43 INTERNAL_PHY(13)
44 INTERNAL_PHY(14)
45 INTERNAL_PHY(15)
46 };
47 };
48
49 &switch0 {
50 ports {
51 #address-cells = <1>;
52 #size-cells = <0>;
53
54 SWITCH_PORT(8, 1, internal)
55 SWITCH_PORT(9, 2, internal)
56 SWITCH_PORT(10, 3, internal)
57 SWITCH_PORT(11, 4, internal)
58 SWITCH_PORT(12, 5, internal)
59 SWITCH_PORT(13, 6, internal)
60 SWITCH_PORT(14, 7, internal)
61 SWITCH_PORT(15, 8, internal)
62
63 port@28 {
64 ethernet = <&ethernet0>;
65 reg = <28>;
66 phy-mode = "internal";
67 fixed-link {
68 speed = <1000>;
69 full-duplex;
70 };
71 };
72 };
73 };