lantiq: kernel 4.14: update dts files
[oweals/openwrt.git] / target / linux / lantiq / files-4.14 / 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
20                 led-dsl = &dsl;
21                 led-internet = &internet_blue;
22                 led-usb = &led_usb;
23                 led-wifi = &wifi;
24         };
25
26         memory@0 {
27                 reg = <0x0 0x2000000>;
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
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         gpio-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_in {
139                         lantiq,groups = "req1";
140                         lantiq,function = "pci";
141                         lantiq,open-drain = <1>;
142                         lantiq,pull = <2>;
143                         lantiq,output = <0>;
144                 };
145                 pci_out {
146                         lantiq,groups = "gnt1";
147                         lantiq,function = "pci";
148                         lantiq,output = <1>;
149                 };
150                 pci_rst {
151                         lantiq,pins = "io21";
152                         lantiq,open-drain = <0>;
153                         lantiq,pull = <0>;
154                 };
155         };
156 };
157
158 &gpiomm {
159         status = "okay";
160         lantiq,shadow = <0x400>;
161 };
162
163 &gsw {
164         /* gpiomm 10 - switch */
165         phy-mode = "rmii";
166         mtd-mac-address = <&boardconfig 0x16>;
167 };
168
169 &localbus {
170         nor@0 {
171                 compatible = "lantiq,nor";
172                 bank-width = <2>;
173                 reg = <0 0x0 0x800000>;
174                 #address-cells = <1>;
175                 #size-cells = <1>;
176
177                 partitions {
178                         compatible = "fixed-partitions";
179                         #address-cells = <1>;
180                         #size-cells = <1>;
181
182                         partition@0 {
183                                 label = "uboot";
184                                 reg = <0x00000 0x20000>;
185                                 read-only;
186                         };
187
188                         partition@20000 {
189                                 label = "uboot_env";
190                                 reg = <0x20000 0x10000>;
191                                 read-only;
192                         };
193
194                         partition@30000 {
195                                 label = "firmware";
196                                 reg = <0x30000 0x3c0000>;
197                         };
198
199                         boardconfig: partition@7f0000 {
200                                 label = "boardconfig";
201                                 reg = <0x3f0000 0x10000>;
202                                 read-only;
203                         };
204                 };
205         };
206 };
207
208 &pci0 {
209         status = "okay";
210         lantiq,external-clock;
211         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
212 };
213
214 &usb_phy {
215         status = "okay";
216         phy-supply = <&usb_vbus>;
217 };
218
219 &usb {
220         status = "okay";
221 };
222
223 &vmmc {
224         status = "okay";
225         gpios = <&gpio 31 GPIO_ACTIVE_HIGH
226                 &gpiomm 7 GPIO_ACTIVE_HIGH>;
227 };