blob: dff9262ca6771d926785dd5bc4f2b199bfd27fbe [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
R Sricharan6e58b8f2013-08-14 19:08:20 +05302/*
Alexander A. Klimov75f66812020-07-08 11:34:51 +02003 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
R Sricharan6e58b8f2013-08-14 19:08:20 +05304 *
R Sricharan6e58b8f2013-08-14 19:08:20 +05305 * Based on "omap4.dtsi"
6 */
7
Tony Lindgrene14d7e52018-01-11 16:04:03 -08008#include <dt-bindings/bus/ti-sysc.h>
9#include <dt-bindings/clock/dra7.h>
R Sricharan6e58b8f2013-08-14 19:08:20 +053010#include <dt-bindings/interrupt-controller/arm-gic.h>
11#include <dt-bindings/pinctrl/dra.h>
Tero Kristo18395332017-12-08 17:17:29 +020012#include <dt-bindings/clock/dra7.h>
R Sricharan6e58b8f2013-08-14 19:08:20 +053013
R Sricharana46631c2014-06-26 12:55:31 +053014#define MAX_SOURCES 400
R Sricharana46631c2014-06-26 12:55:31 +053015
R Sricharan6e58b8f2013-08-14 19:08:20 +053016/ {
Lokesh Vutladae320e2016-02-24 15:41:04 +053017 #address-cells = <2>;
18 #size-cells = <2>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053019
20 compatible = "ti,dra7xx";
Marc Zyngier783d3182015-03-11 15:43:44 +000021 interrupt-parent = <&crossbar_mpu>;
Javier Martinez Canillas7f6c8572016-12-19 11:44:41 -030022 chosen { };
R Sricharan6e58b8f2013-08-14 19:08:20 +053023
24 aliases {
Nishanth Menon20b80942013-10-16 15:21:03 -050025 i2c0 = &i2c1;
26 i2c1 = &i2c2;
27 i2c2 = &i2c3;
28 i2c3 = &i2c4;
29 i2c4 = &i2c5;
R Sricharan6e58b8f2013-08-14 19:08:20 +053030 serial0 = &uart1;
31 serial1 = &uart2;
32 serial2 = &uart3;
33 serial3 = &uart4;
34 serial4 = &uart5;
35 serial5 = &uart6;
Nishanth Menon065bd7f2014-10-21 11:18:15 -050036 serial6 = &uart7;
37 serial7 = &uart8;
38 serial8 = &uart9;
39 serial9 = &uart10;
Grygorii Strashkoec9bc5b2020-09-07 23:21:25 +030040 ethernet0 = &cpsw_port1;
41 ethernet1 = &cpsw_port2;
Roger Quadros9ec49b92014-08-15 16:08:36 +030042 d_can0 = &dcan1;
43 d_can1 = &dcan2;
Mugunthan V N480b2b32015-11-19 12:31:01 +053044 spi0 = &qspi;
R Sricharan6e58b8f2013-08-14 19:08:20 +053045 };
46
R Sricharan6e58b8f2013-08-14 19:08:20 +053047 timer {
48 compatible = "arm,armv7-timer";
49 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
50 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
51 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
52 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier783d3182015-03-11 15:43:44 +000053 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053054 };
55
56 gic: interrupt-controller@48211000 {
57 compatible = "arm,cortex-a15-gic";
58 interrupt-controller;
59 #interrupt-cells = <3>;
Lokesh Vutladae320e2016-02-24 15:41:04 +053060 reg = <0x0 0x48211000 0x0 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +000061 <0x0 0x48212000 0x0 0x2000>,
Lokesh Vutladae320e2016-02-24 15:41:04 +053062 <0x0 0x48214000 0x0 0x2000>,
63 <0x0 0x48216000 0x0 0x2000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053064 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
Marc Zyngier783d3182015-03-11 15:43:44 +000065 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053066 };
67
Marc Zyngier7136d452015-03-11 15:43:49 +000068 wakeupgen: interrupt-controller@48281000 {
69 compatible = "ti,omap5-wugen-mpu", "ti,omap4-wugen-mpu";
70 interrupt-controller;
71 #interrupt-cells = <3>;
Lokesh Vutladae320e2016-02-24 15:41:04 +053072 reg = <0x0 0x48281000 0x0 0x1000>;
Marc Zyngier7136d452015-03-11 15:43:49 +000073 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053074 };
75
Dave Gerlachb82ffb32016-05-18 18:36:32 -050076 cpus {
77 #address-cells = <1>;
78 #size-cells = <0>;
79
80 cpu0: cpu@0 {
81 device_type = "cpu";
82 compatible = "arm,cortex-a15";
83 reg = <0>;
84
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -060085 operating-points-v2 = <&cpu0_opp_table>;
Dave Gerlachb82ffb32016-05-18 18:36:32 -050086
87 clocks = <&dpll_mpu_ck>;
88 clock-names = "cpu";
89
90 clock-latency = <300000>; /* From omap-cpufreq driver */
91
92 /* cooling options */
Dave Gerlachb82ffb32016-05-18 18:36:32 -050093 #cooling-cells = <2>; /* min followed by max */
Dave Gerlach000fb7a2017-12-19 09:24:19 -060094
95 vbb-supply = <&abb_mpu>;
Dave Gerlachb82ffb32016-05-18 18:36:32 -050096 };
97 };
98
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -060099 cpu0_opp_table: opp-table {
100 compatible = "operating-points-v2-ti-cpu";
101 syscon = <&scm_wkup>;
102
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +0530103 opp_nom-1000000000 {
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600104 opp-hz = /bits/ 64 <1000000000>;
Dave Gerlach000fb7a2017-12-19 09:24:19 -0600105 opp-microvolt = <1060000 850000 1150000>,
106 <1060000 850000 1150000>;
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600107 opp-supported-hw = <0xFF 0x01>;
108 opp-suspend;
109 };
110
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +0530111 opp_od-1176000000 {
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600112 opp-hz = /bits/ 64 <1176000000>;
Dave Gerlach000fb7a2017-12-19 09:24:19 -0600113 opp-microvolt = <1160000 885000 1160000>,
114 <1160000 885000 1160000>;
115
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600116 opp-supported-hw = <0xFF 0x02>;
117 };
Dave Gerlachbc69fed2017-12-19 09:24:21 -0600118
119 opp_high@1500000000 {
120 opp-hz = /bits/ 64 <1500000000>;
121 opp-microvolt = <1210000 950000 1250000>,
122 <1210000 950000 1250000>;
123 opp-supported-hw = <0xFF 0x04>;
124 };
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600125 };
126
R Sricharan6e58b8f2013-08-14 19:08:20 +0530127 /*
Geert Uytterhoeven5c5be9d2014-03-28 11:11:37 +0100128 * The soc node represents the soc top level view. It is used for IPs
R Sricharan6e58b8f2013-08-14 19:08:20 +0530129 * that are not memory mapped in the MPU view or for the MPU itself.
130 */
131 soc {
132 compatible = "ti,omap-infra";
133 mpu {
134 compatible = "ti,omap5-mpu";
135 ti,hwmods = "mpu";
136 };
137 };
138
139 /*
140 * XXX: Use a flat representation of the SOC interconnect.
141 * The real OMAP interconnect network is quite complex.
Geert Uytterhoevenb7ab5242014-03-28 11:11:39 +0100142 * Since it will not bring real advantage to represent that in DT for
R Sricharan6e58b8f2013-08-14 19:08:20 +0530143 * the moment, just use a fake OCP bus entry to represent the whole bus
144 * hierarchy.
145 */
Suman Annaecdeca62020-02-27 16:28:37 -0600146 ocp: ocp {
Tony Lindgren7f2659c2021-03-10 14:03:46 +0200147 compatible = "simple-bus";
R Sricharan6e58b8f2013-08-14 19:08:20 +0530148 #address-cells = <1>;
149 #size-cells = <1>;
Lokesh Vutladae320e2016-02-24 15:41:04 +0530150 ranges = <0x0 0x0 0x0 0xc0000000>;
Roger Quadroscfb5d652020-03-13 11:47:17 +0200151 dma-ranges = <0x80000000 0x0 0x80000000 0x80000000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530152 ti,hwmods = "l3_main_1", "l3_main_2";
Tony Lindgren7f2659c2021-03-10 14:03:46 +0200153
154 l3-noc@44000000 {
155 compatible = "ti,dra7-l3-noc";
156 reg = <0x44000000 0x1000>,
157 <0x45000000 0x1000>;
158 interrupts-extended = <&crossbar_mpu GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
159 <&wakeupgen GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
160 };
R Sricharan6e58b8f2013-08-14 19:08:20 +0530161
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700162 l4_cfg: interconnect@4a000000 {
Tero Kristod9195012015-02-12 11:37:13 +0200163 };
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700164 l4_wkup: interconnect@4ae00000 {
165 };
166 l4_per1: interconnect@48000000 {
167 };
168 l4_per2: interconnect@48400000 {
169 };
170 l4_per3: interconnect@48800000 {
Tero Kristoee6c7502013-07-18 17:18:33 +0300171 };
172
Tony Lindgren785d9432021-03-10 14:03:45 +0200173 /*
174 * Register access seems to have complex dependencies and also
175 * seems to need an enabled phy. See the TRM chapter for "Table
176 * 26-678. Main Sequence PCIe Controller Global Initialization"
177 * and also dra7xx_pcie_probe().
178 */
179 axi0: target-module@51000000 {
180 compatible = "ti,sysc-omap4", "ti,sysc";
181 power-domains = <&prm_l3init>;
182 resets = <&prm_l3init 0>;
183 reset-names = "rstctrl";
184 clocks = <&pcie_clkctrl DRA7_PCIE_PCIE1_CLKCTRL 0>,
185 <&pcie_clkctrl DRA7_PCIE_PCIE1_CLKCTRL 9>,
186 <&pcie_clkctrl DRA7_PCIE_PCIE1_CLKCTRL 10>;
187 clock-names = "fck", "phy-clk", "phy-clk-div";
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530188 #size-cells = <1>;
189 #address-cells = <1>;
Tony Lindgrenc7610282021-03-10 14:03:45 +0200190 ranges = <0x51000000 0x51000000 0x3000>,
191 <0x20000000 0x20000000 0x10000000>;
Kishon Vijay Abraham I90d4d3f2020-04-17 12:13:40 +0530192 dma-ranges;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530193 /**
194 * To enable PCI endpoint mode, disable the pcie1_rc
195 * node and enable pcie1_ep mode.
196 */
197 pcie1_rc: pcie@51000000 {
Tony Lindgrenc7610282021-03-10 14:03:45 +0200198 reg = <0x51000000 0x2000>,
199 <0x51002000 0x14c>,
200 <0x20001000 0x2000>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530201 reg-names = "rc_dbics", "ti_conf", "config";
202 interrupts = <0 232 0x4>, <0 233 0x4>;
203 #address-cells = <3>;
204 #size-cells = <2>;
205 device_type = "pci";
Tony Lindgrenc7610282021-03-10 14:03:45 +0200206 ranges = <0x81000000 0 0x00000000 0x20003000 0 0x00010000>,
207 <0x82000000 0 0x20013000 0x20013000 0 0x0ffed000>;
Rob Herring7d79f602017-03-21 21:03:01 -0500208 bus-range = <0x00 0xff>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530209 #interrupt-cells = <1>;
210 num-lanes = <1>;
Kishon Vijay Abraham Ibed596d2016-08-10 18:03:18 +0530211 linux,pci-domain = <0>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530212 ti,hwmods = "pcie1";
213 phys = <&pcie1_phy>;
214 phy-names = "pcie-phy0";
Kishon Vijay Abraham Ib5acec02019-03-25 15:15:25 +0530215 ti,syscon-lane-sel = <&scm_conf_pcie 0x18>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530216 interrupt-map-mask = <0 0 0 7>;
217 interrupt-map = <0 0 0 1 &pcie1_intc 1>,
218 <0 0 0 2 &pcie1_intc 2>,
219 <0 0 0 3 &pcie1_intc 3>,
220 <0 0 0 4 &pcie1_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530221 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530222 status = "disabled";
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530223 pcie1_intc: interrupt-controller {
224 interrupt-controller;
225 #address-cells = <0>;
226 #interrupt-cells = <1>;
227 };
228 };
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530229
230 pcie1_ep: pcie_ep@51000000 {
Tony Lindgrenc7610282021-03-10 14:03:45 +0200231 reg = <0x51000000 0x28>,
232 <0x51002000 0x14c>,
233 <0x51001000 0x28>,
234 <0x20001000 0x10000000>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530235 reg-names = "ep_dbics", "ti_conf", "ep_dbics2", "addr_space";
236 interrupts = <0 232 0x4>;
237 num-lanes = <1>;
238 num-ib-windows = <4>;
239 num-ob-windows = <16>;
240 ti,hwmods = "pcie1";
241 phys = <&pcie1_phy>;
242 phy-names = "pcie-phy0";
Vignesh R6d0af442018-09-25 10:51:51 +0530243 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Ib5acec02019-03-25 15:15:25 +0530244 ti,syscon-lane-sel = <&scm_conf_pcie 0x18>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530245 status = "disabled";
246 };
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530247 };
248
Tony Lindgren785d9432021-03-10 14:03:45 +0200249 /*
250 * Register access seems to have complex dependencies and also
251 * seems to need an enabled phy. See the TRM chapter for "Table
252 * 26-678. Main Sequence PCIe Controller Global Initialization"
253 * and also dra7xx_pcie_probe().
254 */
255 axi1: target-module@51800000 {
256 compatible = "ti,sysc-omap4", "ti,sysc";
257 clocks = <&pcie_clkctrl DRA7_PCIE_PCIE2_CLKCTRL 0>,
258 <&pcie_clkctrl DRA7_PCIE_PCIE2_CLKCTRL 9>,
259 <&pcie_clkctrl DRA7_PCIE_PCIE2_CLKCTRL 10>;
260 clock-names = "fck", "phy-clk", "phy-clk-div";
261 power-domains = <&prm_l3init>;
262 resets = <&prm_l3init 1>;
263 reset-names = "rstctrl";
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530264 #size-cells = <1>;
265 #address-cells = <1>;
Tony Lindgrenc7610282021-03-10 14:03:45 +0200266 ranges = <0x51800000 0x51800000 0x3000>,
267 <0x30000000 0x30000000 0x10000000>;
Kishon Vijay Abraham I90d4d3f2020-04-17 12:13:40 +0530268 dma-ranges;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530269 status = "disabled";
Kishon Vijay Abraham I1ac19c82017-12-19 15:01:28 +0530270 pcie2_rc: pcie@51800000 {
Tony Lindgrenc7610282021-03-10 14:03:45 +0200271 reg = <0x51800000 0x2000>,
272 <0x51802000 0x14c>,
273 <0x30001000 0x2000>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530274 reg-names = "rc_dbics", "ti_conf", "config";
275 interrupts = <0 355 0x4>, <0 356 0x4>;
276 #address-cells = <3>;
277 #size-cells = <2>;
278 device_type = "pci";
Tony Lindgrenc7610282021-03-10 14:03:45 +0200279 ranges = <0x81000000 0 0x00000000 0x30003000 0 0x00010000>,
280 <0x82000000 0 0x30013000 0x30013000 0 0x0ffed000>;
Rob Herring7d79f602017-03-21 21:03:01 -0500281 bus-range = <0x00 0xff>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530282 #interrupt-cells = <1>;
283 num-lanes = <1>;
Kishon Vijay Abraham Ibed596d2016-08-10 18:03:18 +0530284 linux,pci-domain = <1>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530285 ti,hwmods = "pcie2";
286 phys = <&pcie2_phy>;
287 phy-names = "pcie-phy0";
288 interrupt-map-mask = <0 0 0 7>;
289 interrupt-map = <0 0 0 1 &pcie2_intc 1>,
290 <0 0 0 2 &pcie2_intc 2>,
291 <0 0 0 3 &pcie2_intc 3>,
292 <0 0 0 4 &pcie2_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530293 ti,syscon-unaligned-access = <&scm_conf1 0x14 2>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530294 pcie2_intc: interrupt-controller {
295 interrupt-controller;
296 #address-cells = <0>;
297 #interrupt-cells = <1>;
298 };
299 };
300 };
301
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500302 ocmcram1: ocmcram@40300000 {
303 compatible = "mmio-sram";
304 reg = <0x40300000 0x80000>;
305 ranges = <0x0 0x40300000 0x80000>;
306 #address-cells = <1>;
307 #size-cells = <1>;
Dave Gerlachfae3a9f2016-05-10 14:49:42 -0500308 /*
309 * This is a placeholder for an optional reserved
310 * region for use by secure software. The size
311 * of this region is not known until runtime so it
312 * is set as zero to either be updated to reserve
313 * space or left unchanged to leave all SRAM for use.
314 * On HS parts that that require the reserved region
315 * either the bootloader can update the size to
316 * the required amount or the node can be overridden
317 * from the board dts file for the secure platform.
318 */
319 sram-hs@0 {
320 compatible = "ti,secure-ram";
321 reg = <0x0 0x0>;
322 };
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500323 };
324
325 /*
326 * NOTE: ocmcram2 and ocmcram3 are not available on all
327 * DRA7xx and AM57xx variants. Confirm availability in
328 * the data manual for the exact part number in use
329 * before enabling these nodes in the board dts file.
330 */
331 ocmcram2: ocmcram@40400000 {
332 status = "disabled";
333 compatible = "mmio-sram";
334 reg = <0x40400000 0x100000>;
335 ranges = <0x0 0x40400000 0x100000>;
336 #address-cells = <1>;
337 #size-cells = <1>;
338 };
339
340 ocmcram3: ocmcram@40500000 {
341 status = "disabled";
342 compatible = "mmio-sram";
343 reg = <0x40500000 0x100000>;
344 ranges = <0x0 0x40500000 0x100000>;
345 #address-cells = <1>;
346 #size-cells = <1>;
347 };
348
Keerthyf7397ed2015-03-23 14:39:38 -0500349 bandgap: bandgap@4a0021e0 {
350 reg = <0x4a0021e0 0xc
351 0x4a00232c 0xc
352 0x4a002380 0x2c
353 0x4a0023C0 0x3c
354 0x4a002564 0x8
355 0x4a002574 0x50>;
356 compatible = "ti,dra752-bandgap";
357 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
358 #thermal-sensor-cells = <1>;
359 };
360
Suman Anna99639ac2015-10-02 18:23:22 -0500361 dsp1_system: dsp_system@40d00000 {
362 compatible = "syscon";
363 reg = <0x40d00000 0x100>;
364 };
365
Tony Lindgreneba61302017-06-16 17:24:29 +0530366 dra7_iodelay_core: padconf@4844a000 {
367 compatible = "ti,dra7-iodelay";
368 reg = <0x4844a000 0x0d1c>;
369 #address-cells = <1>;
370 #size-cells = <0>;
371 #pinctrl-cells = <2>;
372 };
373
Tony Lindgren13149bb2020-03-04 07:25:31 -0800374 target-module@43300000 {
375 compatible = "ti,sysc-omap4", "ti,sysc";
Tony Lindgren075249b2021-03-10 14:03:45 +0200376 reg = <0x43300000 0x4>,
377 <0x43300010 0x4>;
378 reg-names = "rev", "sysc";
379 ti,sysc-midle = <SYSC_IDLE_FORCE>,
380 <SYSC_IDLE_NO>,
381 <SYSC_IDLE_SMART>;
382 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
383 <SYSC_IDLE_NO>,
384 <SYSC_IDLE_SMART>;
Tony Lindgren13149bb2020-03-04 07:25:31 -0800385 clocks = <&l3main1_clkctrl DRA7_L3MAIN1_TPCC_CLKCTRL 0>;
386 clock-names = "fck";
387 #address-cells = <1>;
388 #size-cells = <1>;
389 ranges = <0x0 0x43300000 0x100000>;
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200390
Tony Lindgren13149bb2020-03-04 07:25:31 -0800391 edma: dma@0 {
392 compatible = "ti,edma3-tpcc";
393 reg = <0 0x100000>;
394 reg-names = "edma3_cc";
395 interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
396 <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
397 <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>;
398 interrupt-names = "edma3_ccint", "edma3_mperr",
399 "edma3_ccerrint";
400 dma-requests = <64>;
401 #dma-cells = <2>;
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200402
Tony Lindgren13149bb2020-03-04 07:25:31 -0800403 ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 0>;
404
405 /*
406 * memcpy is disabled, can be enabled with:
407 * ti,edma-memcpy-channels = <20 21>;
408 * for example. Note that these channels need to be
409 * masked in the xbar as well.
410 */
411 };
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200412 };
413
Tony Lindgren103d2642020-03-04 07:25:31 -0800414 target-module@43400000 {
415 compatible = "ti,sysc-omap4", "ti,sysc";
Tony Lindgren075249b2021-03-10 14:03:45 +0200416 reg = <0x43400000 0x4>,
417 <0x43400010 0x4>;
418 reg-names = "rev", "sysc";
419 ti,sysc-midle = <SYSC_IDLE_FORCE>,
420 <SYSC_IDLE_NO>,
421 <SYSC_IDLE_SMART>;
422 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
423 <SYSC_IDLE_NO>,
424 <SYSC_IDLE_SMART>;
Tony Lindgren103d2642020-03-04 07:25:31 -0800425 clocks = <&l3main1_clkctrl DRA7_L3MAIN1_TPTC0_CLKCTRL 0>;
426 clock-names = "fck";
427 #address-cells = <1>;
428 #size-cells = <1>;
429 ranges = <0x0 0x43400000 0x100000>;
430
431 edma_tptc0: dma@0 {
432 compatible = "ti,edma3-tptc";
433 reg = <0 0x100000>;
434 interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
435 interrupt-names = "edma3_tcerrint";
436 };
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200437 };
438
Tony Lindgren4286b672020-03-04 07:25:31 -0800439 target-module@43500000 {
440 compatible = "ti,sysc-omap4", "ti,sysc";
Tony Lindgren075249b2021-03-10 14:03:45 +0200441 reg = <0x43500000 0x4>,
442 <0x43500010 0x4>;
443 reg-names = "rev", "sysc";
444 ti,sysc-midle = <SYSC_IDLE_FORCE>,
445 <SYSC_IDLE_NO>,
446 <SYSC_IDLE_SMART>;
447 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
448 <SYSC_IDLE_NO>,
449 <SYSC_IDLE_SMART>;
Tony Lindgren4286b672020-03-04 07:25:31 -0800450 clocks = <&l3main1_clkctrl DRA7_L3MAIN1_TPTC1_CLKCTRL 0>;
451 clock-names = "fck";
452 #address-cells = <1>;
453 #size-cells = <1>;
454 ranges = <0x0 0x43500000 0x100000>;
455
456 edma_tptc1: dma@0 {
457 compatible = "ti,edma3-tptc";
458 reg = <0 0x100000>;
459 interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
460 interrupt-names = "edma3_tcerrint";
461 };
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200462 };
463
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530464 dmm@4e000000 {
465 compatible = "ti,omap5-dmm";
466 reg = <0x4e000000 0x800>;
R Sricharana46631c2014-06-26 12:55:31 +0530467 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530468 ti,hwmods = "dmm";
469 };
470
Suman Anna46ab8232020-04-24 18:12:29 +0300471 ipu1: ipu@58820000 {
472 compatible = "ti,dra7-ipu";
473 reg = <0x58820000 0x10000>;
474 reg-names = "l2ram";
475 iommus = <&mmu_ipu1>;
476 status = "disabled";
477 resets = <&prm_ipu 0>, <&prm_ipu 1>;
478 clocks = <&ipu1_clkctrl DRA7_IPU1_MMU_IPU1_CLKCTRL 0>;
479 firmware-name = "dra7-ipu1-fw.xem4";
480 };
481
482 ipu2: ipu@55020000 {
483 compatible = "ti,dra7-ipu";
484 reg = <0x55020000 0x10000>;
485 reg-names = "l2ram";
486 iommus = <&mmu_ipu2>;
487 status = "disabled";
488 resets = <&prm_core 0>, <&prm_core 1>;
489 clocks = <&ipu2_clkctrl DRA7_IPU2_MMU_IPU2_CLKCTRL 0>;
490 firmware-name = "dra7-ipu2-fw.xem4";
491 };
492
493 dsp1: dsp@40800000 {
494 compatible = "ti,dra7-dsp";
495 reg = <0x40800000 0x48000>,
496 <0x40e00000 0x8000>,
497 <0x40f00000 0x8000>;
498 reg-names = "l2ram", "l1pram", "l1dram";
499 ti,bootreg = <&scm_conf 0x55c 10>;
500 iommus = <&mmu0_dsp1>, <&mmu1_dsp1>;
501 status = "disabled";
502 resets = <&prm_dsp1 0>;
503 clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>;
504 firmware-name = "dra7-dsp1-fw.xe66";
505 };
506
Tero Kristodbd2d6f2019-12-12 14:51:18 +0200507 target-module@40d01000 {
508 compatible = "ti,sysc-omap2", "ti,sysc";
509 reg = <0x40d01000 0x4>,
510 <0x40d01010 0x4>,
511 <0x40d01014 0x4>;
512 reg-names = "rev", "sysc", "syss";
513 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
514 <SYSC_IDLE_NO>,
515 <SYSC_IDLE_SMART>;
516 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
517 SYSC_OMAP2_SOFTRESET |
518 SYSC_OMAP2_AUTOIDLE)>;
519 clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>;
520 clock-names = "fck";
521 resets = <&prm_dsp1 1>;
522 reset-names = "rstctrl";
523 ranges = <0x0 0x40d01000 0x1000>;
524 #size-cells = <1>;
525 #address-cells = <1>;
526
527 mmu0_dsp1: mmu@0 {
528 compatible = "ti,dra7-dsp-iommu";
529 reg = <0x0 0x100>;
530 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
531 #iommu-cells = <0>;
532 ti,syscon-mmuconfig = <&dsp1_system 0x0>;
533 };
Suman Anna2c7e07c52015-10-02 18:23:24 -0500534 };
535
Tero Kristodbd2d6f2019-12-12 14:51:18 +0200536 target-module@40d02000 {
537 compatible = "ti,sysc-omap2", "ti,sysc";
538 reg = <0x40d02000 0x4>,
539 <0x40d02010 0x4>,
540 <0x40d02014 0x4>;
541 reg-names = "rev", "sysc", "syss";
542 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
543 <SYSC_IDLE_NO>,
544 <SYSC_IDLE_SMART>;
545 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
546 SYSC_OMAP2_SOFTRESET |
547 SYSC_OMAP2_AUTOIDLE)>;
548 clocks = <&dsp1_clkctrl DRA7_DSP1_MMU0_DSP1_CLKCTRL 0>;
549 clock-names = "fck";
550 resets = <&prm_dsp1 1>;
551 reset-names = "rstctrl";
552 ranges = <0x0 0x40d02000 0x1000>;
553 #size-cells = <1>;
554 #address-cells = <1>;
555
556 mmu1_dsp1: mmu@0 {
557 compatible = "ti,dra7-dsp-iommu";
558 reg = <0x0 0x100>;
559 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
560 #iommu-cells = <0>;
561 ti,syscon-mmuconfig = <&dsp1_system 0x1>;
562 };
Suman Anna2c7e07c52015-10-02 18:23:24 -0500563 };
564
Tero Kristodbd2d6f2019-12-12 14:51:18 +0200565 target-module@58882000 {
566 compatible = "ti,sysc-omap2", "ti,sysc";
567 reg = <0x58882000 0x4>,
568 <0x58882010 0x4>,
569 <0x58882014 0x4>;
570 reg-names = "rev", "sysc", "syss";
571 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
572 <SYSC_IDLE_NO>,
573 <SYSC_IDLE_SMART>;
574 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
575 SYSC_OMAP2_SOFTRESET |
576 SYSC_OMAP2_AUTOIDLE)>;
577 clocks = <&ipu1_clkctrl DRA7_IPU1_MMU_IPU1_CLKCTRL 0>;
578 clock-names = "fck";
579 resets = <&prm_ipu 2>;
580 reset-names = "rstctrl";
581 #address-cells = <1>;
582 #size-cells = <1>;
583 ranges = <0x0 0x58882000 0x100>;
584
585 mmu_ipu1: mmu@0 {
586 compatible = "ti,dra7-iommu";
587 reg = <0x0 0x100>;
588 interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>;
589 #iommu-cells = <0>;
590 ti,iommu-bus-err-back;
591 };
Suman Anna2c7e07c52015-10-02 18:23:24 -0500592 };
593
Tero Kristodbd2d6f2019-12-12 14:51:18 +0200594 target-module@55082000 {
595 compatible = "ti,sysc-omap2", "ti,sysc";
596 reg = <0x55082000 0x4>,
597 <0x55082010 0x4>,
598 <0x55082014 0x4>;
599 reg-names = "rev", "sysc", "syss";
600 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
601 <SYSC_IDLE_NO>,
602 <SYSC_IDLE_SMART>;
603 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
604 SYSC_OMAP2_SOFTRESET |
605 SYSC_OMAP2_AUTOIDLE)>;
606 clocks = <&ipu2_clkctrl DRA7_IPU2_MMU_IPU2_CLKCTRL 0>;
607 clock-names = "fck";
608 resets = <&prm_core 2>;
609 reset-names = "rstctrl";
610 #address-cells = <1>;
611 #size-cells = <1>;
612 ranges = <0x0 0x55082000 0x100>;
613
614 mmu_ipu2: mmu@0 {
615 compatible = "ti,dra7-iommu";
616 reg = <0x0 0x100>;
617 interrupts = <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>;
618 #iommu-cells = <0>;
619 ti,iommu-bus-err-back;
620 };
Suman Anna2c7e07c52015-10-02 18:23:24 -0500621 };
622
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530623 abb_mpu: regulator-abb-mpu {
624 compatible = "ti,abb-v3";
625 regulator-name = "abb_mpu";
626 #address-cells = <0>;
627 #size-cells = <0>;
628 clocks = <&sys_clkin1>;
629 ti,settling-time = <50>;
630 ti,clock-cycles = <16>;
631
632 reg = <0x4ae07ddc 0x4>, <0x4ae07de0 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500633 <0x4ae06014 0x4>, <0x4a003b20 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530634 <0x4ae0c158 0x4>;
635 reg-names = "setup-address", "control-address",
636 "int-address", "efuse-address",
637 "ldo-address";
638 ti,tranxdone-status-mask = <0x80>;
639 /* LDOVBBMPU_FBB_MUX_CTRL */
640 ti,ldovbb-override-mask = <0x400>;
641 /* LDOVBBMPU_FBB_VSET_OUT */
642 ti,ldovbb-vset-mask = <0x1F>;
643
644 /*
645 * NOTE: only FBB mode used but actual vset will
646 * determine final biasing
647 */
648 ti,abb_info = <
649 /*uV ABB efuse rbb_m fbb_m vset_m*/
650 1060000 0 0x0 0 0x02000000 0x01F00000
651 1160000 0 0x4 0 0x02000000 0x01F00000
652 1210000 0 0x8 0 0x02000000 0x01F00000
653 >;
654 };
655
656 abb_ivahd: regulator-abb-ivahd {
657 compatible = "ti,abb-v3";
658 regulator-name = "abb_ivahd";
659 #address-cells = <0>;
660 #size-cells = <0>;
661 clocks = <&sys_clkin1>;
662 ti,settling-time = <50>;
663 ti,clock-cycles = <16>;
664
665 reg = <0x4ae07e34 0x4>, <0x4ae07e24 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500666 <0x4ae06010 0x4>, <0x4a0025cc 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530667 <0x4a002470 0x4>;
668 reg-names = "setup-address", "control-address",
669 "int-address", "efuse-address",
670 "ldo-address";
671 ti,tranxdone-status-mask = <0x40000000>;
672 /* LDOVBBIVA_FBB_MUX_CTRL */
673 ti,ldovbb-override-mask = <0x400>;
674 /* LDOVBBIVA_FBB_VSET_OUT */
675 ti,ldovbb-vset-mask = <0x1F>;
676
677 /*
678 * NOTE: only FBB mode used but actual vset will
679 * determine final biasing
680 */
681 ti,abb_info = <
682 /*uV ABB efuse rbb_m fbb_m vset_m*/
683 1055000 0 0x0 0 0x02000000 0x01F00000
684 1150000 0 0x4 0 0x02000000 0x01F00000
685 1250000 0 0x8 0 0x02000000 0x01F00000
686 >;
687 };
688
689 abb_dspeve: regulator-abb-dspeve {
690 compatible = "ti,abb-v3";
691 regulator-name = "abb_dspeve";
692 #address-cells = <0>;
693 #size-cells = <0>;
694 clocks = <&sys_clkin1>;
695 ti,settling-time = <50>;
696 ti,clock-cycles = <16>;
697
698 reg = <0x4ae07e30 0x4>, <0x4ae07e20 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500699 <0x4ae06010 0x4>, <0x4a0025e0 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530700 <0x4a00246c 0x4>;
701 reg-names = "setup-address", "control-address",
702 "int-address", "efuse-address",
703 "ldo-address";
704 ti,tranxdone-status-mask = <0x20000000>;
705 /* LDOVBBDSPEVE_FBB_MUX_CTRL */
706 ti,ldovbb-override-mask = <0x400>;
707 /* LDOVBBDSPEVE_FBB_VSET_OUT */
708 ti,ldovbb-vset-mask = <0x1F>;
709
710 /*
711 * NOTE: only FBB mode used but actual vset will
712 * determine final biasing
713 */
714 ti,abb_info = <
715 /*uV ABB efuse rbb_m fbb_m vset_m*/
716 1055000 0 0x0 0 0x02000000 0x01F00000
717 1150000 0 0x4 0 0x02000000 0x01F00000
718 1250000 0 0x8 0 0x02000000 0x01F00000
719 >;
720 };
721
722 abb_gpu: regulator-abb-gpu {
723 compatible = "ti,abb-v3";
724 regulator-name = "abb_gpu";
725 #address-cells = <0>;
726 #size-cells = <0>;
727 clocks = <&sys_clkin1>;
728 ti,settling-time = <50>;
729 ti,clock-cycles = <16>;
730
731 reg = <0x4ae07de4 0x4>, <0x4ae07de8 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500732 <0x4ae06010 0x4>, <0x4a003b08 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530733 <0x4ae0c154 0x4>;
734 reg-names = "setup-address", "control-address",
735 "int-address", "efuse-address",
736 "ldo-address";
737 ti,tranxdone-status-mask = <0x10000000>;
738 /* LDOVBBGPU_FBB_MUX_CTRL */
739 ti,ldovbb-override-mask = <0x400>;
740 /* LDOVBBGPU_FBB_VSET_OUT */
741 ti,ldovbb-vset-mask = <0x1F>;
742
743 /*
744 * NOTE: only FBB mode used but actual vset will
745 * determine final biasing
746 */
747 ti,abb_info = <
748 /*uV ABB efuse rbb_m fbb_m vset_m*/
749 1090000 0 0x0 0 0x02000000 0x01F00000
750 1210000 0 0x4 0 0x02000000 0x01F00000
751 1280000 0 0x8 0 0x02000000 0x01F00000
752 >;
753 };
754
Rob Herringcc893872018-09-13 13:12:25 -0500755 qspi: spi@4b300000 {
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530756 compatible = "ti,dra7xxx-qspi";
Vignesh R1929d0b2015-12-11 09:39:59 +0530757 reg = <0x4b300000 0x100>,
758 <0x5c000000 0x4000000>;
759 reg-names = "qspi_base", "qspi_mmap";
760 syscon-chipselects = <&scm_conf 0x558>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530761 #address-cells = <1>;
762 #size-cells = <0>;
763 ti,hwmods = "qspi";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300764 clocks = <&l4per2_clkctrl DRA7_L4PER2_QSPI_CLKCTRL 25>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530765 clock-names = "fck";
766 num-cs = <4>;
R Sricharana46631c2014-06-26 12:55:31 +0530767 interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530768 status = "disabled";
769 };
Balaji T K7be80562014-05-07 14:58:58 +0300770
Balaji T K7be80562014-05-07 14:58:58 +0300771 /* OCP2SCP3 */
Balaji T K7be80562014-05-07 14:58:58 +0300772 sata: sata@4a141100 {
773 compatible = "snps,dwc-ahci";
774 reg = <0x4a140000 0x1100>, <0x4a141100 0x7>;
R Sricharana46631c2014-06-26 12:55:31 +0530775 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
Balaji T K7be80562014-05-07 14:58:58 +0300776 phys = <&sata_phy>;
777 phy-names = "sata-phy";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300778 clocks = <&l3init_clkctrl DRA7_L3INIT_SATA_CLKCTRL 8>;
Balaji T K7be80562014-05-07 14:58:58 +0300779 ti,hwmods = "sata";
Jean-Jacques Hiblot87cb1292017-01-09 13:22:15 +0100780 ports-implemented = <0x1>;
Balaji T K7be80562014-05-07 14:58:58 +0300781 };
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300782
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300783 /* OCP2SCP1 */
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300784 /* IRQ for DWC3_3 and DWC3_4 need IRQ crossbar */
Tony Lindgren11fdf592020-10-19 10:45:58 +0300785
786 target-module@50000000 {
787 compatible = "ti,sysc-omap2", "ti,sysc";
788 reg = <0x50000000 4>,
789 <0x50000010 4>,
790 <0x50000014 4>;
791 reg-names = "rev", "sysc", "syss";
792 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
793 <SYSC_IDLE_NO>,
794 <SYSC_IDLE_SMART>;
795 ti,syss-mask = <1>;
796 clocks = <&l3main1_clkctrl DRA7_L3MAIN1_GPMC_CLKCTRL 0>;
797 clock-names = "fck";
798 #address-cells = <1>;
Minal Shahff66a3c2014-05-19 14:45:47 +0530799 #size-cells = <1>;
Tony Lindgren11fdf592020-10-19 10:45:58 +0300800 ranges = <0x50000000 0x50000000 0x00001000>, /* regs */
801 <0x00000000 0x00000000 0x40000000>; /* data */
802
803 gpmc: gpmc@50000000 {
804 compatible = "ti,am3352-gpmc";
805 reg = <0x50000000 0x37c>; /* device IO registers */
806 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
807 dmas = <&edma_xbar 4 0>;
808 dma-names = "rxtx";
809 gpmc,num-cs = <8>;
810 gpmc,num-waitpins = <2>;
811 #address-cells = <2>;
812 #size-cells = <1>;
813 interrupt-controller;
814 #interrupt-cells = <2>;
815 gpio-controller;
816 #gpio-cells = <2>;
817 status = "disabled";
818 };
Minal Shahff66a3c2014-05-19 14:45:47 +0530819 };
Peter Ujfalusi2ca09452014-05-07 13:20:48 +0300820
Tony Lindgren45e118b2019-11-01 09:31:23 -0700821 target-module@56000000 {
822 compatible = "ti,sysc-omap4", "ti,sysc";
823 reg = <0x5600fe00 0x4>,
824 <0x5600fe10 0x4>;
825 reg-names = "rev", "sysc";
826 ti,sysc-midle = <SYSC_IDLE_FORCE>,
827 <SYSC_IDLE_NO>,
828 <SYSC_IDLE_SMART>;
829 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
830 <SYSC_IDLE_NO>,
831 <SYSC_IDLE_SMART>;
832 clocks = <&gpu_clkctrl DRA7_GPU_CLKCTRL 0>;
833 clock-names = "fck";
834 #address-cells = <1>;
835 #size-cells = <1>;
836 ranges = <0 0x56000000 0x2000000>;
837 };
838
Marc Zyngier783d3182015-03-11 15:43:44 +0000839 crossbar_mpu: crossbar@4a002a48 {
R Sricharana46631c2014-06-26 12:55:31 +0530840 compatible = "ti,irq-crossbar";
841 reg = <0x4a002a48 0x130>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000842 interrupt-controller;
Marc Zyngier7136d452015-03-11 15:43:49 +0000843 interrupt-parent = <&wakeupgen>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000844 #interrupt-cells = <3>;
R Sricharana46631c2014-06-26 12:55:31 +0530845 ti,max-irqs = <160>;
846 ti,max-crossbar-sources = <MAX_SOURCES>;
847 ti,reg-size = <2>;
848 ti,irqs-reserved = <0 1 2 3 5 6 131 132>;
849 ti,irqs-skip = <10 133 139 140>;
850 ti,irqs-safe-map = <0>;
851 };
Mugunthan V Nef9c5b62014-10-21 15:31:00 +0530852
Tony Lindgrena50371f2020-03-04 08:10:41 -0800853 target-module@58000000 {
854 compatible = "ti,sysc-omap2", "ti,sysc";
Tony Lindgrena50371f2020-03-04 08:10:41 -0800855 reg = <0x58000000 4>,
856 <0x58000014 4>;
857 reg-names = "rev", "syss";
858 ti,syss-mask = <1>;
859 clocks = <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 0>,
860 <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 9>,
861 <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 10>,
862 <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 11>;
863 clock-names = "fck", "hdmi_clk", "sys_clk", "tv_clk";
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530864 #address-cells = <1>;
865 #size-cells = <1>;
Tony Lindgrena50371f2020-03-04 08:10:41 -0800866 ranges = <0 0x58000000 0x800000>;
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530867
Tony Lindgrena50371f2020-03-04 08:10:41 -0800868 dss: dss@0 {
869 compatible = "ti,dra7-dss";
870 /* 'reg' defined in dra72x.dtsi and dra74x.dtsi */
871 /* 'clocks' defined in dra72x.dtsi and dra74x.dtsi */
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530872 status = "disabled";
Tony Lindgrena50371f2020-03-04 08:10:41 -0800873 /* CTRL_CORE_DSS_PLL_CONTROL */
874 syscon-pll-ctrl = <&scm_conf 0x538>;
875 #address-cells = <1>;
876 #size-cells = <1>;
877 ranges = <0 0 0x800000>;
878
Tony Lindgren9a951962020-03-04 08:10:42 -0800879 target-module@1000 {
880 compatible = "ti,sysc-omap2", "ti,sysc";
881 reg = <0x1000 0x4>,
882 <0x1010 0x4>,
883 <0x1014 0x4>;
884 reg-names = "rev", "sysc", "syss";
885 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
886 <SYSC_IDLE_NO>,
887 <SYSC_IDLE_SMART>;
888 ti,sysc-midle = <SYSC_IDLE_FORCE>,
889 <SYSC_IDLE_NO>,
890 <SYSC_IDLE_SMART>;
891 ti,sysc-mask = <(SYSC_OMAP2_CLOCKACTIVITY |
892 SYSC_OMAP2_ENAWAKEUP |
893 SYSC_OMAP2_SOFTRESET |
894 SYSC_OMAP2_AUTOIDLE)>;
895 ti,syss-mask = <1>;
896 clocks = <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 8>;
Tony Lindgrena50371f2020-03-04 08:10:41 -0800897 clock-names = "fck";
Tony Lindgren9a951962020-03-04 08:10:42 -0800898 #address-cells = <1>;
899 #size-cells = <1>;
900 ranges = <0 0x1000 0x1000>;
901
902 dispc@0 {
903 compatible = "ti,dra7-dispc";
904 reg = <0 0x1000>;
905 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Tony Lindgren9a951962020-03-04 08:10:42 -0800906 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 8>;
907 clock-names = "fck";
908 /* CTRL_CORE_SMA_SW_1 */
909 syscon-pol = <&scm_conf 0x534>;
910 };
Tony Lindgrena50371f2020-03-04 08:10:41 -0800911 };
912
Tony Lindgrenc4f47282020-03-04 08:10:42 -0800913 target-module@40000 {
914 compatible = "ti,sysc-omap4", "ti,sysc";
915 reg = <0x40000 0x4>,
916 <0x40010 0x4>;
917 reg-names = "rev", "sysc";
918 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
919 <SYSC_IDLE_NO>,
920 <SYSC_IDLE_SMART>,
921 <SYSC_IDLE_SMART_WKUP>;
922 ti,sysc-mask = <(SYSC_OMAP4_SOFTRESET)>;
923 clocks = <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 9>,
924 <&dss_clkctrl DRA7_DSS_CORE_CLKCTRL 8>;
925 clock-names = "fck", "dss_clk";
926 #address-cells = <1>;
927 #size-cells = <1>;
928 ranges = <0 0x40000 0x40000>;
929
930 hdmi: encoder@0 {
931 compatible = "ti,dra7-hdmi";
932 reg = <0 0x200>,
933 <0x200 0x80>,
934 <0x300 0x80>,
935 <0x20000 0x19000>;
936 reg-names = "wp", "pll", "phy", "core";
937 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
938 status = "disabled";
939 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 9>,
940 <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 10>;
941 clock-names = "fck", "sys_clk";
942 dmas = <&sdma_xbar 76>;
943 dma-names = "audio_tx";
944 };
Tony Lindgrena50371f2020-03-04 08:10:41 -0800945 };
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530946 };
947 };
Vignesh R34370142016-05-03 10:56:55 -0500948
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800949 aes1_target: target-module@4b500000 {
950 compatible = "ti,sysc-omap2", "ti,sysc";
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800951 reg = <0x4b500080 0x4>,
952 <0x4b500084 0x4>,
953 <0x4b500088 0x4>;
954 reg-names = "rev", "sysc", "syss";
955 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
956 SYSC_OMAP2_AUTOIDLE)>;
957 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
958 <SYSC_IDLE_NO>,
959 <SYSC_IDLE_SMART>,
960 <SYSC_IDLE_SMART_WKUP>;
961 ti,syss-mask = <1>;
962 /* Domains (P, C): per_pwrdm, l4sec_clkdm */
963 clocks = <&l4sec_clkctrl DRA7_L4SEC_AES1_CLKCTRL 0>;
Joel Fernandese7fd15c2016-06-01 12:06:42 +0300964 clock-names = "fck";
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800965 #address-cells = <1>;
966 #size-cells = <1>;
967 ranges = <0x0 0x4b500000 0x1000>;
968
969 aes1: aes@0 {
970 compatible = "ti,omap4-aes";
971 reg = <0 0xa0>;
972 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
973 dmas = <&edma_xbar 111 0>, <&edma_xbar 110 0>;
974 dma-names = "tx", "rx";
975 clocks = <&l3_iclk_div>;
976 clock-names = "fck";
977 };
Joel Fernandese7fd15c2016-06-01 12:06:42 +0300978 };
979
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800980 aes2_target: target-module@4b700000 {
981 compatible = "ti,sysc-omap2", "ti,sysc";
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800982 reg = <0x4b700080 0x4>,
983 <0x4b700084 0x4>,
984 <0x4b700088 0x4>;
985 reg-names = "rev", "sysc", "syss";
986 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
987 SYSC_OMAP2_AUTOIDLE)>;
988 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
989 <SYSC_IDLE_NO>,
990 <SYSC_IDLE_SMART>,
991 <SYSC_IDLE_SMART_WKUP>;
992 ti,syss-mask = <1>;
993 /* Domains (P, C): per_pwrdm, l4sec_clkdm */
994 clocks = <&l4sec_clkctrl DRA7_L4SEC_AES2_CLKCTRL 0>;
Joel Fernandese7fd15c2016-06-01 12:06:42 +0300995 clock-names = "fck";
Tony Lindgren2ea3ce22019-12-12 09:46:16 -0800996 #address-cells = <1>;
997 #size-cells = <1>;
998 ranges = <0x0 0x4b700000 0x1000>;
999
1000 aes2: aes@0 {
1001 compatible = "ti,omap4-aes";
1002 reg = <0 0xa0>;
1003 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
1004 dmas = <&edma_xbar 114 0>, <&edma_xbar 113 0>;
1005 dma-names = "tx", "rx";
1006 clocks = <&l3_iclk_div>;
1007 clock-names = "fck";
1008 };
Joel Fernandese7fd15c2016-06-01 12:06:42 +03001009 };
1010
Tero Kristobe5cd392020-09-07 12:52:46 +03001011 sham1_target: target-module@4b101000 {
Tony Lindgrene1326812019-12-12 09:46:15 -08001012 compatible = "ti,sysc-omap3-sham", "ti,sysc";
Tony Lindgrene1326812019-12-12 09:46:15 -08001013 reg = <0x4b101100 0x4>,
1014 <0x4b101110 0x4>,
1015 <0x4b101114 0x4>;
1016 reg-names = "rev", "sysc", "syss";
1017 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
1018 SYSC_OMAP2_AUTOIDLE)>;
1019 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
1020 <SYSC_IDLE_NO>,
1021 <SYSC_IDLE_SMART>;
1022 ti,syss-mask = <1>;
1023 /* Domains (P, C): l4per_pwrdm, l4sec_clkdm */
1024 clocks = <&l4sec_clkctrl DRA7_L4SEC_SHAM_CLKCTRL 0>;
Lokesh Vutlada346092016-06-01 12:06:43 +03001025 clock-names = "fck";
Tony Lindgrene1326812019-12-12 09:46:15 -08001026 #address-cells = <1>;
1027 #size-cells = <1>;
1028 ranges = <0x0 0x4b101000 0x1000>;
1029
Tero Kristobe5cd392020-09-07 12:52:46 +03001030 sham1: sham@0 {
Tony Lindgrene1326812019-12-12 09:46:15 -08001031 compatible = "ti,omap5-sham";
1032 reg = <0 0x300>;
1033 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1034 dmas = <&edma_xbar 119 0>;
1035 dma-names = "rx";
1036 clocks = <&l3_iclk_div>;
1037 clock-names = "fck";
1038 };
Lokesh Vutlada346092016-06-01 12:06:43 +03001039 };
Lokesh Vutla610e9c42016-06-01 12:06:44 +03001040
Tero Kristobe5cd392020-09-07 12:52:46 +03001041 sham2_target: target-module@42701000 {
1042 compatible = "ti,sysc-omap3-sham", "ti,sysc";
1043 reg = <0x42701100 0x4>,
1044 <0x42701110 0x4>,
1045 <0x42701114 0x4>;
1046 reg-names = "rev", "sysc", "syss";
1047 ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
1048 SYSC_OMAP2_AUTOIDLE)>;
1049 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
1050 <SYSC_IDLE_NO>,
1051 <SYSC_IDLE_SMART>;
1052 ti,syss-mask = <1>;
1053 /* Domains (P, C): l4per_pwrdm, l4sec_clkdm */
1054 clocks = <&l4sec_clkctrl DRA7_L4SEC_SHAM2_CLKCTRL 0>;
1055 clock-names = "fck";
1056 #address-cells = <1>;
1057 #size-cells = <1>;
1058 ranges = <0x0 0x42701000 0x1000>;
1059
1060 sham2: sham@0 {
1061 compatible = "ti,omap5-sham";
1062 reg = <0 0x300>;
1063 interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
1064 dmas = <&edma_xbar 165 0>;
1065 dma-names = "rx";
1066 clocks = <&l3_iclk_div>;
1067 clock-names = "fck";
1068 };
1069 };
1070
Tony Lindgrenae57d152020-11-12 11:57:03 +02001071 iva_hd_target: target-module@5a000000 {
1072 compatible = "ti,sysc-omap4", "ti,sysc";
1073 reg = <0x5a05a400 0x4>,
1074 <0x5a05a410 0x4>;
1075 reg-names = "rev", "sysc";
1076 ti,sysc-midle = <SYSC_IDLE_FORCE>,
1077 <SYSC_IDLE_NO>,
1078 <SYSC_IDLE_SMART>;
1079 ti,sysc-sidle = <SYSC_IDLE_FORCE>,
1080 <SYSC_IDLE_NO>,
1081 <SYSC_IDLE_SMART>;
1082 power-domains = <&prm_iva>;
1083 resets = <&prm_iva 2>;
1084 reset-names = "rstctrl";
1085 clocks = <&iva_clkctrl DRA7_IVA_CLKCTRL 0>;
1086 clock-names = "fck";
1087 #address-cells = <1>;
1088 #size-cells = <1>;
1089 ranges = <0x5a000000 0x5a000000 0x1000000>,
1090 <0x5b000000 0x5b000000 0x1000000>;
1091
1092 iva {
1093 compatible = "ti,ivahd";
1094 };
1095 };
1096
Dave Gerlachdbef1962017-12-19 09:24:20 -06001097 opp_supply_mpu: opp-supply@4a003b20 {
1098 compatible = "ti,omap5-opp-supply";
1099 reg = <0x4a003b20 0xc>;
1100 ti,efuse-settings = <
1101 /* uV offset */
1102 1060000 0x0
1103 1160000 0x4
1104 1210000 0x8
1105 >;
1106 ti,absolute-max-voltage-uv = <1500000>;
1107 };
1108
R Sricharan6e58b8f2013-08-14 19:08:20 +05301109 };
Keerthyf7397ed2015-03-23 14:39:38 -05001110
1111 thermal_zones: thermal-zones {
1112 #include "omap4-cpu-thermal.dtsi"
1113 #include "omap5-gpu-thermal.dtsi"
1114 #include "omap5-core-thermal.dtsi"
Keerthy667f2592016-02-08 14:46:30 +05301115 #include "dra7-dspeve-thermal.dtsi"
1116 #include "dra7-iva-thermal.dtsi"
Keerthyf7397ed2015-03-23 14:39:38 -05001117 };
1118
1119};
1120
1121&cpu_thermal {
1122 polling-delay = <500>; /* milliseconds */
Keerthyfb51ae02017-03-09 13:35:56 +05301123 coefficients = <0 2000>;
1124};
1125
1126&gpu_thermal {
1127 coefficients = <0 2000>;
1128};
1129
1130&core_thermal {
1131 coefficients = <0 2000>;
1132};
1133
1134&dspeve_thermal {
1135 coefficients = <0 2000>;
1136};
1137
1138&iva_thermal {
1139 coefficients = <0 2000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +05301140};
Tero Kristoee6c7502013-07-18 17:18:33 +03001141
Ravikumar Kattekolabca52382017-05-17 06:51:38 -07001142&cpu_crit {
1143 temperature = <120000>; /* milli Celsius */
1144};
1145
Ravikumar Kattekola64c358b2018-01-11 21:45:39 +05301146&core_crit {
1147 temperature = <120000>; /* milli Celsius */
1148};
1149
1150&gpu_crit {
1151 temperature = <120000>; /* milli Celsius */
1152};
1153
1154&dspeve_crit {
1155 temperature = <120000>; /* milli Celsius */
1156};
1157
1158&iva_crit {
1159 temperature = <120000>; /* milli Celsius */
1160};
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -07001161
1162#include "dra7-l4.dtsi"
1163#include "dra7xx-clocks.dtsi"
Tero Kristodb7725d2019-10-10 11:21:04 +03001164
1165&prm {
Tero Kristo1021b372020-11-11 15:57:20 +02001166 prm_mpu: prm@300 {
1167 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1168 reg = <0x300 0x100>;
1169 #power-domain-cells = <0>;
1170 };
1171
Tero Kristodb7725d2019-10-10 11:21:04 +03001172 prm_dsp1: prm@400 {
1173 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1174 reg = <0x400 0x100>;
1175 #reset-cells = <1>;
Tero Kristo1021b372020-11-11 15:57:20 +02001176 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001177 };
1178
1179 prm_ipu: prm@500 {
1180 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1181 reg = <0x500 0x100>;
1182 #reset-cells = <1>;
Tero Kristo1021b372020-11-11 15:57:20 +02001183 #power-domain-cells = <0>;
1184 };
1185
1186 prm_coreaon: prm@628 {
1187 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1188 reg = <0x628 0xd8>;
1189 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001190 };
1191
1192 prm_core: prm@700 {
1193 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1194 reg = <0x700 0x100>;
1195 #reset-cells = <1>;
Tero Kristo1021b372020-11-11 15:57:20 +02001196 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001197 };
1198
1199 prm_iva: prm@f00 {
1200 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1201 reg = <0xf00 0x100>;
Tony Lindgrenae57d152020-11-12 11:57:03 +02001202 #reset-cells = <1>;
Tero Kristo1021b372020-11-11 15:57:20 +02001203 #power-domain-cells = <0>;
1204 };
1205
1206 prm_cam: prm@1000 {
1207 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1208 reg = <0x1000 0x100>;
1209 #power-domain-cells = <0>;
1210 };
1211
1212 prm_dss: prm@1100 {
1213 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1214 reg = <0x1100 0x100>;
1215 #power-domain-cells = <0>;
1216 };
1217
1218 prm_gpu: prm@1200 {
1219 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1220 reg = <0x1200 0x100>;
1221 #power-domain-cells = <0>;
1222 };
1223
1224 prm_l3init: prm@1300 {
1225 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1226 reg = <0x1300 0x100>;
1227 #reset-cells = <1>;
1228 #power-domain-cells = <0>;
1229 };
1230
1231 prm_l4per: prm@1400 {
1232 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1233 reg = <0x1400 0x100>;
1234 #power-domain-cells = <0>;
1235 };
1236
1237 prm_custefuse: prm@1600 {
1238 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1239 reg = <0x1600 0x100>;
1240 #power-domain-cells = <0>;
1241 };
1242
1243 prm_wkupaon: prm@1724 {
1244 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1245 reg = <0x1724 0x100>;
1246 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001247 };
1248
1249 prm_dsp2: prm@1b00 {
1250 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1251 reg = <0x1b00 0x40>;
1252 #reset-cells = <1>;
Tero Kristo1021b372020-11-11 15:57:20 +02001253 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001254 };
1255
1256 prm_eve1: prm@1b40 {
1257 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1258 reg = <0x1b40 0x40>;
Tero Kristo1021b372020-11-11 15:57:20 +02001259 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001260 };
1261
1262 prm_eve2: prm@1b80 {
1263 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1264 reg = <0x1b80 0x40>;
Tero Kristo1021b372020-11-11 15:57:20 +02001265 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001266 };
1267
1268 prm_eve3: prm@1bc0 {
1269 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1270 reg = <0x1bc0 0x40>;
Tero Kristo1021b372020-11-11 15:57:20 +02001271 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001272 };
1273
1274 prm_eve4: prm@1c00 {
1275 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1276 reg = <0x1c00 0x60>;
Tero Kristo1021b372020-11-11 15:57:20 +02001277 #power-domain-cells = <0>;
1278 };
1279
1280 prm_rtc: prm@1c60 {
1281 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1282 reg = <0x1c60 0x20>;
1283 #power-domain-cells = <0>;
1284 };
1285
1286 prm_vpe: prm@1c80 {
1287 compatible = "ti,dra7-prm-inst", "ti,omap-prm-inst";
1288 reg = <0x1c80 0x80>;
1289 #power-domain-cells = <0>;
Tero Kristodb7725d2019-10-10 11:21:04 +03001290 };
1291};
Tony Lindgren036a3d42020-05-07 09:59:31 -07001292
1293/* Preferred always-on timer for clockevent */
1294&timer1_target {
1295 ti,no-reset-on-init;
1296 ti,no-idle;
1297 timer@0 {
1298 assigned-clocks = <&wkupaon_clkctrl DRA7_TIMER1_CLKCTRL 24>;
1299 assigned-clock-parents = <&sys_32k_ck>;
1300 };
1301};