blob: a197f447fd97f8704235e629753156ec386f698e [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Author: Arınç ÜNAL <arinc.unal@arinc9.com>
4 */
5
6/dts-v1/;
7
8#include "bcm47094-asus-rt-ac3100.dtsi"
9
10/ {
11 compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
12 model = "ASUS RT-AC88U";
13
14 nvram@1c080000 {
15 et1macaddr: et1macaddr {
Tom Rini762f85b2024-07-20 11:15:10 -060016 #nvmem-cell-cells = <1>;
Tom Rini53633a82024-02-29 12:33:36 -050017 };
18 };
19
20 switch {
21 compatible = "realtek,rtl8365mb";
Tom Rini53633a82024-02-29 12:33:36 -050022 mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
23 mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
24 reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
25 realtek,disable-leds;
26 dsa,member = <1 0>;
27
Tom Rini762f85b2024-07-20 11:15:10 -060028 mdio {
29 compatible = "realtek,smi-mdio";
30 #address-cells = <1>;
31 #size-cells = <0>;
32
33 ethphy0: ethernet-phy@0 {
34 reg = <0>;
35 };
36
37 ethphy1: ethernet-phy@1 {
38 reg = <1>;
39 };
40
41 ethphy2: ethernet-phy@2 {
42 reg = <2>;
43 };
44
45 ethphy3: ethernet-phy@3 {
46 reg = <3>;
47 };
48 };
49
Tom Rini53633a82024-02-29 12:33:36 -050050 ports {
51 #address-cells = <1>;
52 #size-cells = <0>;
53
54 port@0 {
55 reg = <0>;
56 label = "lan5";
57 phy-handle = <&ethphy0>;
58 };
59
60 port@1 {
61 reg = <1>;
62 label = "lan6";
63 phy-handle = <&ethphy1>;
64 };
65
66 port@2 {
67 reg = <2>;
68 label = "lan7";
69 phy-handle = <&ethphy2>;
70 };
71
72 port@3 {
73 reg = <3>;
74 label = "lan8";
75 phy-handle = <&ethphy3>;
76 };
77
78 port@6 {
79 reg = <6>;
80 label = "cpu";
81 ethernet = <&sw0_p5>;
82 phy-mode = "rgmii";
83 tx-internal-delay-ps = <2000>;
84 rx-internal-delay-ps = <2100>;
85
86 fixed-link {
87 speed = <1000>;
88 full-duplex;
89 pause;
90 };
91 };
92 };
Tom Rini762f85b2024-07-20 11:15:10 -060093 };
94};
Tom Rini53633a82024-02-29 12:33:36 -050095
Tom Rini762f85b2024-07-20 11:15:10 -060096&gmac0 {
97 status = "disabled";
98};
Tom Rini53633a82024-02-29 12:33:36 -050099
Tom Rini762f85b2024-07-20 11:15:10 -0600100&gmac1 {
101 nvmem-cells = <&et1macaddr 0>;
102 nvmem-cell-names = "mac-address";
103};
Tom Rini53633a82024-02-29 12:33:36 -0500104
Tom Rini762f85b2024-07-20 11:15:10 -0600105&gmac2 {
106 nvmem-cells = <&et1macaddr 1>;
107 nvmem-cell-names = "mac-address";
Tom Rini53633a82024-02-29 12:33:36 -0500108};
109
110&srab {
111 dsa,member = <0 0>;
112
113 ports {
114 sw0_p5: port@5 {
115 /delete-property/ethernet;
116
117 label = "extsw";
118 phy-mode = "rgmii";
119
120 fixed-link {
121 speed = <1000>;
122 full-duplex;
123 pause;
124 };
125 };
126 };
127};