lantiq: move partitions into partion table node
[openwrt/staging/yousong.git] / target / linux / lantiq / dts / ARV4520PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV4520PW - Easybox 800, WAV-281";
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 dsl = &dsl;
17 internet = &internet_blue;
18 usb = &usb;
19 wifi = &wifi;
20 };
21 };
22
23 memory@0 {
24 reg = <0x0 0x2000000>;
25 };
26
27 sram@1F000000 {
28 vmmc@107000 {
29 status = "okay";
30 gpios = <&gpio 31 0
31 &gpiomm 7 0>;
32 };
33 };
34
35 fpi@10000000 {
36 localbus@0 {
37 nor-boot@0 {
38 compatible = "lantiq,nor";
39 bank-width = <2>;
40 reg = <0 0x0 0x800000>;
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "uboot";
51 reg = <0x00000 0x20000>;
52 read-only;
53 };
54
55 partition@20000 {
56 label = "uboot_env";
57 reg = <0x20000 0x10000>;
58 read-only;
59 };
60
61 partition@30000 {
62 label = "firmware";
63 reg = <0x30000 0x3c0000>;
64 };
65
66 partition@7f0000 {
67 label = "boardconfig";
68 reg = <0x3f0000 0x10000>;
69 read-only;
70 };
71 };
72 };
73
74 mac_addr {
75 compatible = "lantiq,eth-mac";
76 reg = <0 0x3f0016 0x6>;
77 mac-increment = <2>;
78 };
79
80 gpiomm: gpiomm@4000000 {
81 compatible = "lantiq,gpio-mm";
82 reg = <1 0x0 0x10 >;
83 #address-cells = <1>;
84 #size-cells = <1>;
85 #gpio-cells = <2>;
86 gpio-controller;
87 lantiq,shadow = <0x400>;
88 };
89 };
90
91 gpio: pinmux@E100B10 {
92 pinctrl-names = "default";
93 pinctrl-0 = <&state_default>;
94
95 state_default: pinmux {
96 ebu {
97 lantiq,groups = "ebu cs1";
98 lantiq,function = "ebu";
99 };
100 pci_in {
101 lantiq,groups = "req1";
102 lantiq,function = "pci";
103 lantiq,open-drain = <1>;
104 lantiq,pull = <2>;
105 lantiq,output = <0>;
106 };
107 pci_out {
108 lantiq,groups = "gnt1";
109 lantiq,function = "pci";
110 lantiq,output = <1>;
111 };
112 pci_rst {
113 lantiq,pins = "io21";
114 lantiq,open-drain = <0>;
115 lantiq,pull = <0>;
116 };
117 };
118 };
119
120 etop@E180000 {
121 phy-mode = "rmii";
122 };
123
124 ifxhcd@E101000 {
125 status = "okay";
126 gpios = <&gpio 28 0>;
127 };
128
129 pci@E105400 {
130 status = "okay";
131 lantiq,external-clock;
132 gpio-reset = <&gpio 21 0>;
133 };
134
135 };
136
137 // gpiomm 10 - switch
138
139 gpio-keys-polled {
140 compatible = "gpio-keys-polled";
141 #address-cells = <1>;
142 #size-cells = <0>;
143 poll-interval = <100>;
144
145 rfkill {
146 label = "wps";
147 gpios = <&gpio 29 1>;
148 linux,code = <0x211>;
149 };
150 reset {
151 label = "reset";
152 gpios = <&gpio 30 1>;
153 linux,code = <0x198>;
154 };
155 };
156
157 gpio-leds {
158 compatible = "gpio-leds";
159
160 power_blue: power {
161 label = "arv4520pw:blue:power";
162 gpios = <&gpio 3 1>;
163 default-state = "keep";
164 };
165 dsl: dsl {
166 label = "arv4520pw:blue:dsl";
167 gpios = <&gpio 4 1>;
168 };
169 internet_blue: internet {
170 label = "arv4520pw:blue:internet";
171 gpios = <&gpio 5 1>;
172 };
173 power_red: power2 {
174 label = "arv4520pw:red:power";
175 gpios = <&gpio 6 1>;
176 };
177 wps {
178 label = "arv4520pw:yellow:wps";
179 gpios = <&gpio 7 1>;
180 };
181 wps2 {
182 label = "arv4520pw:red:wps";
183 gpios = <&gpio 9 1>;
184 };
185 /*
186 wps green is missing
187 */
188 fxs1 {
189 label = "arv4520pw:blue:telefon1";
190 gpios = <&gpiomm 0 1>;
191 };
192 fxs2 {
193 label = "arv4520pw:blue:telefon2";
194 gpios = <&gpiomm 1 1>;
195 };
196 isdn {
197 label = "arv4520pw:blue:isdn";
198 gpios = <&gpiomm 2 1>;
199 };
200 fxo {
201 label = "arv4520pw:blue:line";
202 gpios = <&gpiomm 3 1>;
203 };
204 voice {
205 label = "arv4520pw:blue:sprache";
206 gpios = <&gpiomm 4 1>;
207 };
208 usb: usb {
209 label = "arv4520pw:blue:usb";
210 gpios = <&gpiomm 5 1>;
211 };
212 wifi: wifi {
213 label = "arv4520pw:blue:wifi";
214 gpios = <&gpiomm 6 1>;
215 };
216 internet2 {
217 label = "arv4520pw:red:internet";
218 gpios = <&gpiomm 9 1>;
219 };
220 /*
221 info is missing
222 */
223 };
224 };