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