ixp4xx: Update to 4.9 kernel, refresh patches. Remove kmod-spi-gpio-old usage.
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4519PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
9
10         chosen {
11                 bootargs = "console=ttyLTQ0,115200";
12         };
13
14         aliases {
15                 led-boot = &power_green;
16                 led-failsafe = &power_red;
17                 led-running = &power_green;
18
19                 led-dsl = &dsl;
20                 led-internet = &internet_green;
21                 led-usb = &usb;
22                 led-wifi = &wifi;
23         };
24
25         memory@0 {
26                 reg = <0x0 0x2000000>;
27         };
28
29         sram@1F000000 {
30                 vmmc@107000 {
31                         status = "okay";
32                         gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
33                 };
34         };
35
36         fpi@10000000 {
37                 localbus@0 {
38                         nor-boot@0 {
39                                 compatible = "lantiq,nor";
40                                 bank-width = <2>;
41                                 reg = <0 0x0 0x2000000>;
42                                 #address-cells = <1>;
43                                 #size-cells = <1>;
44
45                                 partitions {
46                                         compatible = "fixed-partitions";
47                                         #address-cells = <1>;
48                                         #size-cells = <1>;
49
50                                         partition@0 {
51                                                 label = "uboot";
52                                                 reg = <0x00000 0x10000>;
53                                                 read-only;
54                                         };
55
56                                         partition@10000 {
57                                                 label = "uboot_env";
58                                                 reg = <0x10000 0x10000>;
59                                         };
60
61                                         partition@20000 {
62                                                 label = "firmware";
63                                                 reg = <0x20000 0x3d0000>;
64                                         };
65
66                                         boardconfig: partition@3f0000 {
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                         };
95                 };
96
97                 etop@E180000 {
98                         phy-mode = "mii";
99                         mtd-mac-address = <&boardconfig 0x16>;
100                 };
101
102                 ifxhcd@E101000 {
103                         status = "okay";
104                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
105                 };
106
107                 pci@E105400 {
108                         status = "okay";
109                         lantiq,external-clock;
110                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
111                         req-mask = <0xf>;
112                 };
113         };
114
115         gpio-keys-polled {
116                 compatible = "gpio-keys-polled";
117                 #address-cells = <1>;
118                 #size-cells = <0>;
119                 poll-interval = <100>;
120
121                 rfkill {
122                         label = "rfkill";
123                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
124                         linux,code = <KEY_RFKILL>;
125                 };
126                 reset {
127                         label = "reset";
128                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
129                         linux,code = <KEY_RESTART>;
130                 };
131         };
132
133         gpio-leds {
134                 compatible = "gpio-leds";
135
136                 power_green: power {
137                         label = "arv4519pw:green:power";
138                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
139                         default-state = "keep";
140                 };
141                 power_red: power2 {
142                         label = "arv4519pw:red:power";
143                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
144                 };
145                 wifi: wifi {
146                         label = "arv4519pw:green:wlan";
147                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
148                 };
149                 dsl: dsl {
150                         label = "arv4519pw:green:dsl";
151                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
152                 };
153                 internet_green: online {
154                         label = "arv4519pw:green:internet";
155                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
156                 };
157                 online2 {
158                         label = "arv4519pw:red:internet";
159                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
160                 };
161                 usb: usb {
162                         label = "arv4519pw:green:usb";
163                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
164                 };
165                 voip {
166                         label = "arv4519pw:green:voip";
167                         gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
168                 };
169                 fxs1 {
170                         label = "arv4519pw:green:phone1";
171                         gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
172                 };
173                 fxs2 {
174                         label = "arv4519pw:green:phone2";
175                         gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
176                 };
177                 fxo {
178                         label = "arv4519pw:green:line";
179                         gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
180                 };
181                 wps2 {
182                         label = "arv4519pw:green:wps";
183                         gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
184                 };
185                 wps {
186                         label = "arv4519pw:orange:wps";
187                         gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
188                 };
189                 wps3 {
190                         label = "arv4519pw:red:wps";
191                         gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
192                 };
193         };
194 };