8dc37d492f5306546bb7b9f3b5b3e1e70721f74c
[openwrt/staging/nbd.git] / target / linux / bmips / dts / bcm6368-actiontec-r1000h.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "bcm6368.dtsi"
6
7 / {
8 model = "Actiontec R1000H";
9 compatible = "actiontec,r1000h", "brcm,bcm6368";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_red;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 debounce-interval = <60>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
33 debounce-interval = <60>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led@5 {
41 function = LED_FUNCTION_WAN;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
44 };
45
46 led@21 {
47 function = LED_FUNCTION_USB;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
50 };
51
52 led_power_green: led@22 {
53 function = LED_FUNCTION_POWER;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
56 };
57
58 led@23 {
59 function = LED_FUNCTION_WPS;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
62 };
63
64 led_power_red: led@24 {
65 function = LED_FUNCTION_POWER;
66 color = <LED_COLOR_ID_RED>;
67 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
68 panic-indicator;
69 };
70
71 led@30 {
72 function = LED_FUNCTION_WPS;
73 color = <LED_COLOR_ID_RED>;
74 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
75 };
76
77 led@31 {
78 function = LED_FUNCTION_WAN;
79 color = <LED_COLOR_ID_RED>;
80 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
81 };
82 };
83 };
84
85 &ehci {
86 status = "okay";
87 };
88
89 &ethernet {
90 status = "okay";
91
92 nvmem-cells = <&macaddr_cfe_6a0>;
93 nvmem-cell-names = "mac-address";
94 };
95
96 &mdio_ext {
97 switch@1e {
98 compatible = "brcm,bcm53115";
99 reg = <30>;
100
101 dsa,member = <1 0>;
102
103 ports {
104 #address-cells = <1>;
105 #size-cells = <0>;
106
107 port@0 {
108 reg = <0>;
109 label = "lan1";
110 };
111
112 port@1 {
113 reg = <1>;
114 label = "lan2";
115 };
116
117 port@2 {
118 reg = <2>;
119 label = "lan3";
120 };
121
122 port@3 {
123 reg = <3>;
124 label = "lan4";
125 };
126
127 port@4 {
128 reg = <4>;
129 label = "wan";
130 };
131
132 port@5 {
133 /* HPNA coaxial port */
134 reg = <5>;
135 label = "coax";
136
137 phy-mode = "mii";
138
139 fixed-link {
140 speed = <100>;
141 full-duplex;
142 };
143 };
144
145 port@8 {
146 reg = <8>;
147
148 phy-mode = "rgmii";
149 ethernet = <&switch0port5>;
150
151 fixed-link {
152 speed = <1000>;
153 full-duplex;
154 };
155 };
156 };
157 };
158 };
159
160 &switch0 {
161 dsa,member = <0 0>;
162
163 ports {
164 switch0port5: port@5 {
165 reg = <5>;
166 label = "extsw";
167
168 phy-mode = "rgmii";
169
170 fixed-link {
171 speed = <1000>;
172 full-duplex;
173 };
174 };
175 };
176 };
177
178 &pflash {
179 status = "okay";
180
181 partitions {
182 compatible = "fixed-partitions";
183 #address-cells = <1>;
184 #size-cells = <1>;
185
186 partition@0 {
187 label = "CFE";
188 reg = <0x000000 0x020000>;
189 read-only;
190
191 nvmem-layout {
192 compatible = "fixed-layout";
193 #address-cells = <1>;
194 #size-cells = <1>;
195
196 macaddr_cfe_6a0: macaddr@6a0 {
197 reg = <0x6a0 0x6>;
198 };
199 };
200 };
201
202 partition@20000 {
203 label = "firmware";
204 reg = <0x020000 0x1fc0000>;
205 compatible = "brcm,bcm963xx-imagetag";
206 };
207
208 partition@fe0000 {
209 label = "nvram";
210 reg = <0x1fe0000 0x020000>;
211 };
212 };
213 };
214
215 &ohci {
216 status = "okay";
217 };
218
219 &pci {
220 status = "okay";
221 };
222
223 &uart0 {
224 status = "okay";
225 };
226
227 &usbh {
228 status = "okay";
229 };