lantiq: ase: fix SPI support
[librecmc/librecmc.git] / target / linux / lantiq / dts / amazonse.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2
3 / {
4         #address-cells = <1>;
5         #size-cells = <1>;
6         compatible = "lantiq,xway", "lantiq,ase";
7
8         aliases {
9                 serial0 = &asc1;
10         };
11
12         chosen {
13                 stdout-path = "serial0:115200n8";
14         };
15
16         cpus {
17                 cpu@0 {
18                         compatible = "mips,mips4Kc";
19                 };
20         };
21
22         memory@0 {
23                 device_type = "memory";
24         };
25
26         biu@1F800000 {
27                 #address-cells = <1>;
28                 #size-cells = <1>;
29                 compatible = "lantiq,biu", "simple-bus";
30                 reg = <0x1F800000 0x800000>;
31                 ranges = <0x0 0x1F800000 0x7FFFFF>;
32
33                 icu0: icu@80200 {
34                         #interrupt-cells = <1>;
35                         interrupt-controller;
36                         compatible = "lantiq,icu";
37                         reg = <0x80200 0x28
38                                 0x80228 0x28
39                                 0x80250 0x28
40                                 0x80278 0x28
41                                 0x802a0 0x28>;
42                 };
43
44                 watchdog@803F0 {
45                         compatible = "lantiq,wdt";
46                         reg = <0x803F0 0x10>;
47                 };
48         };
49
50         sram@1F000000 {
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53                 compatible = "lantiq,sram", "simple-bus";
54                 reg = <0x1F000000 0x800000>;
55                 ranges = <0x0 0x1F000000 0x7FFFFF>;
56
57                 eiu0: eiu@101000 {
58                         #interrupt-cells = <1>;
59                         interrupt-controller;
60                         compatible = "lantiq,eiu-xway";
61                         reg = <0x101000 0x1000>;
62                         interrupt-parent = <&icu0>;
63                         lantiq,eiu-irqs = <29 30 31>;
64                 };
65
66                 pmu0: pmu@102000 {
67                         compatible = "lantiq,pmu-xway";
68                         reg = <0x102000 0x1000>;
69                 };
70
71                 cgu0: cgu@103000 {
72                         compatible = "lantiq,cgu-xway";
73                         reg = <0x103000 0x1000>;
74                         #clock-cells = <1>;
75                 };
76
77                 rcu0: rcu@203000 {
78                         compatible = "lantiq,rcu-xway";
79                         reg = <0x203000 0x1000>;
80                 };
81         };
82
83         fpi@10000000 {
84                 #address-cells = <1>;
85                 #size-cells = <1>;
86                 compatible = "lantiq,fpi", "simple-bus";
87                 ranges = <0x0 0x10000000 0xEEFFFFF>;
88                 reg = <0x10000000 0xEF00000>;
89
90                 localbus@0 {
91                         #address-cells = <2>;
92                         #size-cells = <1>;
93                         ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
94                                 1 0 0x4000000 0x4000010>; /* addsel1 */
95                         compatible = "lantiq,localbus", "simple-bus";
96                 };
97
98                 spi@E100800 {
99                         compatible = "lantiq,ase-spi";
100                         reg = <0xE100800 0x100>;
101                         interrupt-parent = <&icu0>;
102                         interrupts = <24 25 26>;
103                         interrupt-names = "spi_rx", "spi_tx", "spi_err",
104                                         "spi_frm";
105                         #address-cells = <1>;
106                         #size-cells = <1>;
107                         status = "disabled";
108                 };
109
110                 gptu@E100A00 {
111                         compatible = "lantiq,gptu-xway";
112                         reg = <0xE100A00 0x100>;
113                         interrupt-parent = <&icu0>;
114                         interrupts = <33 34 35 36 37 38>;
115                 };
116
117                 gpio: pinmux@E100B10 {
118                         compatible = "lantiq,ase-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 = <72 74 75>;
129                 };
130
131                 mei@E116000 {
132                         compatible = "lantiq,mei-xway";
133                         interrupt-parent = <&icu0>;
134                         interrupts = <81>;
135                 };
136
137                 ifxhcd@E101000 {
138                         compatible = "lantiq,ase-usb", "lantiq,ifxhcd-ase";
139                         reg = <0xE101000 0x1000
140                                 0xE120000 0x3f000>;
141                         interrupt-parent = <&icu0>;
142                         interrupts = <39>;
143                         dr_mode = "host";
144                         status = "disabled";
145                 };
146
147                 dma0: dma@E104100 {
148                         compatible = "lantiq,dma-xway";
149                         reg = <0xE104100 0x800>;
150                 };
151
152                 ebu0: ebu@E105300 {
153                         compatible = "lantiq,ebu-xway";
154                         reg = <0xE105300 0x100>;
155                 };
156
157                 ppe@E234000 {
158                         compatible = "lantiq,ppe-ase";
159                         interrupt-parent = <&icu0>;
160                         interrupts = <85>;
161                 };
162
163                 etop@E180000 {
164                         compatible = "lantiq,etop-xway";
165                         reg = <0xE180000 0x40000>;
166                         interrupt-parent = <&icu0>;
167                         interrupts = <105 109>;
168                 };
169         };
170
171         adsl {
172                 compatible = "lantiq,adsl-ase";
173         };
174 };