lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV452CQW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV452CQW - Arcor 801";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power_blue;
13 failsafe = &power_red;
14 running = &power_blue;
15
16 internet = &dsl_blue;
17 usb = &usb;
18 wifi = &wifi;
19 };
20 };
21
22 memory@0 {
23 reg = <0x0 0x2000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 gpios = <&gpio 31 0
30 &gpiomm 7 0>;
31 };
32 };
33
34 fpi@10000000 {
35 localbus@0 {
36 nor-boot@0 {
37 compatible = "lantiq,nor";
38 bank-width = <2>;
39 reg = <0 0x0 0x400000>;
40 #address-cells = <1>;
41 #size-cells = <1>;
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "uboot";
50 reg = <0x00000 0x10000>;
51 read-only;
52 };
53
54 partition@10000 {
55 label = "uboot_env";
56 reg = <0x10000 0x10000>;
57 read-only;
58 };
59
60 partition@20000 {
61 label = "firmware";
62 reg = <0x20000 0x3d0000>;
63 };
64
65 partition@3f0000 {
66 label = "boardconfig";
67 reg = <0x3f0000 0x10000>;
68 read-only;
69 };
70 };
71 };
72
73 mac_addr {
74 compatible = "lantiq,eth-mac";
75 reg = <0 0x3f0016 0x6>;
76 mac-increment = <2>;
77 };
78
79 ath5k_eep {
80 compatible = "ath5k,eeprom";
81 reg = <0 0x3f0400 0x1000>;
82 ath,mac-offset = <0>;
83 ath,eep-swap;
84 };
85 gpiomm: gpiomm@4000000 {
86 compatible = "lantiq,gpio-mm";
87 reg = <1 0x0 0x10>;
88 #address-cells = <1>;
89 #size-cells = <1>;
90 #gpio-cells = <2>;
91 gpio-controller;
92 lantiq,shadow = <0x77f>;
93 };
94 };
95
96 gpio: pinmux@E100B10 {
97 pinctrl-names = "default";
98 pinctrl-0 = <&state_default>;
99
100 state_default: pinmux {
101 ebu {
102 lantiq,groups = "ebu cs1";
103 lantiq,function = "ebu";
104 };
105 pci_in {
106 lantiq,groups = "req1";
107 lantiq,function = "pci";
108 lantiq,open-drain = <1>;
109 lantiq,pull = <2>;
110 lantiq,output = <0>;
111 };
112 pci_out {
113 lantiq,groups = "gnt1";
114 lantiq,function = "pci";
115 lantiq,output = <1>;
116 };
117 pci_rst {
118 lantiq,pins = "io21";
119 lantiq,pull = <0>;
120 lantiq,output = <1>;
121 };
122 leds {
123 lantiq,pins = "io3", "io5", "io6", "io7", "io9";
124 lantiq,output = <1>;
125 };
126 };
127 };
128
129 ifxhcd@E101000 {
130 status = "okay";
131 gpios = <&gpio 28 0>;
132 };
133
134 etop@E180000 {
135 phy-mode = "rmii";
136 };
137
138 pci@E105400 {
139 status = "okay";
140 lantiq,external-clock;
141 gpio-reset = <&gpio 21 0>;
142 };
143
144 };
145
146 /*
147 #define ARV452CPW_SWITCH_RESET 110
148 */
149 gpio-keys-polled {
150 compatible = "gpio-keys-polled1";
151 #address-cells = <1>;
152 #size-cells = <0>;
153 poll-interval = <100>;
154
155 wps {
156 label = "wps";
157 gpios = <&gpio 11 1>;
158 linux,code = <0x101>;
159 };
160 restart {
161 label = "restart";
162 gpios = <&gpio 12 1>;
163 linux,code = <0x110>;
164 };
165 reset {
166 label = "reset";
167 gpios = <&gpio 28 1>;
168 linux,code = <0x198>;
169 };
170 };
171
172 gpio-leds {
173 compatible = "gpio-leds";
174 power_blue: power0 {
175 label = "arv452cqw:blue:power";
176 gpios = <&gpio 3 1>;
177 default-state = "keep";
178 };
179 dsl_blue: dsl {
180 label = "arv452cqw:blue:dsl";
181 gpios = <&gpio 4 1>;
182 };
183 isdn {
184 label = "arv452cqw:blue:isdn";
185 gpios = <&gpio 5 1>;
186 };
187 power_red: power1 {
188 label = "arv452cqw:red:power";
189 gpios = <&gpio 6 1>;
190 };
191 wps {
192 label = "arv452cqw:blue:wps";
193 gpios = <&gpio 7 1>;
194 };
195 wps1 {
196 label = "arv452cqw:yellow:wps";
197 gpios = <&gpio 9 1>;
198 };
199 fxs1 {
200 label = "arv452cqw:blue:telefon1";
201 gpios = <&gpiomm 0 1>;
202 };
203 fxs2 {
204 label = "arv452cqw:blue:telefon2";
205 gpios = <&gpiomm 1 1>;
206 };
207 wps2 {
208 label = "arv452cqw:red:wps";
209 gpios = <&gpiomm 2 1>;
210 };
211 fxo {
212 label = "arv452cqw:blue:line";
213 gpios = <&gpiomm 3 1>;
214 };
215 voice {
216 label = "arv452cqw:blue:sprache";
217 gpios = <&gpiomm 4 1>;
218 };
219 usb: usb {
220 label = "arv452cqw:blue:usb";
221 gpios = <&gpiomm 5 1>;
222 };
223 wifi: wifi {
224 label = "arv452cqw:blue:wlan";
225 gpios = <&gpiomm 6 1>;
226 };
227 /*
228 internet blue and internet red are missing
229 dsl2 and dsl3 are not referenced in manual
230 */
231 dsl2 {
232 label = "arv452cqw:yellow:dsl";
233 gpios = <&gpiomm 8 1>;
234 };
235 dsl3 {
236 label = "arv452cqw:red:dsl";
237 gpios = <&gpiomm 9 1>;
238 };
239 };
240 };