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