bmips: add new target
[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 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 memory@0 {
21 device_type = "memory";
22 reg = <0x00000000 0x04000000>;
23 };
24
25 keys {
26 compatible = "gpio-keys-polled";
27 poll-interval = <20>;
28
29 help {
30 label = "help";
31 gpios = <&pinctrl 8 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_HELP>;
33 debounce-interval = <60>;
34 };
35
36 wlan {
37 label = "wlan";
38 gpios = <&pinctrl 9 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_WLAN>;
40 debounce-interval = <60>;
41 };
42
43 restart {
44 label = "restart";
45 gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 debounce-interval = <60>;
48 };
49
50 reset {
51 label = "reset";
52 gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_CONFIG>;
54 debounce-interval = <60>;
55 };
56 };
57
58 leds {
59 compatible = "gpio-leds";
60
61 led@0 {
62 label = "red:message";
63 gpios = <&pinctrl 0 GPIO_ACTIVE_LOW>;
64 };
65
66 hspa_red: led@1 {
67 label = "red:hspa";
68 gpios = <&pinctrl 1 GPIO_ACTIVE_LOW>;
69 };
70
71 dsl_red: led@2 {
72 label = "red:dsl";
73 gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>;
74 };
75
76 power_red: led@3 {
77 label = "red:power";
78 gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>;
79 };
80
81 led@6 {
82 label = "all";
83 gpios = <&pinctrl 6 GPIO_ACTIVE_LOW>;
84 default-state = "on";
85 };
86
87 led@12 {
88 label = "green:lan1";
89 gpios = <&pinctrl 12 GPIO_ACTIVE_LOW>;
90 };
91
92 led@13 {
93 label = "red:lan1";
94 gpios = <&pinctrl 13 GPIO_ACTIVE_LOW>;
95 };
96
97 led@15 {
98 label = "green:lan2";
99 gpios = <&pinctrl 15 GPIO_ACTIVE_LOW>;
100 };
101
102 led@22 {
103 label = "red:lan2";
104 gpios = <&pinctrl 22 GPIO_ACTIVE_LOW>;
105 };
106
107 led@23 {
108 label = "green:lan3";
109 gpios = <&pinctrl 23 GPIO_ACTIVE_LOW>;
110 };
111
112 led@26 {
113 label = "red:lan3";
114 gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
115 };
116
117 led@27 {
118 label = "green:lan4";
119 gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
120 };
121
122 led@28 {
123 label = "red:lan4";
124 gpios = <&pinctrl 28 GPIO_ACTIVE_LOW>;
125 };
126 };
127 };
128
129 &pflash {
130 status = "okay";
131
132 partitions {
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
135 #size-cells = <1>;
136
137 cfe: partition@0 {
138 label = "cfe";
139 reg = <0x000000 0x020000>;
140 read-only;
141 };
142
143 partition@20000 {
144 label = "firmware";
145 reg = <0x020000 0xec0000>;
146 compatible = "brcm,bcm963xx-imagetag";
147 };
148
149 cal_data: partition@ee0000 {
150 label = "cal_data";
151 reg = <0xee0000 0x100000>;
152 read-only;
153 };
154
155 partition@fe0000 {
156 label = "nvram";
157 reg = <0xfe0000 0x020000>;
158 };
159 };
160 };
161
162 &uart0 {
163 status = "okay";
164 };
165
166 &usbh {
167 status = "okay";
168 };