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