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