lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / BTHOMEHUBV3A.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6 model = "BTHOMEHUBV3A - BT Home Hub 3A"; /* SoC: Lantiq ar9 @ 333MHz */
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 nand-parts@0 { /* NAND Flash: Samsung K9F5608U0D-JIB0 32MB */
43 compatible = "gen_nand", "lantiq,nand-xway";
44 lantiq,cs = <1>;
45 bank-width = <2>;
46 reg = <1 0x0 0x2000000 >;
47 #address-cells = <1>;
48 #size-cells = <1>;
49 req-mask = <0x1>; /* PCI request lines to mask during NAND access */
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "preboot";
58 reg = <0x00000 0x8000>;
59 read-only;
60 };
61 partition@8000 {
62 label = "u-boot";
63 reg = <0x8000 0x05c000>;
64 read-only;
65 };
66 partition@64000 {
67 label = "uboot-config";
68 reg = <0x64000 0x004000>;
69 };
70 ath9k_cal: partition@68000 {
71 label = "art-copy";
72 reg = <0x68000 0x004000>;
73 };
74 partition@6c000 {
75 label = "kernel";
76 reg = <0x6c000 0x200000>;
77 };
78 partition@26c000 {
79 label = "ubi";
80 reg = <0x26c000 0x1d94000>;
81 };
82 };
83 };
84
85 ath9k_eep {
86 compatible = "ath9k,eeprom";
87 ath,eep-flash = <&ath9k_cal 0x0000>;
88 ath,mac-offset = <0x10c>;
89 ath,pci-slot = <14>;
90 ath,eep-endian;
91 };
92 };
93
94 gpio: pinmux@E100B10 {
95 compatible = "lantiq,pinctrl-xr9";
96 pinctrl-names = "default";
97 pinctrl-0 = <&state_default>;
98
99 #gpio-cells = <2>;
100 gpio-controller;
101 reg = <0xE100B10 0xA0>;
102
103 state_default: pinmux {
104 nand_out {
105 lantiq,groups = "nand cle", "nand ale";
106 lantiq,function = "ebu";
107 lantiq,output = <1>;
108 lantiq,open-drain = <0>;
109 lantiq,pull = <0>;
110 };
111 nand_cs1 {
112 lantiq,groups = "nand cs1";
113 lantiq,function = "ebu";
114 lantiq,open-drain = <0>;
115 lantiq,pull = <0>;
116 };
117
118 pci_in {
119 lantiq,groups = "req1";
120 lantiq,function = "pci";
121 lantiq,output = <0>;
122 lantiq,open-drain = <1>;
123 lantiq,pull = <2>;
124 };
125 pci_out {
126 lantiq,groups = "gnt1";
127 lantiq,function = "pci";
128 lantiq,output = <1>;
129 lantiq,open-drain = <0>;
130 lantiq,pull = <0>;
131 };
132
133 pci_rst {
134 lantiq,pins = "io21";
135 lantiq,output = <1>;
136 lantiq,open-drain = <0>;
137 };
138 };
139 };
140
141 etop@E180000 {
142 phy-mode = "rgmii";
143 };
144
145 ifxhcd@E101000 {
146 status = "okay";
147 gpios = <&gpio 33 0>;
148 };
149
150 pci@E105400 {
151 status = "okay";
152 gpio-reset = <&gpio 21 0>;
153 };
154
155 };
156
157 gpio-keys-polled {
158 compatible = "gpio-keys-polled";
159 #address-cells = <1>;
160 #size-cells = <0>;
161 poll-interval = <100>;
162 reset {
163 label = "reset";
164 gpios = <&gpio 54 1>;
165 linux,code = <0x198>;
166 };
167 restart {
168 label = "restart";
169 gpios = <&gpio 52 1>;
170 linux,code = <0x198>;
171 };
172 wps {
173 label = "wps";
174 gpios = <&gpio 53 1>;
175 linux,code = <0x211>;
176 };
177 };
178
179 gpio-leds {
180 compatible = "gpio-leds";
181
182 wireless-red {
183 label = "bthomehubv3a:red:wireless";
184 gpios = <&gpio 2 1>;
185 };
186 wireless-orange {
187 label = "bthomehubv3a:orange:wireless";
188 gpios = <&gpio 6 1>;
189 };
190 wireless_blue: wireless-blue {
191 label = "bthomehubv3a:blue:wireless";
192 gpios = <&gpio 9 1>;
193 };
194
195 broadband-red {
196 label = "bthomehubv3a:red:broadband";
197 gpios = <&gpio 11 1>;
198 };
199 broadband-orange {
200 label = "bthomehubv3a:orange:broadband";
201 gpios = <&gpio 0 1>;
202 };
203 broadband_blue: broadband-blue {
204 label = "bthomehubv3a:blue:broadband";
205 gpios = <&gpio 12 1>;
206 };
207
208 power_red: power-red {
209 label = "bthomehubv3a:red:power";
210 gpios = <&gpio 14 1>;
211 };
212 power_orange: power-orange {
213 label = "bthomehubv3a:orange:power";
214 gpios = <&gpio 5 1>;
215 default-state = "keep";
216 };
217 power_blue: power-blue {
218 label = "bthomehubv3a:blue:power";
219 gpios = <&gpio 1 1>;
220 };
221 };
222 };
223