lantiq: move partitions into partion table node
[openwrt/staging/yousong.git] / target / linux / lantiq / dts / ARV7519PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV7519PW - Astoria Networks";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power;
13 failsafe = &power2;
14 running = &power;
15
16 dsl = &dsl;
17 internet = &online;
18 wifi = &wifi;
19 };
20 };
21
22 memory@0 {
23 reg = <0x0 0x4000000>;
24 };
25
26 sram@1F000000 {
27 vmmc@107000 {
28 status = "okay";
29 };
30 };
31
32 fpi@10000000 {
33 localbus@0 {
34 nor-boot@0 {
35 compatible = "lantiq,nor";
36 bank-width = <2>;
37 reg = <0 0x0 0x2000000>;
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "uboot";
48 reg = <0x00000 0x40000>;
49 read-only;
50 };
51
52 partition@40000 {
53 label = "uboot_env";
54 reg = <0x40000 0x20000>;
55 };
56
57 partition@60000 {
58 label = "firmware";
59 reg = <0x60000 0xf80000>;
60 };
61
62 partition@fe0000 {
63 label = "board_config";
64 reg = <0xfe0000 0x20000>;
65 read-only;
66 };
67 };
68 };
69
70 mac_addr {
71 compatible = "lantiq,eth-mac";
72 reg = <0 0xfe0016 0x6>;
73 mac-increment = <2>;
74 };
75 };
76
77 gpio: pinmux@E100B10 {
78 pinctrl-names = "default";
79 pinctrl-0 = <&state_default>;
80
81 state_default: pinmux {
82 ebu {
83 lantiq,groups = "ebu cs1";
84 lantiq,function = "ebu";
85 };
86 pci_in {
87 lantiq,groups = "req1";
88 lantiq,function = "pci";
89 lantiq,open-drain = <1>;
90 lantiq,pull = <2>;
91 lantiq,output = <0>;
92 };
93 pci_out {
94 lantiq,groups = "gnt1";
95 lantiq,function = "pci";
96 lantiq,pull = <0>;
97 lantiq,output = <1>;
98 };
99 pci_rst {
100 lantiq,pins = "io21";
101 lantiq,pull = <2>;
102 lantiq,output = <1>;
103 };
104 switch_rst {
105 lantiq,pins = "io19";
106 lantiq,pull = <2>;
107 lantiq,output = <1>;
108 };
109 };
110 };
111
112 etop@E180000 {
113 phy-mode = "mii";
114 };
115
116 /* warning: passive port
117 only works with active devices */
118 ifxhcd@E101000 {
119 status = "okay";
120 };
121
122 pci@E105400 {
123 status = "okay";
124 lantiq,external-clock;
125 gpio-reset = <&gpio 21 0>;
126 req-mask = <0xf>;
127 };
128 };
129
130 ralink_eep {
131 compatible = "ralink,eeprom";
132 ralink,eeprom = "RT2860.eeprom";
133 };
134
135 gpio-keys-polled {
136 compatible = "gpio-keys-polled";
137 #address-cells = <1>;
138 #size-cells = <0>;
139 poll-interval = <100>;
140
141 rfkill {
142 label = "rfkill";
143 gpios = <&gpio 11 1>;
144 linux,code = <0xf7>;
145 };
146 reset {
147 label = "reset";
148 gpios = <&gpio 28 1>;
149 linux,code = <0x198>;
150 };
151 };
152
153 gpio-leds {
154 compatible = "gpio-leds";
155 power: power {
156 label = "power";
157 gpios = <&gpio 2 1>;
158 default-state = "keep";
159 };
160 power2: power2 {
161 label = "power2";
162 gpios = <&gpio 14 1>;
163 };
164 online: online {
165 label = "online";
166 gpios = <&gpio 3 1>;
167 };
168 online2 {
169 label = "online2";
170 gpios = <&gpio 30 1>;
171 };
172 wifi: wifi {
173 label = "wifi";
174 gpios = <&gpio 12 1>;
175 };
176 wifi2 {
177 label = "wifi2";
178 gpios = <&gpio 10 1>;
179 };
180 wifi3 {
181 label = "wifi3";
182 gpios = <&gpio 6 1>;
183 };
184 voice {
185 label = "voice";
186 gpios = <&gpio 31 1>;
187 };
188 wps {
189 label = "wps";
190 gpios = <&gpio 15 1>;
191 };
192 wps2 {
193 label = "wps2";
194 gpios = <&gpio 7 1>;
195 };
196 wps3 {
197 label = "wps3";
198 gpios = <&gpio 23 1>;
199 };
200 dsl: dsl {
201 label = "dsl";
202 gpios = <&gpio 4 1>;
203 };
204 lan {
205 label = "lan";
206 gpios = <&gpio 1 1>;
207 };
208 tv {
209 label = "tv";
210 gpios = <&gpio 20 1>;
211 };
212 upgrade {
213 label = "upgrade";
214 gpios = <&gpio 29 1>;
215 };
216 };
217
218 /* is there another way to "reserve" the GPIO? */
219 gpio_export {
220 compatible = "gpio-export";
221 #size-cells = <0>;
222
223 switch {
224 gpio-export,name = "switch";
225 gpio-export,output = <1>;
226 gpios = <&gpio 19 0>;
227 };
228 };
229 };