lantiq: move dts files to thir own folder
[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 0x800
73 0 0x7f0016 0x6>;
74 ath,mac-increment = <1>;
75 ath,pci-slot = <14>;
76 ath,eep-swap;
77 ath,eep-csum;
78 };
79 };
80
81 gpio: pinmux@E100B10 {
82 pinctrl-names = "default";
83 pinctrl-0 = <&state_default>;
84
85 state_default: pinmux {
86 ebu {
87 lantiq,groups = "ebu cs1";
88 lantiq,function = "ebu";
89 };
90 pci_in {
91 lantiq,groups = "req1", "req2";
92 lantiq,function = "pci";
93 lantiq,open-drain = <1>;
94 lantiq,pull = <2>;
95 lantiq,output = <0>;
96 };
97 pci_out {
98 lantiq,groups = "gnt1", "gnt2";
99 lantiq,function = "pci";
100 lantiq,pull = <0>;
101 lantiq,output = <1>;
102 };
103 pci_rst {
104 lantiq,pins = "io21";
105 lantiq,pull = <2>;
106 lantiq,output = <1>;
107 };
108 };
109 };
110
111 etop@E180000 {
112 phy-mode = "rmii";
113 };
114
115 ifxhcd@E101000 {
116 status = "okay";
117 gpios = <&gpio 14 0>;
118 };
119
120 pci@E105400 {
121 status = "okay";
122 lantiq,external-clock;
123 gpio-reset = <&gpio 21 0>;
124 req-mask = <0xf>;
125 };
126
127 };
128
129 /*
130 #define SWITCH_RESET 13
131 */
132 gpio-keys-polled {
133 compatible = "gpio-keys-polled";
134 #address-cells = <1>;
135 #size-cells = <0>;
136 poll-interval = <100>;
137
138 rfkill {
139 label = "rfkill";
140 gpios = <&gpio 25 1>;
141 linux,code = <0xf7>;
142 };
143 /* reset {
144 label = "reset";
145 gpios = <&gpio 30 1>;
146 linux,code = <0x198>;
147 };*/
148 };
149
150 gpio-leds {
151 compatible = "gpio-leds";
152 power {
153 label = "power";
154 gpios = <&gpio 2 0>;
155 };
156 dsl {
157 label = "dsl";
158 gpios = <&gpio 4 1>;
159 };
160 online {
161 label = "online";
162 gpios = <&gpio 5 1>;
163 };
164 wifi {
165 label = "wifi";
166 gpios = <&gpio 6 1>;
167 };
168 power2 {
169 label = "power2";
170 gpios = <&gpio 7 1>;
171 };
172 online2 {
173 label = "online2";
174 gpios = <&gpio 8 1>;
175 };
176 usb {
177 label = "usb";
178 gpios = <&gpio 19 1>;
179 };
180 voice {
181 label = "voice";
182 gpios = <&gpiomm 0 1>;
183 };
184 fxs1 {
185 label = "fxs1";
186 gpios = <&gpiomm 1 1>;
187 };
188 fxs2 {
189 label = "fxs2";
190 gpios = <&gpiomm 2 1>;
191 };
192 fxo {
193 label = "fxo";
194 gpios = <&gpiomm 3 1>;
195 };
196 wps {
197 label = "wps";
198 gpios = <&gpiomm 4 1>;
199 };
200 wps2 {
201 label = "wps2";
202 gpios = <&gpiomm 5 1>;
203 };
204 wps3 {
205 label = "wps3";
206 gpios = <&gpiomm 6 1>;
207 };
208 };
209 };