41d17de41930dd5cec6acb4fd1b7b6385663106c
[openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
1 /include/ "danube.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6
7                 leds {
8                         dsl = &dsl;
9                         internet = &online;
10                         power = &power;
11                         usb = &usb;
12                         wifi = &wifi;
13                 };
14         };
15
16         memory@0 {
17                 reg = <0x0 0x4000000>;
18         };
19
20         sram@1F000000 {
21                 vmmc@107000 {
22                         status = "okay";
23                         gpios = <&gpio 31 0>;
24                 };
25         };
26
27         fpi@10000000 {
28                 localbus@0 {
29                         nor-boot@0 {
30                                 compatible = "lantiq,nor";
31                                 bank-width = <2>;
32                                 reg = <0 0x0 0x2000000>;
33                                 #address-cells = <1>;
34                                 #size-cells = <1>;
35
36                                 partition@0 {
37                                         label = "uboot";
38                                         reg = <0x00000 0x10000>; /* 64 KB */
39                                         read-only;
40                                 };
41
42                                 partition@10000 {
43                                         label = "uboot_env";
44                                         reg = <0x10000 0x10000>; /* 64 KB */
45                                         read-only;
46                                 };
47
48                                 partition@20000 {
49                                         label = "firmware";
50                                         reg = <0x20000 0x3d0000>;
51                                 };
52
53                                 partition@400000 {
54                                         label = "boardconfig";
55                                         reg = <0x3f0000 0x10000>;
56                                         read-only;
57                                 };
58                         };
59
60                         gpiomm: gpiomm@4000000 {
61                                 compatible = "lantiq,gpio-mm";
62                                 reg = <1 0x0 0x10 >;
63                                 #address-cells = <1>;
64                                 #size-cells = <1>;
65                                 #gpio-cells = <2>;
66                                 gpio-controller;
67                                 lantiq,shadow = <0x0>;
68                         };
69
70                         mac_addr {
71                                 compatible = "lantiq,eth-mac";
72                                 reg = <0 0x3f0016 0x6>;
73                                 mac-increment = <2>;
74                         };
75
76                         ath5k_eep {
77                                 compatible = "ath5k,eeprom";
78                                 reg = <0 0x3f0400 0x1000
79                                         0 0x3f0016 0x6>;
80                                 ath,mac-increment = <1>;
81                                 ath,eep-swap;
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", "req2";
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", "gnt2";
103                                         lantiq,function = "pci";
104                                         lantiq,pull = <0>;
105                                         lantiq,output = <1>;
106                                 };
107                         };
108                 };
109
110                 etop@E180000 {
111                         phy-mode = "mii";
112                 };
113
114                 ifxhcd@E101000 {
115                         status = "okay";
116                         gpios = <&gpio 14 0>;
117                 };
118
119                 pci@E105400 {
120                         status = "okay";
121                         gpio-reset = <&gpio 21 0>;
122                         req-mask = <0xf>;
123                 };
124
125         };
126
127         gpio-keys-polled {
128                 compatible = "gpio-keys-polled";
129                 #address-cells = <1>;
130                 #size-cells = <0>;
131                 poll-interval = <100>;
132
133                 rfkill {
134                         label = "rfkill";
135                         gpios = <&gpio 28 1>;
136                         linux,code = <0xf7>;
137                 };
138                 reset {
139                         label = "reset";
140                         gpios = <&gpio 30 1>;
141                         linux,code = <0x198>;
142                 };
143         };
144
145         gpio-leds {
146                 compatible = "gpio-leds";
147                 power: power {
148                         label = "power";
149                         gpios = <&gpio 3 0>;
150                 };
151                 dsl: dsl {
152                         label = "dsl";
153                         gpios = <&gpio 4 1>;
154                 };
155                 online: online {
156                         label = "online";
157                         gpios = <&gpio 5 1>;
158                 };
159                 wifi: wifi {
160                         label = "wifi";
161                         gpios = <&gpio 6 1>;
162                 };
163                 wps {
164                         label = "wps";
165                         gpios = <&gpio 7 1>;
166                 };
167                 dsl2 {
168                         label = "dsl2";
169                         gpios = <&gpio 8 1>;
170                 };
171                 usb: usb {
172                         label = "usb";
173                         gpios = <&gpio 19 1>;
174                 };
175                 voice {
176                         label = "voice";
177                         gpios = <&gpiomm 0 1>;
178                 };
179                 fxs1 {
180                         label = "fxs1";
181                         gpios = <&gpiomm 1 1>;
182                 };
183                 fxs2 {
184                         label = "fxs2";
185                         gpios = <&gpiomm 2 1>;
186                 };
187                 fxo {
188                         label = "fxo";
189                         gpios = <&gpiomm 3 1>;
190                 };
191         };
192 };