bmips: dts: move leds dt-bindings include to SoCs
[openwrt/openwrt.git] / target / linux / bmips / dts / bcm6358-huawei-hg556a-b.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "bcm6358.dtsi"
4
5 / {
6 model = "Huawei EchoLife HG556a (version B)";
7 compatible = "huawei,hg556a-b", "brcm,bcm6358";
8
9 aliases {
10 led-boot = &led_power_red;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_red;
13 led-upgrade = &led_power_red;
14 };
15
16 keys {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 help {
21 label = "help";
22 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_HELP>;
24 debounce-interval = <60>;
25 };
26
27 wlan {
28 label = "wlan";
29 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WLAN>;
31 debounce-interval = <60>;
32 };
33
34 restart {
35 label = "restart";
36 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 debounce-interval = <60>;
39 };
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_CONFIG>;
45 debounce-interval = <60>;
46 };
47 };
48
49 leds {
50 compatible = "gpio-leds";
51
52 led@0 {
53 label = "red:message";
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
55 };
56
57 led@1 {
58 label = "red:hspa";
59 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
60 };
61
62 led@2 {
63 label = "red:dsl";
64 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
65 };
66
67 led_power_red: led@3 {
68 function = LED_FUNCTION_POWER;
69 color = <LED_COLOR_ID_RED>;
70 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 };
72
73 led@6 {
74 label = "all";
75 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
76 default-state = "on";
77 };
78
79 led@12 {
80 label = "green:lan1";
81 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
82 };
83
84 led@13 {
85 label = "red:lan1";
86 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
87 };
88
89 led@15 {
90 label = "green:lan2";
91 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
92 };
93
94 led@22 {
95 label = "red:lan2";
96 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
97 };
98
99 led@23 {
100 label = "green:lan3";
101 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
102 };
103
104 led@26 {
105 label = "red:lan3";
106 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
107 };
108
109 led@27 {
110 label = "green:lan4";
111 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
112 };
113
114 led@28 {
115 label = "red:lan4";
116 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
117 };
118 };
119
120 ath9k-leds {
121 compatible = "gpio-leds";
122
123 wlan {
124 function = LED_FUNCTION_WLAN;
125 color = <LED_COLOR_ID_RED>;
126 gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
127 linux,default-trigger = "phy0tpt";
128 };
129 };
130 };
131
132 &ehci {
133 status = "okay";
134 };
135
136 &ethernet1 {
137 status = "okay";
138
139 nvmem-cells = <&macaddr_cfe_6a0 0>;
140 nvmem-cell-names = "mac-address";
141
142 phy-mode = "mii";
143
144 fixed-link {
145 speed = <100>;
146 full-duplex;
147 };
148 };
149
150 &iudma {
151 status = "okay";
152 };
153
154 &ohci {
155 status = "okay";
156 };
157
158 &pci {
159 status = "okay";
160
161 ath9k: wifi@1,0 {
162 compatible = "pci168c,0029";
163 reg = <0x0800 0 0 0 0>;
164
165 qca,no-eeprom;
166
167 nvmem-cells = <&macaddr_cfe_6a0 1>;
168 nvmem-cell-names = "mac-address";
169
170 #gpio-cells = <2>;
171 gpio-controller;
172 };
173 };
174
175 &pflash {
176 status = "okay";
177
178 partitions {
179 compatible = "fixed-partitions";
180 #address-cells = <1>;
181 #size-cells = <1>;
182
183 partition@0 {
184 label = "cfe";
185 reg = <0x000000 0x020000>;
186 read-only;
187
188 nvmem-layout {
189 compatible = "fixed-layout";
190 #address-cells = <1>;
191 #size-cells = <1>;
192
193 macaddr_cfe_6a0: macaddr@6a0 {
194 compatible = "mac-base";
195 reg = <0x6a0 0x6>;
196 #nvmem-cell-cells = <1>;
197 };
198 };
199 };
200
201 partition@20000 {
202 label = "firmware";
203 reg = <0x020000 0xec0000>;
204 compatible = "brcm,bcm963xx-imagetag";
205 };
206
207 cal_data: partition@ee0000 {
208 label = "cal_data";
209 reg = <0xee0000 0x100000>;
210 read-only;
211
212 nvmem-layout {
213 compatible = "fixed-layout";
214 #address-cells = <1>;
215 #size-cells = <1>;
216
217 cal_data_1e000: cal@1e000 {
218 reg = <0x1e000 0xeb8>;
219 };
220 };
221 };
222
223 partition@fe0000 {
224 label = "nvram";
225 reg = <0xfe0000 0x020000>;
226 };
227 };
228 };
229
230 &uart0 {
231 status = "okay";
232 };
233
234 &usbh {
235 status = "okay";
236 };