65b4480ee1e7f36807543413e440ac7322f165c9
[openwrt/staging/chunkeey.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 compatible = "huawei,hg556a-b", "brcm,bcm6358";
7 model = "Huawei EchoLife HG556a (version B)";
8
9 aliases {
10 led-boot = &power_red;
11 led-failsafe = &power_red;
12 led-running = &power_red;
13 led-upgrade = &power_red;
14
15 led-dsl = &dsl_red;
16 led-internet = &dsl_red;
17 led-usb = &hspa_red;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23
24 help {
25 label = "help";
26 gpios = <&pinctrl 8 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_HELP>;
28 debounce-interval = <60>;
29 };
30
31 wlan {
32 label = "wlan";
33 gpios = <&pinctrl 9 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WLAN>;
35 debounce-interval = <60>;
36 };
37
38 restart {
39 label = "restart";
40 gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 debounce-interval = <60>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_CONFIG>;
49 debounce-interval = <60>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55
56 led@0 {
57 label = "red:message";
58 gpios = <&pinctrl 0 GPIO_ACTIVE_LOW>;
59 };
60
61 hspa_red: led@1 {
62 label = "red:hspa";
63 gpios = <&pinctrl 1 GPIO_ACTIVE_LOW>;
64 };
65
66 dsl_red: led@2 {
67 label = "red:dsl";
68 gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
69 };
70
71 power_red: led@3 {
72 label = "red:power";
73 gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
74 };
75
76 led@6 {
77 label = "all";
78 gpios = <&pinctrl 6 GPIO_ACTIVE_LOW>;
79 default-state = "on";
80 };
81
82 led@12 {
83 label = "green:lan1";
84 gpios = <&pinctrl 12 GPIO_ACTIVE_LOW>;
85 };
86
87 led@13 {
88 label = "red:lan1";
89 gpios = <&pinctrl 13 GPIO_ACTIVE_LOW>;
90 };
91
92 led@15 {
93 label = "green:lan2";
94 gpios = <&pinctrl 15 GPIO_ACTIVE_LOW>;
95 };
96
97 led@22 {
98 label = "red:lan2";
99 gpios = <&pinctrl 22 GPIO_ACTIVE_LOW>;
100 };
101
102 led@23 {
103 label = "green:lan3";
104 gpios = <&pinctrl 23 GPIO_ACTIVE_LOW>;
105 };
106
107 led@26 {
108 label = "red:lan3";
109 gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
110 };
111
112 led@27 {
113 label = "green:lan4";
114 gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
115 };
116
117 led@28 {
118 label = "red:lan4";
119 gpios = <&pinctrl 28 GPIO_ACTIVE_LOW>;
120 };
121 };
122
123 ath9k-fixup {
124 compatible = "brcm,ath9k-fixup";
125 reg = <0x30000000 0x8000000>;
126
127 pci-dev = <1>;
128
129 mtd-mac-address = <&cfe 0x6a0>;
130 mtd-mac-address-increment = <1>;
131
132 ath,eeprom = <&cal_data 0x1e000>;
133 ath,endian-check;
134 ath,led-pin = <2>;
135 ath,led-active-high;
136 };
137 };
138
139 &ehci {
140 status = "okay";
141 };
142
143 &ohci {
144 status = "okay";
145 };
146
147 &pci {
148 status = "okay";
149 };
150
151 &pflash {
152 status = "okay";
153
154 partitions {
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 cfe: partition@0 {
160 label = "cfe";
161 reg = <0x000000 0x020000>;
162 read-only;
163 };
164
165 partition@20000 {
166 label = "firmware";
167 reg = <0x020000 0xec0000>;
168 compatible = "brcm,bcm963xx-imagetag";
169 };
170
171 cal_data: partition@ee0000 {
172 label = "cal_data";
173 reg = <0xee0000 0x100000>;
174 read-only;
175 };
176
177 partition@fe0000 {
178 label = "nvram";
179 reg = <0xfe0000 0x020000>;
180 };
181 };
182 };
183
184 &uart0 {
185 status = "okay";
186 };
187
188 &usbh {
189 status = "okay";
190 };