tools: e2fsprogs: bypass libuuid check
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_bt_homehub-v5a.dts
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
6
7 / {
8 compatible = "bt,homehub-v5a", "lantiq,xway", "lantiq,vr9";
9 model = "BT Home Hub 5A";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_red;
18 led-running = &power_blue;
19 led-upgrade = &power_blue;
20
21 led-dsl = &broadband_blue;
22 led-wifi = &wireless_blue;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x8000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45
46 restart {
47 label = "restart";
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_POWER2>;
50 };
51 };
52
53 leds {
54 compatible = "gpio-leds";
55
56 /* broadband-* is a single RGB led */
57 broadband-red {
58 label = "red:broadband";
59 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
60 };
61 broadband-green {
62 label = "green:broadband";
63 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
64 };
65 broadband_blue: broadband-blue {
66 label = "blue:broadband";
67 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
68 };
69
70 /* wireless-* is a single RGB led */
71 wireless-red {
72 label = "red:wireless";
73 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
74 };
75 wireless-green {
76 label = "green:wireless";
77 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
78 };
79 wireless_blue: wireless-blue {
80 label = "blue:wireless";
81 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
82 };
83
84 /* power-* is a single RGB led */
85 power_red: power-red {
86 function = LED_FUNCTION_POWER;
87 color = <LED_COLOR_ID_RED>;
88 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
89 };
90 power_green: power-green {
91 function = LED_FUNCTION_POWER;
92 color = <LED_COLOR_ID_GREEN>;
93 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
94 default-state = "keep";
95 };
96 power_blue: power-blue {
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_BLUE>;
99 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
100 };
101
102 dimmed {
103 label = "dimmed";
104 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
105 };
106 };
107
108 usb_vbus: regulator-usb-vbus {
109 compatible = "regulator-fixed";
110
111 regulator-name = "USB_VBUS";
112
113 regulator-min-microvolt = <5000000>;
114 regulator-max-microvolt = <5000000>;
115
116 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
117 enable-active-high;
118 };
119 };
120
121 &gphy0 {
122 lantiq,gphy-mode = <GPHY_MODE_GE>;
123 };
124
125 &gphy1 {
126 lantiq,gphy-mode = <GPHY_MODE_GE>;
127 };
128
129 &gpio {
130 pinctrl-names = "default";
131 pinctrl-0 = <&state_default>;
132
133 state_default: pinmux {
134 pci_rst {
135 lantiq,pins = "io21";
136 lantiq,output = <1>;
137 lantiq,open-drain;
138 };
139 pcie_rst {
140 lantiq,pins = "io38";
141 lantiq,pull = <0>;
142 lantiq,output = <1>;
143 lantiq,open-drain;
144 };
145 usb_vbus {
146 lantiq,pins = "io33";
147 lantiq,pull = <0>;
148 lantiq,open-drain = <0>;
149 lantiq,output = <1>;
150 };
151 };
152 };
153
154 &gswip {
155 pinctrl-0 = <&mdio_pins>;
156 pinctrl-names = "default";
157 };
158
159 &gswip_mdio {
160 phy0: ethernet-phy@0 {
161 reg = <0x0>;
162 };
163 phy1: ethernet-phy@1 {
164 reg = <0x1>;
165 };
166 phy5: ethernet-phy@5 {
167 reg = <0x5>;
168 };
169 phy11: ethernet-phy@11 {
170 reg = <0x11>;
171 };
172 phy13: ethernet-phy@13 {
173 reg = <0x13>;
174 };
175 };
176
177 &gswip_ports {
178 port@0 {
179 reg = <0>;
180 label = "lan3";
181 phy-mode = "rgmii-id";
182 tx-internal-delay-ps = <1500>;
183 rx-internal-delay-ps = <1500>;
184 phy-handle = <&phy0>;
185 };
186 port@1 {
187 reg = <1>;
188 label = "lan4";
189 phy-mode = "rgmii-id";
190 tx-internal-delay-ps = <1500>;
191 rx-internal-delay-ps = <1500>;
192 phy-handle = <&phy1>;
193 };
194 port@2 {
195 reg = <2>;
196 label = "lan2";
197 phy-mode = "internal";
198 phy-handle = <&phy11>;
199 };
200 port@4 {
201 reg = <4>;
202 label = "lan1";
203 phy-mode = "internal";
204 phy-handle = <&phy13>;
205 };
206 port@5 {
207 reg = <5>;
208 label = "wan";
209 phy-mode = "rgmii-id";
210 tx-internal-delay-ps = <1500>;
211 rx-internal-delay-ps = <1500>;
212 phy-handle = <&phy5>;
213 };
214 };
215
216 &localbus {
217 flash@1 {
218 compatible = "lantiq,nand-xway";
219 lantiq,cs = <1>;
220 bank-width = <2>;
221 reg = <0x1 0x0 0x2000000>;
222
223 pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
224 pinctrl-names = "default";
225
226 nand-on-flash-bbt;
227 nand-ecc-strength = <3>;
228 nand-ecc-step-size = <256>;
229 nand-use-soft-ecc-engine;
230
231 partitions {
232 compatible = "fixed-partitions";
233 #address-cells = <1>;
234 #size-cells = <1>;
235
236 partition@0 {
237 label = "u-boot";
238 reg = <0x0 0xa0000>;
239 read-only;
240 };
241 partition@a0000 {
242 label = "u-boot-env";
243 reg = <0xa0000 0x20000>;
244 read-only;
245 };
246 partition@c0000 {
247 label = "unused";
248 reg = <0xc0000 0x40000>;
249 };
250 partition@100000 {
251 label = "ubi";
252 reg = <0x100000 0x7e80000>;
253 };
254 /*
255 * last 512 KiB are for the bad block table, not writable
256 */
257 };
258 };
259 };
260
261 &pci0 {
262 status = "okay";
263 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
264
265 wifi@168c,002d {
266 compatible = "pci168c,002d";
267 reg = <0x7000 0 0 0 0>;
268 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
269 ieee80211-freq-limit = <2402000 2482000>;
270 };
271 };
272
273 &usb_phy0 {
274 status = "okay";
275 };
276
277 &usb0 {
278 status = "okay";
279 vbus-supply = <&usb_vbus>;
280 };