[lantiq] a few more dts files (WIP)
[openwrt.git] / target / linux / lantiq / image / ARV752DPW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         chosen {
7                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
8         };
9
10         memory@0 {
11                 reg = <0x0 0x4000000>;
12         };
13
14         fpi@10000000 {
15                 #address-cells = <1>;
16                 #size-cells = <1>;
17                 localbus@0 {
18                         #address-cells = <2>;
19                         #size-cells = <1>;
20                         ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
21                                 1 0 0x4000000 0x4000010>; /* addsel1 */
22                         compatible = "lantiq,localbus", "simple-bus";
23
24                         nor-boot@0 {
25                                 compatible = "lantiq,nor";
26                                 bank-width = <2>;
27                                 reg = <0 0x0 0x800000>;
28                                 #address-cells = <1>;
29                                 #size-cells = <1>;
30
31                                 partition@0 {
32                                         label = "uboot";
33                                         reg = <0x00000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 partition@10000 {
38                                         label = "uboot_env";
39                                         reg = <0x10000 0x10000>;
40                                 };
41
42                                 partition@20000 {
43                                         label = "linux";
44                                         reg = <0x20000 0x7d0000>;
45                                 };
46
47                                 partition@7f0000 {
48                                         label = "boardconfig";
49                                         reg = <0x7f0000 0x10000>;
50                                         read-only;
51                                 };
52                         };
53                         gpiomm: gpiomm@4000000 {
54                                 compatible = "lantiq,gpio-mm";
55                                 reg = <1 0x0 0x10 >;
56                                 #address-cells = <1>;
57                                 #size-cells = <1>;
58                                 #gpio-cells = <2>;
59                                 gpio-controller;
60                                 lantiq,shadow = <2>;
61                         };
62                 };
63
64                 gpio: pinmux@E100B10 {
65                         compatible = "lantiq,pinctrl-xway";
66                         pinctrl-names = "default";
67                         pinctrl-0 = <&state_default>;
68
69                         #gpio-cells = <2>;
70                         gpio-controller;
71                         reg = <0xE100B10 0xA0>;
72
73                         state_default: pinmux {
74                                 exin {
75                                         lantiq,groups = "exin1";
76                                         lantiq,function = "exin";
77                                 };
78                                 pci {
79                                         lantiq,groups = "gnt1", "gnt2", "req1", "req2";
80                                         lantiq,function = "pci";
81                                 };
82                                 conf_out {
83                                         lantiq,pins = "io3", "io5", "io6", "io8", /* leds */
84                                                         "io21"; /* pci-rst */
85                                         lantiq,open-drain;
86                                         lantiq,pull = <0>;
87                                 };
88                         };
89                 };
90
91                 adsl: dsl@E116000 {
92                         compatible = "lantiq,dsl-xway";
93                         interrupt-parent = <&icu0>;
94                         interrupts = <63 96>;
95                 };
96
97                 etop@E180000 {
98                         compatible = "lantiq,etop-xway";
99                         reg = <0xE180000 0x40000>;
100                         interrupt-parent = <&icu0>;
101                         interrupts = <73 78>;
102                         phy-mode = "rmii";
103                         mac-address = [ 00 11 22 33 44 55 ];
104                 };
105
106                 pci@E105400 {
107                         lantiq,bus-clock = <33333333>;
108                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
109                         interrupt-map = <
110                                 0x7000 0 0 1 &icu0 30 1 // slot 14, irq 29
111                         >;
112                         lantiq,external-clock;
113                         gpio-reset = <&gpio 21 0>;
114                         req-mask = <0x3>;
115                 };
116
117         };
118
119         gpio-keys {
120                 compatible = "gpio-keys1";
121                 reset {
122                         label = "Reset";
123                         gpios = <&gpio 29 1>;
124                         gpio-key,wakeup;
125                         linux,code = <0x100>;
126                 };
127         };
128         gpio-leds {
129                 compatible = "gpio-leds";
130                 power0 {
131                         label = "power0";
132                         gpios = <&gpio 3 1>;
133                         default-state = "on";
134                 };
135                 message {
136                         label = "message";
137                         gpios = <&gpio 5 1>;
138                         default-state = "on";
139                 };
140                 power1 {
141                         label = "power1";
142                         gpios = <&gpio 6 1>;
143                         default-state = "on";
144                 };
145                 voice1 {
146                         label = "voice1";
147                         gpios = <&gpio 8 1>;
148                         default-state = "on";
149                 };
150                 microphone {
151                         label = "microphone";
152                         gpios = <&gpiomm 3 1>;
153                         default-state = "on";
154                 };
155                 wifi {
156                         label = "wifi";
157                         gpios = <&gpiomm 4 1>;
158                         default-state = "on";
159                 };
160                 fxs1 {
161                         label = "fxs1";
162                         gpios = <&gpiomm 5 1>;
163                         default-state = "on";
164                 };
165                 fx2 {
166                         label = "fxs2";
167                         gpios = <&gpiomm 6 1>;
168                         default-state = "on";
169                 };
170                 fxo {
171                         label = "fxo";
172                         gpios = <&gpiomm 7 1>;
173                         default-state = "on";
174                 };
175                 internet {
176                         label = "internet";
177                         gpios = <&gpiomm 8 1>;
178                         default-state = "on";
179                 };
180                 voice2 {
181                         label = "voice2";
182                         gpios = <&gpiomm 9 1>;
183                         default-state = "on";
184                 };
185                 eth1 {
186                          label = "eth1";
187                          gpios = <&gpiomm 11 1>;
188                          default-state = "on";
189                 };
190                 eth2 {
191                         label = "eth2";
192                         gpios = <&gpiomm 12 1>;
193                         default-state = "on";
194                 };
195                 eth3 {
196                         label = "eth3";
197                         gpios = <&gpiomm 13 1>;
198                         default-state = "on";
199                 };
200                 eth4 {
201                         label = "eth4";
202                         gpios = <&gpiomm 14 1>;
203                         default-state = "on";
204                 };
205         };
206 };