lantiq: device tree bindings for dwc2 on danube
[oweals/openwrt.git] / target / linux / lantiq / dts / ar9.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2
3 / {
4         #address-cells = <1>;
5         #size-cells = <1>;
6         compatible = "lantiq,xway", "lantiq,ar9";
7
8         cpus {
9                 cpu@0 {
10                         compatible = "mips,mips34K";
11                 };
12         };
13
14         memory@0 {
15                 device_type = "memory";
16         };
17
18         biu@1F800000 {
19                 #address-cells = <1>;
20                 #size-cells = <1>;
21                 compatible = "lantiq,biu", "simple-bus";
22                 reg = <0x1F800000 0x800000>;
23                 ranges = <0x0 0x1F800000 0x7FFFFF>;
24
25                 icu0: icu@80200 {
26                         #interrupt-cells = <1>;
27                         interrupt-controller;
28                         compatible = "lantiq,icu";
29                         reg = <0x80200 0x28
30                                 0x80228 0x28
31                                 0x80250 0x28
32                                 0x80278 0x28
33                                 0x802a0 0x28>;
34                 };
35
36                 watchdog@803F0 {
37                         compatible = "lantiq,wdt";
38                         reg = <0x803F0 0x10>;
39                 };
40         };
41
42         sram@1F000000 {
43                 #address-cells = <1>;
44                 #size-cells = <1>;
45                 compatible = "lantiq,sram", "simple-bus";
46                 reg = <0x1F000000 0x800000>;
47                 ranges = <0x0 0x1F000000 0x7FFFFF>;
48
49                 eiu0: eiu@101000 {
50                         #interrupt-cells = <1>;
51                         interrupt-controller;
52                         compatible = "lantiq,eiu-xway";
53                         reg = <0x101000 0x1000>;
54                         interrupt-parent = <&icu0>;
55                         lantiq,eiu-irqs = <166 135 66 40 41 42>;
56                 };
57
58                 pmu0: pmu@102000 {
59                         compatible = "lantiq,pmu-xway";
60                         reg = <0x102000 0x1000>;
61                 };
62
63                 cgu0: cgu@103000 {
64                         compatible = "lantiq,cgu-xway";
65                         reg = <0x103000 0x1000>;
66                         #clock-cells = <1>;
67                 };
68
69                 rcu0: rcu@203000 {
70                         compatible = "lantiq,rcu-xway";
71                         reg = <0x203000 0x1000>;
72                 };
73         };
74
75         fpi@10000000 {
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78                 compatible = "lantiq,fpi", "simple-bus";
79                 ranges = <0x0 0x10000000 0xEEFFFFF>;
80                 reg = <0x10000000 0xEF00000>;
81
82                 localbus@0 {
83                         #address-cells = <2>;
84                         #size-cells = <1>;
85                         ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
86                                 1 0 0x4000000 0x4000010>; /* addsel1 */
87                         compatible = "lantiq,localbus", "simple-bus";
88                 };
89
90                 gptu@E100A00 {
91                         compatible = "lantiq,gptu-xway";
92                         reg = <0xE100A00 0x100>;
93                         interrupt-parent = <&icu0>;
94                         interrupts = <126 127 128 129 130 131>;
95                 };
96
97                 asc0: serial@E100400 {
98                         compatible = "lantiq,asc";
99                         reg = <0xE100400 0x400>;
100                         interrupt-parent = <&icu0>;
101                         interrupts = <104 105 106>;
102                         status = "disabled";
103                 };
104
105                 spi: spi@E100800 {
106                         compatible = "lantiq,xrx100-spi";
107                         reg = <0xE100800 0x100>;
108                         interrupt-parent = <&icu0>;
109                         interrupts = <22 23 24>;
110                         interrupt-names = "spi_rx", "spi_tx", "spi_err",
111                                         "spi_frm";
112                         #address-cells = <1>;
113                         #size-cells = <1>;
114                         status = "disabled";
115                 };
116
117                 gpio: pinmux@E100B10 {
118                         compatible = "lantiq,xrx100-pinctrl";
119                         #gpio-cells = <2>;
120                         gpio-controller;
121                         reg = <0xE100B10 0xA0>;
122                 };
123
124                 asc1: serial@E100C00 {
125                         compatible = "lantiq,asc";
126                         reg = <0xE100C00 0x400>;
127                         interrupt-parent = <&icu0>;
128                         interrupts = <112 113 114>;
129                 };
130
131                 ifxhcd@E101000 {
132                         compatible = "lantiq,ifxhcd-arx100", "lantiq,ifxhcd-arx100-dwc2";
133                         reg = <0xE101000 0x1000
134                                 0xE120000 0x3f000>;
135                         interrupt-parent = <&icu0>;
136                         interrupts = <62 91>;
137                         status = "disabled";
138                 };
139
140                 ifxhcd@E106000 {
141                         compatible = "lantiq,ifxhcd-arx100-dwc2";
142                         reg = <0xE106000 0x1000
143                                 0xE1E0000 0x3f000>;
144                         interrupt-parent = <&icu0>;
145                         interrupts = <91>;
146                         status = "disabled";
147                 };
148
149                 deu@E103100 {
150                         compatible = "lantiq,deu-arx100";
151                         reg = <0xE103100 0xf00>;
152                 };
153
154                 dma0: dma@E104100 {
155                         compatible = "lantiq,dma-xway";
156                         reg = <0xE104100 0x800>;
157                 };
158
159                 ebu0: ebu@E105300 {
160                         compatible = "lantiq,ebu-xway";
161                         reg = <0xE105300 0x100>;
162                 };
163
164                 mei@E116000 {
165                         compatible = "lantiq,mei-xway";
166                         interrupt-parent = <&icu0>;
167                         interrupts = <63>;
168                 };
169
170                 etop@E180000 {
171                         compatible = "lantiq,etop-xway";
172                         reg = <0xE180000 0x40000
173                                 0xE108000 0x200>;
174                         interrupt-parent = <&icu0>;
175                         interrupts = <73 72>;
176                         mac-address = [ 00 11 22 33 44 55 ];
177                 };
178
179                 ppe@E234000 {
180                         compatible = "lantiq,ppe-arx100";
181                         interrupt-parent = <&icu0>;
182                         interrupts = <96>;
183                 };
184
185                 pci0: pci@E105400 {
186                         status = "disabled";
187                         #address-cells = <3>;
188                         #size-cells = <2>;
189                         #interrupt-cells = <1>;
190                         compatible = "lantiq,pci-xway";
191                         bus-range = <0x0 0x0>;
192                         ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000   /* pci memory */
193                                   0x1000000 0 0x00000000 0xAE00000 0 0x200000>; /* io space */
194                         reg = <0x7000000 0x8000         /* config space */
195                                 0xE105400 0x400>;       /* pci bridge */
196                         lantiq,bus-clock = <33333333>;
197                         interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
198                         interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
199                         req-mask = <0x1>;
200                 };
201         };
202
203         adsl {
204                 compatible = "lantiq,adsl-arx100";
205         };
206 };