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