lantiq: remove "init" kernel command line parameter from bootargs
[openwrt/openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV5A.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "BTHOMEHUBV5A - BT Home Hub 5A";
9
10 aliases {
11 led-boot = &power_green;
12 led-failsafe = &power_red;
13 led-running = &power_blue;
14
15 led-internet = &broadband_blue;
16 led-wifi = &wireless_blue;
17 };
18
19 memory@0 {
20 reg = <0x0 0x8000000>;
21 };
22
23 fpi@10000000 {
24 localbus@0 {
25 nand-parts@0 {
26 compatible = "gen_nand", "lantiq,nand-xway";
27 lantiq,cs = <1>;
28 bank-width = <2>;
29 reg = <0x1 0x0 0x2000000>;
30 #address-cells = <1>;
31 #size-cells = <1>;
32 nand-on-flash-bbt;
33 nand-ecc-strength = <3>;
34 nand-ecc-step-size = <256>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0xa0000>;
44 read-only;
45 };
46 partition@a0000 {
47 label = "uboot-env";
48 reg = <0xa0000 0x20000>;
49 read-only;
50 };
51 partition@c0000 {
52 label = "unused";
53 reg = <0xc0000 0x40000>;
54 };
55 partition@100000 {
56 label = "ubi";
57 reg = <0x100000 0x7e80000>;
58 };
59 /*
60 * last 512 KiB are for the bad block table, not writable
61 */
62 };
63 };
64 };
65
66 gpio: pinmux@E100B10 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&state_default>;
69
70 state_default: pinmux {
71 mdio {
72 lantiq,groups = "mdio";
73 lantiq,function = "mdio";
74 };
75 pci_rst {
76 lantiq,pins = "io21";
77 lantiq,output = <1>;
78 lantiq,open-drain;
79 };
80 pcie_rst {
81 lantiq,pins = "io38";
82 lantiq,pull = <0>;
83 lantiq,output = <1>;
84 lantiq,open-drain;
85 };
86 usb_vbus {
87 lantiq,pins = "io33";
88 lantiq,pull = <0>;
89 lantiq,open-drain = <0>;
90 lantiq,output = <1>;
91 };
92 nand_out {
93 lantiq,groups = "nand cle", "nand ale";
94 lantiq,function = "ebu";
95 lantiq,output = <1>;
96 lantiq,open-drain = <0>;
97 lantiq,pull = <0>;
98 };
99 nand_cs1 {
100 lantiq,groups = "nand cs1";
101 lantiq,function = "ebu";
102 lantiq,open-drain = <0>;
103 lantiq,pull = <0>;
104 };
105 };
106 };
107
108 ifxhcd@E101000 {
109 status = "okay";
110 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
111 };
112 };
113
114 gphy-xrx200 {
115 compatible = "lantiq,phy-xrx200";
116 firmware1 = "lantiq/vr9_phy11g_a1x.bin"; /*VR9 1.1*/
117 firmware2 = "lantiq/vr9_phy11g_a2x.bin"; /*VR9 1.2*/
118 phys = [ 00 01 ];
119 };
120
121 gpio-keys-polled {
122 compatible = "gpio-keys-polled";
123 #address-cells = <1>;
124 #size-cells = <0>;
125 poll-interval = <100>;
126
127 reset {
128 label = "reset";
129 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
131 };
132
133 wps {
134 label = "wps";
135 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
136 linux,code = <KEY_WPS_BUTTON>;
137 };
138
139 restart {
140 label = "restart";
141 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
142 linux,code = <KEY_POWER>;
143 };
144 };
145
146 gpio-leds {
147 compatible = "gpio-leds";
148
149 /* broadband-* is a single RGB led */
150 broadband-red {
151 label = "bthomehubv5a:red:broadband";
152 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
153 };
154 broadband-green {
155 label = "bthomehubv5a:green:broadband";
156 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
157 };
158 broadband_blue: broadband-blue {
159 label = "bthomehubv5a:blue:broadband";
160 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
161 };
162
163 /* wireless-* is a single RGB led */
164 wireless-red {
165 label = "bthomehubv5a:red:wireless";
166 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
167 };
168 wireless-green {
169 label = "bthomehubv5a:green:wireless";
170 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
171 };
172 wireless_blue: wireless-blue {
173 label = "bthomehubv5a:blue:wireless";
174 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
175 };
176
177 /* power-* is a single RGB led */
178 power_red: power-red {
179 label = "bthomehubv5a:red:power";
180 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
181 };
182 power_green: power-green {
183 label = "bthomehubv5a:green:power";
184 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
185 default-state = "keep";
186 };
187 power_blue: power-blue {
188 label = "bthomehubv5a:blue:power";
189 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
190 };
191
192 dimmed {
193 label = "dimmed";
194 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
195 };
196 };
197 };
198
199 &pci0 {
200 status = "okay";
201 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
202
203 wifi@168c,002d {
204 compatible = "pci168c,002d";
205 reg = <0x7000 0 0 0 0>;
206 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
207 qca,disable-5ghz;
208 };
209 };
210
211 &eth0 {
212 lan: interface@0 {
213 compatible = "lantiq,xrx200-pdi";
214 #address-cells = <1>;
215 #size-cells = <0>;
216 reg = <0>;
217 lantiq,switch;
218
219 ethernet@0 {
220 compatible = "lantiq,xrx200-pdi-port";
221 reg = <0>;
222 phy-mode = "rgmii";
223 phy-handle = <&phy0>;
224 };
225 ethernet@1 {
226 compatible = "lantiq,xrx200-pdi-port";
227 reg = <1>;
228 phy-mode = "rgmii";
229 phy-handle = <&phy1>;
230 };
231 ethernet@2 {
232 compatible = "lantiq,xrx200-pdi-port";
233 reg = <2>;
234 phy-mode = "gmii";
235 phy-handle = <&phy11>;
236 };
237 ethernet@4 {
238 compatible = "lantiq,xrx200-pdi-port";
239 reg = <4>;
240 phy-mode = "gmii";
241 phy-handle = <&phy13>;
242 };
243 };
244
245 wan: interface@1 {
246 compatible = "lantiq,xrx200-pdi";
247 #address-cells = <1>;
248 #size-cells = <0>;
249 reg = <1>;
250 lantiq,wan;
251
252 ethernet@5 {
253 compatible = "lantiq,xrx200-pdi-port";
254 reg = <5>;
255 phy-mode = "rgmii";
256 phy-handle = <&phy5>;
257 };
258 };
259
260 mdio@0 {
261 #address-cells = <1>;
262 #size-cells = <0>;
263 compatible = "lantiq,xrx200-mdio";
264
265 phy0: ethernet-phy@0 {
266 reg = <0x0>;
267 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
268 };
269 phy1: ethernet-phy@1 {
270 reg = <0x1>;
271 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
272 };
273 phy5: ethernet-phy@5 {
274 reg = <0x5>;
275 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
276 };
277 phy11: ethernet-phy@11 {
278 reg = <0x11>;
279 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
280 };
281 phy13: ethernet-phy@13 {
282 reg = <0x13>;
283 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
284 };
285 };
286 };