Andrew Davis | 856ec34 | 2023-04-11 13:25:02 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 2 | /* |
Lokesh Vutla | e3187b9 | 2017-01-31 09:32:57 +0530 | [diff] [blame] | 3 | * Device Tree Source for K2G SOC |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 4 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 5 | * Copyright (C) 2016-2017 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 9 | |
| 10 | / { |
Lokesh Vutla | e3187b9 | 2017-01-31 09:32:57 +0530 | [diff] [blame] | 11 | model = "Texas Instruments K2G SoC"; |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 12 | #address-cells = <1>; |
| 13 | #size-cells = <1>; |
| 14 | interrupt-parent = <&gic>; |
| 15 | |
Cooper Jr., Franklin | 9856112 | 2017-06-16 17:25:28 -0500 | [diff] [blame] | 16 | chosen { }; |
| 17 | |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 18 | aliases { |
| 19 | serial0 = &uart0; |
Vignesh R | cefb8f3 | 2016-07-06 09:59:05 +0530 | [diff] [blame] | 20 | spi0 = &spi0; |
| 21 | spi1 = &spi1; |
| 22 | spi2 = &spi2; |
| 23 | spi3 = &spi3; |
Vignesh R | 9b9f0f8 | 2016-07-06 10:20:57 +0530 | [diff] [blame] | 24 | spi4 = &qspi; |
Cooper Jr., Franklin | 4fd14ad | 2017-04-20 10:25:46 -0500 | [diff] [blame] | 25 | i2c0 = &i2c0; |
| 26 | i2c1 = &i2c1; |
| 27 | i2c2 = &i2c2; |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 28 | }; |
| 29 | |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 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 | |
Andrew Davis | 33e399a | 2023-04-11 13:25:09 -0500 | [diff] [blame] | 43 | gic: interrupt-controller@2561000 { |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 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 | |
Mugunthan V N | 3784cc2 | 2016-02-02 15:51:37 +0530 | [diff] [blame] | 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 | |
Vignesh R | 9b9f0f8 | 2016-07-06 10:20:57 +0530 | [diff] [blame] | 84 | qspi: qspi@2940000 { |
Simon Goldschmidt | 454c9b3 | 2018-11-02 11:54:51 +0100 | [diff] [blame] | 85 | compatible = "cdns,qspi-nor"; |
Vignesh R | 9b9f0f8 | 2016-07-06 10:20:57 +0530 | [diff] [blame] | 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>; |
Jason Rush | feaa3f9 | 2018-01-23 17:13:10 -0600 | [diff] [blame] | 92 | cdns,fifo-depth = <256>; |
| 93 | cdns,fifo-width = <4>; |
| 94 | cdns,trigger-address = <0x24000000>; |
Vignesh R | 9b9f0f8 | 2016-07-06 10:20:57 +0530 | [diff] [blame] | 95 | status = "disabled"; |
| 96 | }; |
| 97 | |
Lokesh Vutla | e3187b9 | 2017-01-31 09:32:57 +0530 | [diff] [blame] | 98 | #include "keystone-k2g-netcp.dtsi" |
Nishanth Menon | 715137c | 2016-02-25 12:53:46 -0600 | [diff] [blame] | 99 | |
| 100 | pmmc: pmmc@2900000 { |
| 101 | compatible = "ti,power-processor"; |
| 102 | reg = <0x02900000 0x40000>; |
| 103 | ti,lpsc_module = <1>; |
| 104 | }; |
| 105 | |
Vignesh R | cefb8f3 | 2016-07-06 09:59:05 +0530 | [diff] [blame] | 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 | }; |
Cooper Jr., Franklin | 4fd14ad | 2017-04-20 10:25:46 -0500 | [diff] [blame] | 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 | }; |
Sekhar Nori | 0d368c0 | 2016-08-10 19:24:04 +0530 | [diff] [blame] | 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 | }; |
Jean-Jacques Hiblot | 24163d6 | 2018-12-04 11:12:58 +0100 | [diff] [blame] | 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 | }; |
Lokesh Vutla | e8e92b8 | 2015-09-19 16:26:55 +0530 | [diff] [blame] | 257 | }; |
| 258 | }; |