Prepare v2023.10
[platform/kernel/u-boot.git] / arch / arm / dts / keystone-k2g.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for K2G SOC
4  *
5  * Copyright (C) 2016-2017 Texas Instruments Incorporated - http://www.ti.com/
6  */
7
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9
10 / {
11         model = "Texas Instruments K2G SoC";
12         #address-cells = <1>;
13         #size-cells = <1>;
14         interrupt-parent = <&gic>;
15
16         chosen { };
17
18         aliases {
19                 serial0 = &uart0;
20                 spi0 = &spi0;
21                 spi1 = &spi1;
22                 spi2 = &spi2;
23                 spi3 = &spi3;
24                 spi4 = &qspi;
25                 i2c0 = &i2c0;
26                 i2c1 = &i2c1;
27                 i2c2 = &i2c2;
28         };
29
30         cpus {
31                 #address-cells = <1>;
32                 #size-cells = <0>;
33
34                 interrupt-parent = <&gic>;
35
36                 cpu@0 {
37                         compatible = "arm,cortex-a15";
38                         device_type = "cpu";
39                         reg = <0>;
40                 };
41         };
42
43         gic: interrupt-controller@2561000 {
44                 compatible = "arm,cortex-a15-gic";
45                 #interrupt-cells = <3>;
46                 interrupt-controller;
47                 reg = <0x0 0x02561000 0x0 0x1000>,
48                       <0x0 0x02562000 0x0 0x2000>,
49                       <0x0 0x02564000 0x0 0x1000>,
50                       <0x0 0x02566000 0x0 0x2000>;
51                 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
52                                 IRQ_TYPE_LEVEL_HIGH)>;
53         };
54
55         soc {
56                 #address-cells = <1>;
57                 #size-cells = <1>;
58                 compatible = "ti,keystone","simple-bus";
59                 interrupt-parent = <&gic>;
60                 ranges;
61
62                 uart0: serial@02530c00 {
63                         compatible = "ns16550a";
64                         current-speed = <115200>;
65                         reg-shift = <2>;
66                         reg-io-width = <4>;
67                         reg = <0x02530c00 0x100>;
68                         clock-names = "uart";
69                         interrupts = <GIC_SPI 164 IRQ_TYPE_EDGE_RISING>;
70                 };
71
72                 mdio: mdio@4200f00 {
73                         compatible      = "ti,keystone_mdio", "ti,davinci_mdio";
74                         #address-cells = <1>;
75                         #size-cells = <0>;
76                         /* power-domains = <&k2g_pds K2G_DEV_NSS0>; */
77                         /* clocks = <&k2g_clks K2G_DEV_NSS0 K2G_DEV_NSS_ESW_CLK>; */
78                         clock-names = "fck";
79                         reg = <0x04200f00 0x100>;
80                         status = "disabled";
81                         bus_freq = <2500000>;
82                 };
83
84                 qspi: qspi@2940000 {
85                         compatible =  "cdns,qspi-nor";
86                         #address-cells = <1>;
87                         #size-cells = <0>;
88                         reg = <0x02940000 0x1000>,
89                               <0x24000000 0x4000000>;
90                         interrupts = <GIC_SPI 198 IRQ_TYPE_EDGE_RISING>;
91                         num-cs = <4>;
92                         cdns,fifo-depth = <256>;
93                         cdns,fifo-width = <4>;
94                         cdns,trigger-address = <0x24000000>;
95                         status = "disabled";
96                 };
97
98                 #include "keystone-k2g-netcp.dtsi"
99
100                 pmmc: pmmc@2900000 {
101                         compatible = "ti,power-processor";
102                         reg = <0x02900000 0x40000>;
103                         ti,lpsc_module = <1>;
104                 };
105
106                 spi0: spi@21805400 {
107                         compatible = "ti,keystone-spi", "ti,dm6441-spi";
108                         reg = <0x21805400 0x200>;
109                         num-cs = <4>;
110                         ti,davinci-spi-intr-line = <0>;
111                         interrupts = <GIC_SPI 64 IRQ_TYPE_EDGE_RISING>;
112                         #address-cells = <1>;
113                         #size-cells = <0>;
114                         status = "disabled";
115                 };
116
117                 spi1: spi@21805800 {
118                         compatible = "ti,keystone-spi", "ti,dm6441-spi";
119                         reg = <0x21805800 0x200>;
120                         num-cs = <4>;
121                         ti,davinci-spi-intr-line = <0>;
122                         interrupts = <GIC_SPI 66 IRQ_TYPE_EDGE_RISING>;
123                         #address-cells = <1>;
124                         #size-cells = <0>;
125                         status = "disabled";
126                 };
127
128                 spi2: spi@21805c00 {
129                         compatible = "ti,keystone-spi", "ti,dm6441-spi";
130                         reg = <0x21805C00 0x200>;
131                         num-cs = <4>;
132                         ti,davinci-spi-intr-line = <0>;
133                         interrupts = <GIC_SPI 68 IRQ_TYPE_EDGE_RISING>;
134                         #address-cells = <1>;
135                         #size-cells = <0>;
136                         status = "disabled";
137                 };
138
139                 spi3: spi@21806000 {
140                         compatible = "ti,keystone-spi", "ti,dm6441-spi";
141                         reg = <0x21806000 0x200>;
142                         num-cs = <4>;
143                         ti,davinci-spi-intr-line = <0>;
144                         interrupts = <GIC_SPI 70 IRQ_TYPE_EDGE_RISING>;
145                         #address-cells = <1>;
146                         #size-cells = <0>;
147                         status = "disabled";
148                 };
149                 i2c0: i2c@2530000 {
150                         compatible = "ti,keystone-i2c";
151                         reg = <0x02530000 0x400>;
152                         clock-frequency = <100000>;
153                         interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
154                         #address-cells = <1>;
155                         #size-cells = <0>;
156                         status = "disabled";
157                 };
158
159                 i2c1: i2c@2530400 {
160                         compatible = "ti,keystone-i2c";
161                         reg = <0x02530400 0x400>;
162                         clock-frequency = <100000>;
163                         interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>;
164                         #address-cells = <1>;
165                         #size-cells = <0>;
166                         status = "disabled";
167                 };
168
169                 i2c2: i2c@2530800 {
170                         compatible = "ti,keystone-i2c";
171                         reg = <0x02530800 0x400>;
172                         clock-frequency = <100000>;
173                         interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
174                         #address-cells = <1>;
175                         #size-cells = <0>;
176                         status = "disabled";
177                 };
178
179                 mmc0: mmc@23000000 {
180                         compatible = "ti,omap4-hsmmc";
181                         reg = <0x23000000 0x400>;
182                         interrupts = <GIC_SPI 96 IRQ_TYPE_EDGE_RISING>;
183                         bus-width = <4>;
184                         ti,needs-special-reset;
185                         no-1-8-v;
186                         max-frequency = <96000000>;
187                         status = "disabled";
188                 };
189
190                 mmc1: mmc@23100000 {
191                         compatible = "ti,omap4-hsmmc";
192                         reg = <0x23100000 0x400>;
193                         interrupts = <GIC_SPI 97 IRQ_TYPE_EDGE_RISING>;
194                         bus-width = <8>;
195                         ti,needs-special-reset;
196                         ti,non-removable;
197                         max-frequency = <96000000>;
198                         status = "disabled";
199                         clock-names = "fck";
200                 };
201
202                 usb0_phy: usb-phy@0 {
203                         compatible = "usb-nop-xceiv";
204                         status = "disabled";
205                 };
206
207                 keystone_usb0: keystone-dwc3@2680000 {
208                         compatible = "ti,keystone-dwc3";
209                         #address-cells = <1>;
210                         #size-cells = <1>;
211                         reg = <0x2680000 0x10000>;
212                         interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
213                         ranges;
214                         dma-coherent;
215                         dma-ranges;
216                         status = "disabled";
217                         /*power-domains = <&k2g_pds 0x0016>;*/
218
219                         usb0: usb@2690000 {
220                                 compatible = "snps,dwc3";
221                                 reg = <0x2690000 0x10000>;
222                                 interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>;
223                                 maximum-speed = "high-speed";
224                                 dr_mode = "otg";
225                                 /*usb-phy = <&usb0_phy>;*/
226                                 status = "disabled";
227                         };
228                 };
229
230                 usb1_phy: usb-phy@1 {
231                         compatible = "usb-nop-xceiv";
232                         status = "disabled";
233                 };
234
235                 keystone_usb1: keystone-dwc3@2580000 {
236                         compatible = "ti,keystone-dwc3";
237                         #address-cells = <1>;
238                         #size-cells = <1>;
239                         reg = <0x2580000 0x10000>;
240                         interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
241                         ranges;
242                         dma-coherent;
243                         dma-ranges;
244                         status = "disabled";
245                         /*power-domains = <&k2g_pds 0x0017>;*/
246
247                         usb1: usb@2590000 {
248                                 compatible = "snps,dwc3";
249                                 reg = <0x2590000 0x10000>;
250                                 interrupts = <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>;
251                                 maximum-speed = "high-speed";
252                                 dr_mode = "otg";
253                                 /*usb-phy = <&usb1_phy>;*/
254                                 status = "disabled";
255                         };
256                 };
257         };
258 };