lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4519PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 boot = &power_green;
13 failsafe = &power_red;
14 running = &power_green;
15
16 dsl = &dsl;
17 internet = &internet_green;
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 };
32 };
33
34 fpi@10000000 {
35 localbus@0 {
36 nor-boot@0 {
37 compatible = "lantiq,nor";
38 bank-width = <2>;
39 reg = <0 0x0 0x2000000>;
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 };
58
59 partition@20000 {
60 label = "firmware";
61 reg = <0x20000 0x3d0000>;
62 };
63
64 partition@3f0000 {
65 label = "boardconfig";
66 reg = <0x3f0000 0x10000>;
67 read-only;
68 };
69 };
70 };
71
72 gpiomm: gpiomm@4000000 {
73 compatible = "lantiq,gpio-mm";
74 reg = <1 0x0 0x10 >;
75 #address-cells = <1>;
76 #size-cells = <1>;
77 #gpio-cells = <2>;
78 gpio-controller;
79 lantiq,shadow = <0x400>;
80 };
81
82 mac_addr {
83 compatible = "lantiq,eth-mac";
84 reg = <0 0x3f0016 0x6>;
85 };
86 };
87
88 gpio: pinmux@E100B10 {
89 pinctrl-names = "default";
90 pinctrl-0 = <&state_default>;
91
92 state_default: pinmux {
93 ebu {
94 lantiq,groups = "ebu cs1";
95 lantiq,function = "ebu";
96 };
97 };
98 };
99
100 etop@E180000 {
101 phy-mode = "mii";
102 };
103
104 ifxhcd@E101000 {
105 status = "okay";
106 gpios = <&gpio 14 0>;
107 };
108
109 pci@E105400 {
110 status = "okay";
111 lantiq,external-clock;
112 gpio-reset = <&gpio 21 0>;
113 req-mask = <0xf>;
114 };
115 };
116
117 gpio-keys-polled {
118 compatible = "gpio-keys-polled";
119 #address-cells = <1>;
120 #size-cells = <0>;
121 poll-interval = <100>;
122
123 rfkill {
124 label = "rfkill";
125 gpios = <&gpio 28 1>;
126 linux,code = <0xf7>;
127 };
128 reset {
129 label = "reset";
130 gpios = <&gpio 30 1>;
131 linux,code = <0x198>;
132 };
133 };
134
135 gpio-leds {
136 compatible = "gpio-leds";
137
138 power_green: power {
139 label = "arv4519pw:green:power";
140 gpios = <&gpio 2 1>;
141 default-state = "keep";
142 };
143 power_red: power2 {
144 label = "arv4519pw:red:power";
145 gpios = <&gpio 7 1>;
146 };
147 wifi: wifi {
148 label = "arv4519pw:green:wlan";
149 gpios = <&gpio 6 1>;
150 };
151 dsl: dsl {
152 label = "arv4519pw:green:dsl";
153 gpios = <&gpio 4 1>;
154 };
155 internet_green: online {
156 label = "arv4519pw:green:internet";
157 gpios = <&gpio 5 1>;
158 };
159 online2 {
160 label = "arv4519pw:red:internet";
161 gpios = <&gpio 8 1>;
162 };
163 usb: usb {
164 label = "arv4519pw:green:usb";
165 gpios = <&gpio 19 1>;
166 };
167 voip {
168 label = "arv4519pw:green:voip";
169 gpios = <&gpiomm 0 1>;
170 };
171 fxs1 {
172 label = "arv4519pw:green:phone1";
173 gpios = <&gpiomm 1 1>;
174 };
175 fxs2 {
176 label = "arv4519pw:green:phone2";
177 gpios = <&gpiomm 2 1>;
178 };
179 fxo {
180 label = "arv4519pw:green:line";
181 gpios = <&gpiomm 3 1>;
182 };
183 wps2 {
184 label = "arv4519pw:green:wps";
185 gpios = <&gpiomm 4 1>;
186 };
187 wps {
188 label = "arv4519pw:orange:wps";
189 gpios = <&gpiomm 5 1>;
190 };
191 wps3 {
192 label = "arv4519pw:red:wps";
193 gpios = <&gpiomm 6 1>;
194 };
195 };
196 };