d5f162846d24b55e6726c6d83aa50a84408e78ab
[openwrt/staging/hauke.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 label = "red:power";
69 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70 };
71
72 led@6 {
73 label = "all";
74 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
75 default-state = "on";
76 };
77
78 led@12 {
79 label = "green:lan1";
80 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
81 };
82
83 led@13 {
84 label = "red:lan1";
85 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
86 };
87
88 led@15 {
89 label = "green:lan2";
90 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
91 };
92
93 led@22 {
94 label = "red:lan2";
95 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
96 };
97
98 led@23 {
99 label = "green:lan3";
100 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
101 };
102
103 led@26 {
104 label = "red:lan3";
105 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
106 };
107
108 led@27 {
109 label = "green:lan4";
110 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
111 };
112
113 led@28 {
114 label = "red:lan4";
115 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
116 };
117 };
118
119 ath9k-leds {
120 compatible = "gpio-leds";
121
122 wlan {
123 label = "red:wlan";
124 gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
125 linux,default-trigger = "phy0tpt";
126 };
127 };
128 };
129
130 &ehci {
131 status = "okay";
132 };
133
134 &ethernet1 {
135 status = "okay";
136
137 nvmem-cells = <&macaddr_cfe_6a0>;
138 nvmem-cell-names = "mac-address";
139
140 phy-mode = "mii";
141
142 fixed-link {
143 speed = <100>;
144 full-duplex;
145 };
146 };
147
148 &iudma {
149 status = "okay";
150 };
151
152 &ohci {
153 status = "okay";
154 };
155
156 &pci {
157 status = "okay";
158
159 ath9k: wifi@1,0 {
160 compatible = "pci168c,0029";
161 reg = <0x0800 0 0 0 0>;
162
163 qca,no-eeprom;
164
165 nvmem-cells = <&macaddr_cfe_6a0>;
166 nvmem-cell-names = "mac-address";
167 mac-address-increment = <1>;
168
169 #gpio-cells = <2>;
170 gpio-controller;
171 };
172 };
173
174 &pflash {
175 status = "okay";
176
177 partitions {
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 cfe: partition@0 {
183 label = "cfe";
184 reg = <0x000000 0x020000>;
185 read-only;
186 };
187
188 partition@20000 {
189 label = "firmware";
190 reg = <0x020000 0xec0000>;
191 compatible = "brcm,bcm963xx-imagetag";
192 };
193
194 cal_data: partition@ee0000 {
195 label = "cal_data";
196 reg = <0xee0000 0x100000>;
197 read-only;
198 };
199
200 partition@fe0000 {
201 label = "nvram";
202 reg = <0xfe0000 0x020000>;
203 };
204 };
205 };
206
207 &uart0 {
208 status = "okay";
209 };
210
211 &usbh {
212 status = "okay";
213 };
214
215 &cal_data {
216 compatible = "nvmem-cells";
217 #address-cells = <1>;
218 #size-cells = <1>;
219
220 cal_data_1e000: cal@1e000 {
221 reg = <0x1e000 0xeb8>;
222 };
223 };
224
225 &cfe {
226 compatible = "nvmem-cells";
227 #address-cells = <1>;
228 #size-cells = <1>;
229
230 macaddr_cfe_6a0: macaddr@6a0 {
231 reg = <0x6a0 0x6>;
232 };
233 };