blob: 5c3ff1272182c32ccea54b3e386abb9f096d0fed [file] [log] [blame]
Andrew Davis856ec342023-04-11 13:25:02 -05001// SPDX-License-Identifier: GPL-2.0
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05302/*
Lokesh Vutlae3187b92017-01-31 09:32:57 +05303 * Device Tree Source for K2G SOC
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05304 *
Nishanth Menoneaa39c62023-11-01 15:56:03 -05005 * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05306 */
7
8#include <dt-bindings/interrupt-controller/arm-gic.h>
Lokesh Vutlae8e92b82015-09-19 16:26:55 +05309
10/ {
Lokesh Vutlae3187b92017-01-31 09:32:57 +053011 model = "Texas Instruments K2G SoC";
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053012 #address-cells = <1>;
13 #size-cells = <1>;
14 interrupt-parent = <&gic>;
15
Cooper Jr., Franklin98561122017-06-16 17:25:28 -050016 chosen { };
17
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053018 aliases {
19 serial0 = &uart0;
Vignesh Rcefb8f32016-07-06 09:59:05 +053020 spi0 = &spi0;
21 spi1 = &spi1;
22 spi2 = &spi2;
23 spi3 = &spi3;
Vignesh R9b9f0f82016-07-06 10:20:57 +053024 spi4 = &qspi;
Cooper Jr., Franklin4fd14ad2017-04-20 10:25:46 -050025 i2c0 = &i2c0;
26 i2c1 = &i2c1;
27 i2c2 = &i2c2;
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053028 };
29
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053030 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
Andrew Davis33e399a2023-04-11 13:25:09 -050043 gic: interrupt-controller@2561000 {
Lokesh Vutlae8e92b82015-09-19 16:26:55 +053044 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
Mugunthan V N3784cc22016-02-02 15:51:37 +053072 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
Vignesh R9b9f0f82016-07-06 10:20:57 +053084 qspi: qspi@2940000 {
Simon Goldschmidt454c9b32018-11-02 11:54:51 +010085 compatible = "cdns,qspi-nor";
Vignesh R9b9f0f82016-07-06 10:20:57 +053086 #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>;
Jason Rushfeaa3f92018-01-23 17:13:10 -060092 cdns,fifo-depth = <256>;
93 cdns,fifo-width = <4>;
94 cdns,trigger-address = <0x24000000>;
Vignesh R9b9f0f82016-07-06 10:20:57 +053095 status = "disabled";
96 };
97
Lokesh Vutlae3187b92017-01-31 09:32:57 +053098 #include "keystone-k2g-netcp.dtsi"
Nishanth Menon715137c2016-02-25 12:53:46 -060099
100 pmmc: pmmc@2900000 {
101 compatible = "ti,power-processor";
102 reg = <0x02900000 0x40000>;
103 ti,lpsc_module = <1>;
104 };
105
Vignesh Rcefb8f32016-07-06 09:59:05 +0530106 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 };
Cooper Jr., Franklin4fd14ad2017-04-20 10:25:46 -0500149 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 };
Sekhar Nori0d368c02016-08-10 19:24:04 +0530178
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 };
Jean-Jacques Hiblot24163d62018-12-04 11:12:58 +0100201
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 };
Lokesh Vutlae8e92b82015-09-19 16:26:55 +0530257 };
258};