baa1e263645c4180f7d42624087568908629a6ea
[openwrt/staging/florian.git] / target / linux / lantiq / dts / ARV7519PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV7519PW - Astoria Networks";
9
10 aliases {
11 led-boot = &power;
12 led-failsafe = &power2;
13 led-running = &power;
14
15 led-dsl = &dsl;
16 led-internet = &online;
17 led-wifi = &wifi;
18 };
19
20 memory@0 {
21 reg = <0x0 0x4000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
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 0x40000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "uboot_env";
52 reg = <0x40000 0x20000>;
53 };
54
55 partition@60000 {
56 label = "firmware";
57 reg = <0x60000 0xf80000>;
58 };
59
60 boardconfig: partition@fe0000 {
61 label = "board_config";
62 reg = <0xfe0000 0x20000>;
63 read-only;
64 };
65 };
66 };
67 };
68
69 gpio: pinmux@E100B10 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&state_default>;
72
73 state_default: pinmux {
74 ebu {
75 lantiq,groups = "ebu cs1";
76 lantiq,function = "ebu";
77 };
78 pci_in {
79 lantiq,groups = "req1";
80 lantiq,function = "pci";
81 lantiq,open-drain = <1>;
82 lantiq,pull = <2>;
83 lantiq,output = <0>;
84 };
85 pci_out {
86 lantiq,groups = "gnt1";
87 lantiq,function = "pci";
88 lantiq,pull = <0>;
89 lantiq,output = <1>;
90 };
91 pci_rst {
92 lantiq,pins = "io21";
93 lantiq,pull = <2>;
94 lantiq,output = <1>;
95 };
96 switch_rst {
97 lantiq,pins = "io19";
98 lantiq,pull = <2>;
99 lantiq,output = <1>;
100 };
101 };
102 };
103
104 etop@E180000 {
105 phy-mode = "mii";
106 mtd-mac-address = <&boardconfig 0x16>;
107 };
108
109 /* warning: passive port
110 only works with active devices */
111 ifxhcd@E101000 {
112 status = "okay";
113 };
114 };
115
116 gpio-keys-polled {
117 compatible = "gpio-keys-polled";
118 #address-cells = <1>;
119 #size-cells = <0>;
120 poll-interval = <100>;
121
122 rfkill {
123 label = "rfkill";
124 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_RFKILL>;
126 };
127 reset {
128 label = "reset";
129 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
131 };
132 };
133
134 gpio-leds {
135 compatible = "gpio-leds";
136 power: power {
137 label = "power";
138 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
139 default-state = "keep";
140 };
141 power2: power2 {
142 label = "power2";
143 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
144 };
145 online: online {
146 label = "online";
147 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
148 };
149 online2 {
150 label = "online2";
151 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
152 };
153 wifi: wifi {
154 label = "wifi";
155 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
156 };
157 wifi2 {
158 label = "wifi2";
159 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
160 };
161 wifi3 {
162 label = "wifi3";
163 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
164 };
165 voice {
166 label = "voice";
167 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
168 };
169 wps {
170 label = "wps";
171 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
172 };
173 wps2 {
174 label = "wps2";
175 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
176 };
177 wps3 {
178 label = "wps3";
179 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
180 };
181 dsl: dsl {
182 label = "dsl";
183 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
184 };
185 lan {
186 label = "lan";
187 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
188 };
189 tv {
190 label = "tv";
191 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
192 };
193 upgrade {
194 label = "upgrade";
195 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
196 };
197 };
198
199 /* is there another way to "reserve" the GPIO? */
200 gpio_export {
201 compatible = "gpio-export";
202 #size-cells = <0>;
203
204 switch {
205 gpio-export,name = "switch";
206 gpio-export,output = <1>;
207 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
208 };
209 };
210 };
211
212 &pci0 {
213 status = "okay";
214 lantiq,external-clock;
215 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
216 req-mask = <0xf>;
217
218 wifi@0,0 {
219 compatible = "pci0,0";
220 reg = <0x7000 0 0 0 0>;
221 ralink,mtd-eeprom = <&boardconfig 0x410>;
222 ralink,mtd-eeprom-swap;
223 };
224 };