lantiq: use external pci clock on ARV7506PW11
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4520PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 / {
6         model = "ARV4520PW - Easybox 800, WAV-281";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10         };
11
12         aliases {
13                 led-boot = &power_blue;
14                 led-failsafe = &power_red;
15                 led-running = &power_blue;
16
17                 led-dsl = &dsl;
18                 led-internet = &internet_blue;
19                 led-usb = &usb;
20                 led-wifi = &wifi;
21         };
22
23         memory@0 {
24                 reg = <0x0 0x2000000>;
25         };
26
27         sram@1F000000 {
28                 vmmc@107000 {
29                         status = "okay";
30                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH
31                                 &gpiomm 7 GPIO_ACTIVE_HIGH>;
32                 };
33         };
34
35         fpi@10000000 {
36                 localbus@0 {
37                         nor-boot@0 {
38                                 compatible = "lantiq,nor";
39                                 bank-width = <2>;
40                                 reg = <0 0x0 0x800000>;
41                                 #address-cells = <1>;
42                                 #size-cells = <1>;
43
44                                 partitions {
45                                         compatible = "fixed-partitions";
46                                         #address-cells = <1>;
47                                         #size-cells = <1>;
48
49                                         partition@0 {
50                                                 label = "uboot";
51                                                 reg = <0x00000 0x20000>;
52                                                 read-only;
53                                         };
54
55                                         partition@20000 {
56                                                 label = "uboot_env";
57                                                 reg = <0x20000 0x10000>;
58                                                 read-only;
59                                         };
60
61                                         partition@30000 {
62                                                 label = "firmware";
63                                                 reg = <0x30000 0x3c0000>;
64                                         };
65
66                                         boardconfig: partition@7f0000 {
67                                                 label = "boardconfig";
68                                                 reg = <0x3f0000 0x10000>;
69                                                 read-only;
70                                         };
71                                 };
72                         };
73
74                         gpiomm: gpiomm@4000000 {
75                                 compatible = "lantiq,gpio-mm";
76                                 reg = <1 0x0 0x10 >;
77                                 #address-cells = <1>;
78                                 #size-cells = <1>;
79                                 #gpio-cells = <2>;
80                                 gpio-controller;
81                                 lantiq,shadow = <0x400>;
82                         };
83                 };
84
85                 gpio: pinmux@E100B10 {
86                         pinctrl-names = "default";
87                         pinctrl-0 = <&state_default>;
88
89                         state_default: pinmux {
90                                 ebu {
91                                         lantiq,groups = "ebu cs1";
92                                         lantiq,function = "ebu";
93                                 };
94                                 pci_in {
95                                         lantiq,groups = "req1";
96                                         lantiq,function = "pci";
97                                         lantiq,open-drain = <1>;
98                                         lantiq,pull = <2>;
99                                         lantiq,output = <0>;
100                                 };
101                                 pci_out {
102                                         lantiq,groups = "gnt1";
103                                         lantiq,function = "pci";
104                                         lantiq,output = <1>;
105                                 };
106                                 pci_rst {
107                                         lantiq,pins = "io21";
108                                         lantiq,open-drain = <0>;
109                                         lantiq,pull = <0>;
110                                 };
111                         };
112                 };
113
114                 etop@E180000 {
115                         phy-mode = "rmii";
116                         mtd-mac-address = <&boardconfig 0x16>;
117                 };
118
119                 ifxhcd@E101000 {
120                         status = "okay";
121                         gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
122                 };
123
124                 pci@E105400 {
125                         status = "okay";
126                         lantiq,external-clock;
127                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
128                 };
129         };
130
131 // gpiomm 10 - switch
132
133         gpio-keys-polled {
134                 compatible = "gpio-keys-polled";
135                 #address-cells = <1>;
136                 #size-cells = <0>;
137                 poll-interval = <100>;
138
139                 rfkill {
140                         label = "wps";
141                         gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
142                         linux,code = <KEY_WPS_BUTTON>;
143                 };
144                 reset {
145                         label = "reset";
146                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
147                         linux,code = <KEY_RESTART>;
148                 };
149         };
150
151         gpio-leds {
152                 compatible = "gpio-leds";
153
154                 power_blue: power {
155                         label = "arv4520pw:blue:power";
156                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
157                         default-state = "keep";
158                 };
159                 dsl: dsl {
160                         label = "arv4520pw:blue:dsl";
161                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
162                 };
163                 internet_blue: internet {
164                         label = "arv4520pw:blue:internet";
165                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
166                 };
167                 power_red: power2 {
168                         label = "arv4520pw:red:power";
169                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
170                 };
171                 wps {
172                         label = "arv4520pw:yellow:wps";
173                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
174                 };
175                 wps2 {
176                         label = "arv4520pw:red:wps";
177                         gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
178                 };
179                 /*
180                         wps green is missing
181                 */
182                 fxs1 {
183                         label = "arv4520pw:blue:telefon1";
184                         gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
185                 };
186                 fxs2 {
187                         label = "arv4520pw:blue:telefon2";
188                         gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
189                 };
190                 isdn {
191                         label = "arv4520pw:blue:isdn";
192                         gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
193                 };
194                 fxo {
195                         label = "arv4520pw:blue:line";
196                         gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
197                 };
198                 voice {
199                         label = "arv4520pw:blue:sprache";
200                         gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
201                 };
202                 usb: usb {
203                         label = "arv4520pw:blue:usb";
204                         gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
205                 };
206                 wifi: wifi {
207                         label = "arv4520pw:blue:wifi";
208                         gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
209                 };
210                 internet2 {
211                         label = "arv4520pw:red:internet";
212                         gpios = <&gpiomm 9 GPIO_ACTIVE_LOW>;
213                 };
214                 /*
215                         info is missing
216                 */
217         };
218 };