bmips: add experimental PCI/PCIe support
[openwrt/staging/ldir.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
124 &ehci {
125 status = "okay";
126 };
127
128 &ohci {
129 status = "okay";
130 };
131
132 &pci {
133 status = "okay";
134 };
135
136 &pflash {
137 status = "okay";
138
139 partitions {
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 cfe: partition@0 {
145 label = "cfe";
146 reg = <0x000000 0x020000>;
147 read-only;
148 };
149
150 partition@20000 {
151 label = "firmware";
152 reg = <0x020000 0xec0000>;
153 compatible = "brcm,bcm963xx-imagetag";
154 };
155
156 cal_data: partition@ee0000 {
157 label = "cal_data";
158 reg = <0xee0000 0x100000>;
159 read-only;
160 };
161
162 partition@fe0000 {
163 label = "nvram";
164 reg = <0xfe0000 0x020000>;
165 };
166 };
167 };
168
169 &uart0 {
170 status = "okay";
171 };
172
173 &usbh {
174 status = "okay";
175 };