bmips: dts: move leds dt-bindings include to SoCs
[openwrt/staging/robimarko.git] / target / linux / bmips / dts / bcm6369-comtrend-wap-5813n.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6368.dtsi"
4
5 / {
6 model = "Comtrend WAP-5813n";
7 compatible = "comtrend,wap-5813n", "brcm,bcm6369", "brcm,bcm6368";
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 wlan {
21 label = "wlan";
22 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WLAN>;
24 debounce-interval = <60>;
25 };
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 debounce-interval = <60>;
32 };
33
34 wps {
35 label = "wps";
36 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 debounce-interval = <60>;
39 };
40 };
41
42 leds {
43 compatible = "gpio-leds";
44
45 led@5 {
46 label = "green:internet";
47 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
48 };
49
50 led@14 {
51 function = LED_FUNCTION_USB;
52 color = <LED_COLOR_ID_GREEN>;
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
54 };
55
56 led_power_green: led@22 {
57 function = LED_FUNCTION_POWER;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
60 };
61
62 led@23 {
63 function = LED_FUNCTION_WPS;
64 color = <LED_COLOR_ID_GREEN>;
65 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
66 };
67
68 led_power_red: led@24 {
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_RED>;
71 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
72 panic-indicator;
73 };
74
75 led@31 {
76 label = "red:internet";
77 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
78 };
79 };
80
81 bcm4322-sprom {
82 compatible = "brcm,ssb-sprom";
83
84 pci-bus = <0>;
85 pci-dev = <1>;
86
87 nvmem-cells = <&macaddr_cfe_6a0 1>;
88 nvmem-cell-names = "mac-address";
89
90 brcm,sprom = "brcm/bcm4322-sprom.bin";
91 brcm,sprom-fixups = <97 0xfeed>,
92 <98 0x15d1>,
93 <99 0xfb0d>,
94 <113 0xfef7>,
95 <114 0x15f7>,
96 <115 0xfb1a>;
97 };
98 };
99
100 &ehci {
101 status = "okay";
102 };
103
104 &ethernet {
105 status = "okay";
106
107 nvmem-cells = <&macaddr_cfe_6a0 0>;
108 nvmem-cell-names = "mac-address";
109 };
110
111 &lsspi {
112 status = "okay";
113
114 switch@0 {
115 compatible = "brcm,bcm53115";
116 reg = <0>;
117 spi-max-frequency = <781000>;
118 dsa,member = <1 0>;
119
120 ports {
121 #address-cells = <1>;
122 #size-cells = <0>;
123
124 port@0 {
125 reg = <0>;
126 label = "lan4";
127 };
128
129 port@1 {
130 reg = <1>;
131 label = "lan3";
132 };
133
134 port@2 {
135 reg = <2>;
136 label = "lan2";
137 };
138
139 port@3 {
140 reg = <3>;
141 label = "lan1";
142 };
143
144 port@4 {
145 reg = <4>;
146 label = "wan";
147 };
148
149 port@5 {
150 reg = <5>;
151
152 phy-mode = "rgmii";
153 ethernet = <&switch0port4>;
154
155 fixed-link {
156 speed = <1000>;
157 full-duplex;
158 };
159 };
160 };
161 };
162 };
163
164 &pflash {
165 status = "okay";
166
167 partitions {
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 partition@0 {
173 label = "CFE";
174 reg = <0x000000 0x010000>;
175 read-only;
176
177 nvmem-layout {
178 compatible = "fixed-layout";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 macaddr_cfe_6a0: macaddr@6a0 {
183 compatible = "mac-base";
184 reg = <0x6a0 0x6>;
185 #nvmem-cell-cells = <1>;
186 };
187 };
188 };
189
190 partition@20000 {
191 label = "firmware";
192 reg = <0x010000 0x7e0000>;
193 compatible = "brcm,bcm963xx-imagetag";
194 };
195
196 partition@fe0000 {
197 label = "nvram";
198 reg = <0x7f0000 0x010000>;
199 };
200 };
201 };
202
203 &ohci {
204 status = "okay";
205 };
206
207 &pci {
208 status = "okay";
209 };
210
211 &switch0 {
212 dsa,member = <0 0>;
213
214 ports {
215 switch0port4: port@4 {
216 reg = <4>;
217 label = "extsw";
218
219 phy-mode = "rgmii";
220
221 fixed-link {
222 speed = <1000>;
223 full-duplex;
224 };
225 };
226 };
227 };
228
229 &uart0 {
230 status = "okay";
231 };
232
233 &usbh {
234 status = "okay";
235 };