45ed6e2a3b71231e4d7c952e7acb0bc36483b846
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6318-comtrend-ar-5315u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6318.dtsi"
4
5 / {
6 model = "Comtrend AR-5315u";
7 compatible = "comtrend,ar-5315u", "brcm,bcm6318";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_green;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 wps {
21 label = "wps";
22 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 debounce-interval = <60>;
25 };
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33 };
34
35 bcm43217-sprom {
36 compatible = "brcm,bcma-sprom";
37
38 pci-bus = <1>;
39 pci-dev = <0>;
40
41 nvmem-cells = <&macaddr_cfe_6a0>;
42 nvmem-cell-names = "mac-address";
43 mac-address-increment = <1>;
44
45 brcm,sprom = "brcm/bcm43217-sprom.bin";
46 brcm,sprom-fixups = <6 0x1c00>,
47 <65 0x1255>,
48 <97 0xfe55>,
49 <98 0x171d>,
50 <99 0xfa42>,
51 <113 0xfeb7>,
52 <114 0x18cd>,
53 <115 0xfa4f>,
54 <162 0x6444>,
55 <170 0x6444>,
56 <172 0x6444>;
57 };
58 };
59
60 &ehci {
61 status = "okay";
62 };
63
64 &ethernet {
65 status = "okay";
66
67 nvmem-cells = <&macaddr_cfe_6a0>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &hsspi {
72 status = "okay";
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 spi-max-frequency = <62500000>;
77 spi-tx-bus-width = <2>;
78 spi-rx-bus-width = <2>;
79 reg = <0>;
80
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 cfe: partition@0 {
90 reg = <0x000000 0x010000>;
91 label = "cfe";
92 read-only;
93 };
94
95 partition@10000 {
96 compatible = "brcm,bcm963xx-imagetag";
97 reg = <0x010000 0xfe0000>;
98 label = "firmware";
99 };
100
101 partition@ff0000 {
102 reg = <0xff0000 0x010000>;
103 label = "nvram";
104 };
105 };
106 };
107 };
108
109 &leds {
110 status = "okay";
111
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_leds
114 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
115 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
116
117 led@0 {
118 reg = <0>;
119 active-low;
120 label = "green:wps";
121 };
122
123 led_power_green: led@1 {
124 reg = <1>;
125 active-low;
126 label = "green:power";
127 };
128
129 led@2 {
130 reg = <2>;
131 active-low;
132 label = "green:usb";
133 };
134
135 led@4 {
136 /* EPHY0 Act */
137 reg = <4>;
138 brcm,hardware-controlled;
139 brcm,link-signal-sources = <4>;
140 };
141
142 led@5 {
143 /* EPHY1 Act */
144 reg = <5>;
145 brcm,hardware-controlled;
146 brcm,link-signal-sources = <5>;
147 };
148
149 led@6 {
150 /* EPHY2 Act */
151 reg = <6>;
152 brcm,hardware-controlled;
153 brcm,link-signal-sources = <6>;
154 };
155
156 led@7 {
157 /* EPHY3 Act */
158 reg = <7>;
159 brcm,hardware-controlled;
160 brcm,link-signal-sources = <7>;
161 };
162
163 led@8 {
164 reg = <8>;
165 active-low;
166 label = "green:internet";
167 };
168
169 led@9 {
170 reg = <9>;
171 active-low;
172 label = "red:internet";
173 };
174
175 led@10 {
176 reg = <10>;
177 active-low;
178 label = "green:dsl";
179 };
180
181 led_power_red: led@11 {
182 reg = <11>;
183 active-low;
184 label = "red:power";
185 panic-indicator;
186 };
187 };
188
189 &ohci {
190 status = "okay";
191 };
192
193 &pcie {
194 status = "okay";
195 };
196
197 &pinctrl {
198 pinctrl_leds: leds {
199 function = "led";
200 pins = "gpio0", "gpio1",
201 "gpio2", "gpio8",
202 "gpio9", "gpio10",
203 "gpio11";
204 };
205 };
206
207 &switch0 {
208 ports {
209 port@0 {
210 reg = <0>;
211 label = "lan4";
212
213 phy-handle = <&phy1>;
214 phy-mode = "mii";
215 };
216
217 port@1 {
218 reg = <1>;
219 label = "lan3";
220
221 phy-handle = <&phy2>;
222 phy-mode = "mii";
223 };
224
225 port@2 {
226 reg = <2>;
227 label = "lan2";
228
229 phy-handle = <&phy3>;
230 phy-mode = "mii";
231 };
232
233 port@3 {
234 reg = <3>;
235 label = "lan1";
236
237 phy-handle = <&phy4>;
238 phy-mode = "mii";
239 };
240 };
241 };
242
243 &uart0 {
244 status = "okay";
245 };
246
247 &usbh {
248 status = "okay";
249 };
250
251 &cfe {
252 compatible = "nvmem-cells";
253 #address-cells = <1>;
254 #size-cells = <1>;
255
256 macaddr_cfe_6a0: macaddr@6a0 {
257 reg = <0x6a0 0x6>;
258 };
259 };