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