bmips: dts: align LEDs
[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 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 = <&pinctrl 3 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 debounce-interval = <60>;
29 };
30
31 reset {
32 label = "reset";
33 gpios = <&pinctrl 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 mtd-mac-address = <&cfe 0x6a0>;
46 mtd-mac-address-increment = <1>;
47
48 brcm,sprom-fixups = <6 0x1c00>,
49 <65 0x1255>,
50 <97 0xfe55>,
51 <98 0x171d>,
52 <99 0xfa42>,
53 <113 0xfeb7>,
54 <114 0x18cd>,
55 <115 0xfa4f>,
56 <162 0x6444>,
57 <170 0x6444>,
58 <172 0x6444>;
59 };
60 };
61
62 &ehci {
63 status = "okay";
64 };
65
66 &ethernet {
67 status = "okay";
68
69 mtd-mac-address = <&cfe 0x6a0>;
70 };
71
72 &hsspi {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 spi-max-frequency = <62500000>;
78 spi-tx-bus-width = <2>;
79 spi-rx-bus-width = <2>;
80 reg = <0>;
81
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 cfe: partition@0 {
91 reg = <0x000000 0x010000>;
92 label = "cfe";
93 read-only;
94 };
95
96 partition@10000 {
97 compatible = "brcm,bcm963xx-imagetag";
98 reg = <0x010000 0xfe0000>;
99 label = "firmware";
100 };
101
102 partition@ff0000 {
103 reg = <0xff0000 0x010000>;
104 label = "nvram";
105 };
106 };
107 };
108 };
109
110 &leds {
111 status = "okay";
112
113 pinctrl-names = "default";
114 pinctrl-0 = <&pinctrl_leds
115 &pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
116 &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
117
118 led@0 {
119 reg = <0>;
120 active-low;
121 label = "green:wps";
122 };
123
124 led_power_green: led@1 {
125 reg = <1>;
126 active-low;
127 label = "green:power";
128 };
129
130 led_usb_green: led@2 {
131 reg = <2>;
132 active-low;
133 label = "green:usb";
134 };
135
136 led@4 {
137 reg = <4>;
138 brcm,hardware-controlled;
139 brcm,link-signal-sources = <4>;
140 /* EPHY0 Act */
141 };
142
143 led@5 {
144 reg = <5>;
145 brcm,hardware-controlled;
146 brcm,link-signal-sources = <5>;
147 /* EPHY1 Act */
148 };
149
150 led@6 {
151 reg = <6>;
152 brcm,hardware-controlled;
153 brcm,link-signal-sources = <6>;
154 /* EPHY2 Act */
155 };
156
157 led@7 {
158 reg = <7>;
159 brcm,hardware-controlled;
160 brcm,link-signal-sources = <7>;
161 /* EPHY3 Act */
162 };
163
164 led_internet_green: led@8 {
165 reg = <8>;
166 active-low;
167 label = "green:internet";
168 };
169
170 led@9 {
171 reg = <9>;
172 active-low;
173 label = "red:internet";
174 };
175
176 led_dsl_green: led@10 {
177 reg = <10>;
178 active-low;
179 label = "green:dsl";
180 };
181
182 led_power_red: led@11 {
183 reg = <11>;
184 active-low;
185 label = "red:power";
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 };
215
216 port@1 {
217 reg = <1>;
218 label = "lan3";
219
220 phy-handle = <&phy2>;
221 };
222
223 port@2 {
224 reg = <2>;
225 label = "lan2";
226
227 phy-handle = <&phy3>;
228 };
229
230 port@3 {
231 reg = <3>;
232 label = "lan1";
233
234 phy-handle = <&phy4>;
235 };
236 };
237 };
238
239 &uart0 {
240 status = "okay";
241 };
242
243 &usbh {
244 status = "okay";
245 };