lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV2B.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "BTHOMEHUBV2B - BT Home Hub 2B"; /* SoC: Lantiq Danube-S PSB 50712 @ 333MHz V1.3/1.5 */
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power_orange;
13 failsafe = &power_red;
14 running = &power_blue;
15
16 internet = &broadband_blue;
17 wifi = &wireless_blue;
18 };
19 };
20
21 memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */
22 reg = <0x0 0x4000000>;
23 };
24
25 sram@1F000000 {
26 vmmc@107000 {
27 status = "okay";
28 gpios = <&gpio 31 0>;
29 };
30 };
31
32 fpi@10000000 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 localbus@0 {
36 #address-cells = <2>;
37 #size-cells = <1>;
38 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
39 1 0 0x4000000 0x4000010>; /* addsel1 */
40 compatible = "lantiq,localbus", "simple-bus";
41
42 nor-boot@0 { /* NOR Flash: Spansion S29AL004D 512KB */
43 compatible = "lantiq,nor"; /* "AMD AM29LV400BB" compatible on 3.3.8 */
44 lantiq,cs = <0>;
45 bank-width = <2>;
46 reg = <0 0x0 0x80000>;
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "uboot";
57 reg = <0x00000 0x40000>; /* 256KB */
58 };
59
60 partition@40000 {
61 label = "uboot_env";
62 reg = <0x40000 0x10000>; /* 64KB */
63 };
64
65 partition@50000 {
66 label = "rg_conf_1";
67 reg = <0x50000 0x10000>;
68 };
69
70 partition@60000 {
71 label = "rg_conf_2";
72 reg = <0x60000 0x10000>;
73 };
74
75 partition@70000 {
76 label = "rg_conf_factory";
77 reg = <0x70000 0x10000>;
78 };
79 };
80 };
81
82 nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
83 compatible = "gen_nand", "lantiq,nand-xway";
84 lantiq,cs = <1>;
85 bank-width = <2>;
86 reg = <1 0x0 0x2000000 >;
87 #address-cells = <1>;
88 #size-cells = <1>;
89 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 ath9k_cal: partition@0 {
97 label = "art"; /* Atheros 9160 wifi b/g/n radio EEPROM */
98 reg = <0x00000 0x4000>;
99 read-only;
100 };
101
102 partition@4000 {
103 label = "kernel";
104 reg = <0x4000 0x200000>;
105 };
106
107 partition@164000 {
108 label = "ubi";
109 reg = <0x204000 0x1DFC000>;
110 };
111 };
112 };
113
114
115 ath9k_eep {
116 compatible = "ath9k,eeprom";
117 ath,eep-flash = <&ath9k_cal 0x0000>;
118 ath,mac-increment = <1>;
119 ath,pci-slot = <14>;
120 ath,eep-endian;
121 };
122 };
123
124 gpio: pinmux@E100B10 {
125 compatible = "lantiq,pinctrl-xway";
126 pinctrl-names = "default";
127 pinctrl-0 = <&state_default>;
128
129 #gpio-cells = <2>;
130 gpio-controller;
131 reg = <0xE100B10 0xA0>;
132
133 state_default: pinmux {
134 stp {
135 lantiq,groups = "stp";
136 lantiq,function = "stp";
137 lantiq,output = <1>;
138 lantiq,open-drain = <0>;
139 lantiq,pull = <0>;
140 };
141 nand_out {
142 lantiq,groups = "nand cle", "nand ale";
143 lantiq,function = "ebu";
144 lantiq,output = <1>;
145 lantiq,open-drain = <0>;
146 lantiq,pull = <0>;
147 };
148 nand_cs1 {
149 lantiq,groups = "nand cs1";
150 lantiq,function = "ebu";
151 lantiq,open-drain = <0>;
152 lantiq,pull = <0>;
153 };
154 exin {
155 lantiq,groups = "exin1";
156 lantiq,function = "exin";
157 };
158 pci_in {
159 lantiq,groups = "req1";
160 lantiq,function = "pci";
161 lantiq,output = <0>;
162 lantiq,open-drain = <1>;
163 lantiq,pull = <2>;
164 };
165 pci_out {
166 lantiq,groups = "gnt1";
167 lantiq,function = "pci";
168 lantiq,output = <1>;
169 lantiq,open-drain = <0>;
170 lantiq,pull = <0>;
171 };
172
173 pci_rst {
174 lantiq,pins = "io21";
175 lantiq,output = <1>;
176 lantiq,open-drain = <0>;
177 };
178
179 btn_in {
180 lantiq,pins = "io2", "io15", "io22";
181 lantiq,output = <0>;
182 lantiq,open-drain = <1>;
183 lantiq,pull = <2>;
184 };
185 };
186 };
187
188 etop@E180000 {
189 compatible = "lantiq,etop-xway";
190 reg = <0xE180000 0x40000>;
191 interrupt-parent = <&icu0>;
192 interrupts = <73 78>;
193 phy-mode = "rmii";
194 mac-address = [ 00 11 22 33 44 55 ];
195 };
196
197 ifxhcd@E101000 {
198 status = "okay";
199 };
200
201 stp0: stp@E100BB0 {
202 status = "okay";
203 #gpio-cells = <2>;
204 compatible = "lantiq,gpio-stp-xway";
205 gpio-controller;
206 reg = <0xE100BB0 0x40>;
207
208 lantiq,shadow = <0xfff>;
209 lantiq,groups = <0x3>;
210 };
211
212 pci@E105400 {
213 status = "okay";
214 lantiq,bus-clock = <33333333>;
215 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
216 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
217 gpio-reset = <&gpio 21 0>;
218 req-mask = <0x1>; /* GNT1 */
219 };
220
221 };
222
223 gpio-keys-polled {
224 compatible = "gpio-keys-polled";
225 #address-cells = <1>;
226 #size-cells = <0>;
227 poll-interval = <100>;
228
229 reset {
230 label = "reset";
231 gpios = <&gpio 2 1>;
232 linux,code = <0x198>;
233 };
234 findhandset {
235 label = "findhandset";
236 gpios = <&gpio 15 1>;
237 linux,code = <0x101>;
238 };
239 wps {
240 label = "wps";
241 gpios = <&gpio 22 1>;
242 linux,code = <0x211>;
243 };
244 };
245
246 gpio-leds {
247 compatible = "gpio-leds";
248
249 upgrading-orange {
250 label = "bthomehubv2b:orange:upgrading";
251 gpios = <&stp0 5 0>;
252 };
253
254 phone-orange {
255 label = "bthomehubv2b:orange:phone";
256 gpios = <&stp0 6 0>;
257 };
258 phone-blue {
259 label = "bthomehubv2b:blue:phone";
260 gpios = <&stp0 7 0>;
261 };
262
263 wireless-orange {
264 label = "bthomehubv2b:orange:wireless";
265 gpios = <&stp0 8 0>;
266 };
267 wireless_blue: wireless-blue {
268 label = "bthomehubv2b:blue:wireless";
269 gpios = <&stp0 9 0>;
270 };
271
272 broadband-red {
273 label = "bthomehubv2b:red:broadband";
274 gpios = <&stp0 10 0>;
275 };
276 broadband-orange {
277 label = "bthomehubv2b:orange:broadband";
278 gpios = <&stp0 11 0>;
279 };
280 broadband_blue: broadband-blue {
281 label = "bthomehubv2b:blue:broadband";
282 gpios = <&stp0 12 0>;
283 };
284
285 power_red: power-red {
286 label = "bthomehubv2b:red:power";
287 gpios = <&stp0 13 0>;
288 };
289 power_orange: power-orange {
290 label = "bthomehubv2b:orange:power";
291 gpios = <&stp0 14 0>;
292 default-state = "keep";
293 };
294 power_blue: power-blue {
295 label = "bthomehubv2b:blue:power";
296 gpios = <&stp0 15 0>;
297 };
298 };
299 };
300