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