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