lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
1 /include/ "danube.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6
7 leds {
8 boot = &power;
9 failsafe = &power;
10 running = &power;
11
12 dsl = &dsl;
13 internet = &online;
14 usb = &usb;
15 wifi = &wifi;
16 };
17 };
18
19 memory@0 {
20 reg = <0x0 0x4000000>;
21 };
22
23 sram@1F000000 {
24 vmmc@107000 {
25 status = "okay";
26 gpios = <&gpio 31 0>;
27 };
28 };
29
30 fpi@10000000 {
31 localbus@0 {
32 nor-boot@0 {
33 compatible = "lantiq,nor";
34 bank-width = <2>;
35 reg = <0 0x0 0x2000000>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "uboot";
46 reg = <0x00000 0x10000>; /* 64 KB */
47 read-only;
48 };
49
50 partition@10000 {
51 label = "uboot_env";
52 reg = <0x10000 0x10000>; /* 64 KB */
53 read-only;
54 };
55
56 partition@20000 {
57 label = "firmware";
58 reg = <0x20000 0x3d0000>;
59 };
60
61 partition@400000 {
62 label = "boardconfig";
63 reg = <0x3f0000 0x10000>;
64 read-only;
65 };
66 };
67 };
68
69 gpiomm: gpiomm@4000000 {
70 compatible = "lantiq,gpio-mm";
71 reg = <1 0x0 0x10 >;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 #gpio-cells = <2>;
75 gpio-controller;
76 lantiq,shadow = <0x0>;
77 };
78
79 mac_addr {
80 compatible = "lantiq,eth-mac";
81 reg = <0 0x3f0016 0x6>;
82 mac-increment = <2>;
83 };
84
85 ath5k_eep {
86 compatible = "ath5k,eeprom";
87 reg = <0 0x3f0400 0x1000
88 0 0x3f0016 0x6>;
89 ath,mac-increment = <1>;
90 ath,eep-swap;
91 };
92 };
93
94 gpio: pinmux@E100B10 {
95 pinctrl-names = "default";
96 pinctrl-0 = <&state_default>;
97
98 state_default: pinmux {
99 ebu {
100 lantiq,groups = "ebu cs1";
101 lantiq,function = "ebu";
102 };
103 pci_in {
104 lantiq,groups = "req1", "req2";
105 lantiq,function = "pci";
106 lantiq,open-drain = <1>;
107 lantiq,pull = <2>;
108 lantiq,output = <0>;
109 };
110 pci_out {
111 lantiq,groups = "gnt1", "gnt2";
112 lantiq,function = "pci";
113 lantiq,pull = <0>;
114 lantiq,output = <1>;
115 };
116 };
117 };
118
119 etop@E180000 {
120 phy-mode = "mii";
121 };
122
123 ifxhcd@E101000 {
124 status = "okay";
125 gpios = <&gpio 14 0>;
126 };
127
128 pci@E105400 {
129 status = "okay";
130 gpio-reset = <&gpio 21 0>;
131 req-mask = <0xf>;
132 };
133
134 };
135
136 gpio-keys-polled {
137 compatible = "gpio-keys-polled";
138 #address-cells = <1>;
139 #size-cells = <0>;
140 poll-interval = <100>;
141
142 rfkill {
143 label = "rfkill";
144 gpios = <&gpio 28 1>;
145 linux,code = <0xf7>;
146 };
147 reset {
148 label = "reset";
149 gpios = <&gpio 30 1>;
150 linux,code = <0x198>;
151 };
152 };
153
154 gpio-leds {
155 compatible = "gpio-leds";
156 power: power {
157 label = "power";
158 gpios = <&gpio 3 0>;
159 default-state = "keep";
160 };
161 dsl: dsl {
162 label = "dsl";
163 gpios = <&gpio 4 1>;
164 };
165 online: online {
166 label = "online";
167 gpios = <&gpio 5 1>;
168 };
169 wifi: wifi {
170 label = "wifi";
171 gpios = <&gpio 6 1>;
172 };
173 wps {
174 label = "wps";
175 gpios = <&gpio 7 1>;
176 };
177 dsl2 {
178 label = "dsl2";
179 gpios = <&gpio 8 1>;
180 };
181 usb: usb {
182 label = "usb";
183 gpios = <&gpio 19 1>;
184 };
185 voice {
186 label = "voice";
187 gpios = <&gpiomm 0 1>;
188 };
189 fxs1 {
190 label = "fxs1";
191 gpios = <&gpiomm 1 1>;
192 };
193 fxs2 {
194 label = "fxs2";
195 gpios = <&gpiomm 2 1>;
196 };
197 fxo {
198 label = "fxo";
199 gpios = <&gpiomm 3 1>;
200 };
201 };
202 };