blob: d87e932f45bde0a16a42e6360b220f38a1cdc156 [file] [log] [blame]
R Sricharan6e58b8f2013-08-14 19:08:20 +05301/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 * Based on "omap4.dtsi"
8 */
9
Tony Lindgrene14d7e52018-01-11 16:04:03 -080010#include <dt-bindings/bus/ti-sysc.h>
11#include <dt-bindings/clock/dra7.h>
R Sricharan6e58b8f2013-08-14 19:08:20 +053012#include <dt-bindings/interrupt-controller/arm-gic.h>
13#include <dt-bindings/pinctrl/dra.h>
Tero Kristo18395332017-12-08 17:17:29 +020014#include <dt-bindings/clock/dra7.h>
R Sricharan6e58b8f2013-08-14 19:08:20 +053015
R Sricharana46631c2014-06-26 12:55:31 +053016#define MAX_SOURCES 400
R Sricharana46631c2014-06-26 12:55:31 +053017
R Sricharan6e58b8f2013-08-14 19:08:20 +053018/ {
Lokesh Vutladae320e2016-02-24 15:41:04 +053019 #address-cells = <2>;
20 #size-cells = <2>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053021
22 compatible = "ti,dra7xx";
Marc Zyngier783d3182015-03-11 15:43:44 +000023 interrupt-parent = <&crossbar_mpu>;
Javier Martinez Canillas7f6c8572016-12-19 11:44:41 -030024 chosen { };
R Sricharan6e58b8f2013-08-14 19:08:20 +053025
26 aliases {
Nishanth Menon20b80942013-10-16 15:21:03 -050027 i2c0 = &i2c1;
28 i2c1 = &i2c2;
29 i2c2 = &i2c3;
30 i2c3 = &i2c4;
31 i2c4 = &i2c5;
R Sricharan6e58b8f2013-08-14 19:08:20 +053032 serial0 = &uart1;
33 serial1 = &uart2;
34 serial2 = &uart3;
35 serial3 = &uart4;
36 serial4 = &uart5;
37 serial5 = &uart6;
Nishanth Menon065bd7f2014-10-21 11:18:15 -050038 serial6 = &uart7;
39 serial7 = &uart8;
40 serial8 = &uart9;
41 serial9 = &uart10;
Mugunthan V Nef9c5b62014-10-21 15:31:00 +053042 ethernet0 = &cpsw_emac0;
43 ethernet1 = &cpsw_emac1;
Roger Quadros9ec49b92014-08-15 16:08:36 +030044 d_can0 = &dcan1;
45 d_can1 = &dcan2;
Mugunthan V N480b2b32015-11-19 12:31:01 +053046 spi0 = &qspi;
R Sricharan6e58b8f2013-08-14 19:08:20 +053047 };
48
R Sricharan6e58b8f2013-08-14 19:08:20 +053049 timer {
50 compatible = "arm,armv7-timer";
51 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
52 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
53 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
54 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier783d3182015-03-11 15:43:44 +000055 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053056 };
57
58 gic: interrupt-controller@48211000 {
59 compatible = "arm,cortex-a15-gic";
60 interrupt-controller;
61 #interrupt-cells = <3>;
Lokesh Vutladae320e2016-02-24 15:41:04 +053062 reg = <0x0 0x48211000 0x0 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +000063 <0x0 0x48212000 0x0 0x2000>,
Lokesh Vutladae320e2016-02-24 15:41:04 +053064 <0x0 0x48214000 0x0 0x2000>,
65 <0x0 0x48216000 0x0 0x2000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053066 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
Marc Zyngier783d3182015-03-11 15:43:44 +000067 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053068 };
69
Marc Zyngier7136d452015-03-11 15:43:49 +000070 wakeupgen: interrupt-controller@48281000 {
71 compatible = "ti,omap5-wugen-mpu", "ti,omap4-wugen-mpu";
72 interrupt-controller;
73 #interrupt-cells = <3>;
Lokesh Vutladae320e2016-02-24 15:41:04 +053074 reg = <0x0 0x48281000 0x0 0x1000>;
Marc Zyngier7136d452015-03-11 15:43:49 +000075 interrupt-parent = <&gic>;
R Sricharan6e58b8f2013-08-14 19:08:20 +053076 };
77
Dave Gerlachb82ffb32016-05-18 18:36:32 -050078 cpus {
79 #address-cells = <1>;
80 #size-cells = <0>;
81
82 cpu0: cpu@0 {
83 device_type = "cpu";
84 compatible = "arm,cortex-a15";
85 reg = <0>;
86
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -060087 operating-points-v2 = <&cpu0_opp_table>;
Dave Gerlachb82ffb32016-05-18 18:36:32 -050088
89 clocks = <&dpll_mpu_ck>;
90 clock-names = "cpu";
91
92 clock-latency = <300000>; /* From omap-cpufreq driver */
93
94 /* cooling options */
Dave Gerlachb82ffb32016-05-18 18:36:32 -050095 #cooling-cells = <2>; /* min followed by max */
Dave Gerlach000fb7a2017-12-19 09:24:19 -060096
97 vbb-supply = <&abb_mpu>;
Dave Gerlachb82ffb32016-05-18 18:36:32 -050098 };
99 };
100
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600101 cpu0_opp_table: opp-table {
102 compatible = "operating-points-v2-ti-cpu";
103 syscon = <&scm_wkup>;
104
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +0530105 opp_nom-1000000000 {
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600106 opp-hz = /bits/ 64 <1000000000>;
Dave Gerlach000fb7a2017-12-19 09:24:19 -0600107 opp-microvolt = <1060000 850000 1150000>,
108 <1060000 850000 1150000>;
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600109 opp-supported-hw = <0xFF 0x01>;
110 opp-suspend;
111 };
112
Viresh Kumarb9cb2ba2017-04-20 16:25:06 +0530113 opp_od-1176000000 {
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600114 opp-hz = /bits/ 64 <1176000000>;
Dave Gerlach000fb7a2017-12-19 09:24:19 -0600115 opp-microvolt = <1160000 885000 1160000>,
116 <1160000 885000 1160000>;
117
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600118 opp-supported-hw = <0xFF 0x02>;
119 };
Dave Gerlachbc69fed2017-12-19 09:24:21 -0600120
121 opp_high@1500000000 {
122 opp-hz = /bits/ 64 <1500000000>;
123 opp-microvolt = <1210000 950000 1250000>,
124 <1210000 950000 1250000>;
125 opp-supported-hw = <0xFF 0x04>;
126 };
Dave Gerlacha4e5e9f2017-03-06 09:23:41 -0600127 };
128
R Sricharan6e58b8f2013-08-14 19:08:20 +0530129 /*
Geert Uytterhoeven5c5be9d2014-03-28 11:11:37 +0100130 * The soc node represents the soc top level view. It is used for IPs
R Sricharan6e58b8f2013-08-14 19:08:20 +0530131 * that are not memory mapped in the MPU view or for the MPU itself.
132 */
133 soc {
134 compatible = "ti,omap-infra";
135 mpu {
136 compatible = "ti,omap5-mpu";
137 ti,hwmods = "mpu";
138 };
139 };
140
141 /*
142 * XXX: Use a flat representation of the SOC interconnect.
143 * The real OMAP interconnect network is quite complex.
Geert Uytterhoevenb7ab5242014-03-28 11:11:39 +0100144 * Since it will not bring real advantage to represent that in DT for
R Sricharan6e58b8f2013-08-14 19:08:20 +0530145 * the moment, just use a fake OCP bus entry to represent the whole bus
146 * hierarchy.
147 */
148 ocp {
Rajendra Nayakfba387a2014-04-10 11:34:32 -0500149 compatible = "ti,dra7-l3-noc", "simple-bus";
R Sricharan6e58b8f2013-08-14 19:08:20 +0530150 #address-cells = <1>;
151 #size-cells = <1>;
Lokesh Vutladae320e2016-02-24 15:41:04 +0530152 ranges = <0x0 0x0 0x0 0xc0000000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530153 ti,hwmods = "l3_main_1", "l3_main_2";
Lokesh Vutladae320e2016-02-24 15:41:04 +0530154 reg = <0x0 0x44000000 0x0 0x1000000>,
155 <0x0 0x45000000 0x0 0x1000>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000156 interrupts-extended = <&crossbar_mpu GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
Marc Zyngier7136d452015-03-11 15:43:49 +0000157 <&wakeupgen GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530158
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700159 l4_cfg: interconnect@4a000000 {
Tero Kristod9195012015-02-12 11:37:13 +0200160 };
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700161 l4_wkup: interconnect@4ae00000 {
162 };
163 l4_per1: interconnect@48000000 {
164 };
165 l4_per2: interconnect@48400000 {
166 };
167 l4_per3: interconnect@48800000 {
Tero Kristoee6c7502013-07-18 17:18:33 +0300168 };
169
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530170 axi@0 {
171 compatible = "simple-bus";
172 #size-cells = <1>;
173 #address-cells = <1>;
174 ranges = <0x51000000 0x51000000 0x3000
175 0x0 0x20000000 0x10000000>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530176 /**
177 * To enable PCI endpoint mode, disable the pcie1_rc
178 * node and enable pcie1_ep mode.
179 */
180 pcie1_rc: pcie@51000000 {
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530181 reg = <0x51000000 0x2000>, <0x51002000 0x14c>, <0x1000 0x2000>;
182 reg-names = "rc_dbics", "ti_conf", "config";
183 interrupts = <0 232 0x4>, <0 233 0x4>;
184 #address-cells = <3>;
185 #size-cells = <2>;
186 device_type = "pci";
187 ranges = <0x81000000 0 0 0x03000 0 0x00010000
188 0x82000000 0 0x20013000 0x13000 0 0xffed000>;
Rob Herring7d79f602017-03-21 21:03:01 -0500189 bus-range = <0x00 0xff>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530190 #interrupt-cells = <1>;
191 num-lanes = <1>;
Kishon Vijay Abraham Ibed596d2016-08-10 18:03:18 +0530192 linux,pci-domain = <0>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530193 ti,hwmods = "pcie1";
194 phys = <&pcie1_phy>;
195 phy-names = "pcie-phy0";
Kishon Vijay Abraham Ib5acec02019-03-25 15:15:25 +0530196 ti,syscon-lane-sel = <&scm_conf_pcie 0x18>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530197 interrupt-map-mask = <0 0 0 7>;
198 interrupt-map = <0 0 0 1 &pcie1_intc 1>,
199 <0 0 0 2 &pcie1_intc 2>,
200 <0 0 0 3 &pcie1_intc 3>,
201 <0 0 0 4 &pcie1_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530202 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530203 status = "disabled";
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530204 pcie1_intc: interrupt-controller {
205 interrupt-controller;
206 #address-cells = <0>;
207 #interrupt-cells = <1>;
208 };
209 };
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530210
211 pcie1_ep: pcie_ep@51000000 {
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530212 reg = <0x51000000 0x28>, <0x51002000 0x14c>, <0x51001000 0x28>, <0x1000 0x10000000>;
213 reg-names = "ep_dbics", "ti_conf", "ep_dbics2", "addr_space";
214 interrupts = <0 232 0x4>;
215 num-lanes = <1>;
216 num-ib-windows = <4>;
217 num-ob-windows = <16>;
218 ti,hwmods = "pcie1";
219 phys = <&pcie1_phy>;
220 phy-names = "pcie-phy0";
Vignesh R6d0af442018-09-25 10:51:51 +0530221 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Ib5acec02019-03-25 15:15:25 +0530222 ti,syscon-lane-sel = <&scm_conf_pcie 0x18>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530223 status = "disabled";
224 };
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530225 };
226
227 axi@1 {
228 compatible = "simple-bus";
229 #size-cells = <1>;
230 #address-cells = <1>;
231 ranges = <0x51800000 0x51800000 0x3000
232 0x0 0x30000000 0x10000000>;
233 status = "disabled";
Kishon Vijay Abraham I1ac19c82017-12-19 15:01:28 +0530234 pcie2_rc: pcie@51800000 {
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530235 reg = <0x51800000 0x2000>, <0x51802000 0x14c>, <0x1000 0x2000>;
236 reg-names = "rc_dbics", "ti_conf", "config";
237 interrupts = <0 355 0x4>, <0 356 0x4>;
238 #address-cells = <3>;
239 #size-cells = <2>;
240 device_type = "pci";
241 ranges = <0x81000000 0 0 0x03000 0 0x00010000
242 0x82000000 0 0x30013000 0x13000 0 0xffed000>;
Rob Herring7d79f602017-03-21 21:03:01 -0500243 bus-range = <0x00 0xff>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530244 #interrupt-cells = <1>;
245 num-lanes = <1>;
Kishon Vijay Abraham Ibed596d2016-08-10 18:03:18 +0530246 linux,pci-domain = <1>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530247 ti,hwmods = "pcie2";
248 phys = <&pcie2_phy>;
249 phy-names = "pcie-phy0";
250 interrupt-map-mask = <0 0 0 7>;
251 interrupt-map = <0 0 0 1 &pcie2_intc 1>,
252 <0 0 0 2 &pcie2_intc 2>,
253 <0 0 0 3 &pcie2_intc 3>,
254 <0 0 0 4 &pcie2_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530255 ti,syscon-unaligned-access = <&scm_conf1 0x14 2>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530256 pcie2_intc: interrupt-controller {
257 interrupt-controller;
258 #address-cells = <0>;
259 #interrupt-cells = <1>;
260 };
261 };
262 };
263
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500264 ocmcram1: ocmcram@40300000 {
265 compatible = "mmio-sram";
266 reg = <0x40300000 0x80000>;
267 ranges = <0x0 0x40300000 0x80000>;
268 #address-cells = <1>;
269 #size-cells = <1>;
Dave Gerlachfae3a9f2016-05-10 14:49:42 -0500270 /*
271 * This is a placeholder for an optional reserved
272 * region for use by secure software. The size
273 * of this region is not known until runtime so it
274 * is set as zero to either be updated to reserve
275 * space or left unchanged to leave all SRAM for use.
276 * On HS parts that that require the reserved region
277 * either the bootloader can update the size to
278 * the required amount or the node can be overridden
279 * from the board dts file for the secure platform.
280 */
281 sram-hs@0 {
282 compatible = "ti,secure-ram";
283 reg = <0x0 0x0>;
284 };
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500285 };
286
287 /*
288 * NOTE: ocmcram2 and ocmcram3 are not available on all
289 * DRA7xx and AM57xx variants. Confirm availability in
290 * the data manual for the exact part number in use
291 * before enabling these nodes in the board dts file.
292 */
293 ocmcram2: ocmcram@40400000 {
294 status = "disabled";
295 compatible = "mmio-sram";
296 reg = <0x40400000 0x100000>;
297 ranges = <0x0 0x40400000 0x100000>;
298 #address-cells = <1>;
299 #size-cells = <1>;
300 };
301
302 ocmcram3: ocmcram@40500000 {
303 status = "disabled";
304 compatible = "mmio-sram";
305 reg = <0x40500000 0x100000>;
306 ranges = <0x0 0x40500000 0x100000>;
307 #address-cells = <1>;
308 #size-cells = <1>;
309 };
310
Keerthyf7397ed2015-03-23 14:39:38 -0500311 bandgap: bandgap@4a0021e0 {
312 reg = <0x4a0021e0 0xc
313 0x4a00232c 0xc
314 0x4a002380 0x2c
315 0x4a0023C0 0x3c
316 0x4a002564 0x8
317 0x4a002574 0x50>;
318 compatible = "ti,dra752-bandgap";
319 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
320 #thermal-sensor-cells = <1>;
321 };
322
Suman Anna99639ac2015-10-02 18:23:22 -0500323 dsp1_system: dsp_system@40d00000 {
324 compatible = "syscon";
325 reg = <0x40d00000 0x100>;
326 };
327
Tony Lindgreneba61302017-06-16 17:24:29 +0530328 dra7_iodelay_core: padconf@4844a000 {
329 compatible = "ti,dra7-iodelay";
330 reg = <0x4844a000 0x0d1c>;
331 #address-cells = <1>;
332 #size-cells = <0>;
333 #pinctrl-cells = <2>;
334 };
335
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200336 edma: edma@43300000 {
337 compatible = "ti,edma3-tpcc";
338 ti,hwmods = "tpcc";
339 reg = <0x43300000 0x100000>;
340 reg-names = "edma3_cc";
341 interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
342 <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
343 <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>;
Robert P. J. Daya5206552016-05-24 17:20:28 -0400344 interrupt-names = "edma3_ccint", "edma3_mperr",
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200345 "edma3_ccerrint";
346 dma-requests = <64>;
347 #dma-cells = <2>;
348
349 ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 0>;
350
351 /*
352 * memcpy is disabled, can be enabled with:
353 * ti,edma-memcpy-channels = <20 21>;
354 * for example. Note that these channels need to be
355 * masked in the xbar as well.
356 */
357 };
358
359 edma_tptc0: tptc@43400000 {
360 compatible = "ti,edma3-tptc";
361 ti,hwmods = "tptc0";
362 reg = <0x43400000 0x100000>;
363 interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
364 interrupt-names = "edma3_tcerrint";
365 };
366
367 edma_tptc1: tptc@43500000 {
368 compatible = "ti,edma3-tptc";
369 ti,hwmods = "tptc1";
370 reg = <0x43500000 0x100000>;
371 interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
372 interrupt-names = "edma3_tcerrint";
373 };
374
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530375 dmm@4e000000 {
376 compatible = "ti,omap5-dmm";
377 reg = <0x4e000000 0x800>;
R Sricharana46631c2014-06-26 12:55:31 +0530378 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530379 ti,hwmods = "dmm";
380 };
381
Suman Anna2c7e07c52015-10-02 18:23:24 -0500382 mmu0_dsp1: mmu@40d01000 {
383 compatible = "ti,dra7-dsp-iommu";
384 reg = <0x40d01000 0x100>;
385 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
386 ti,hwmods = "mmu0_dsp1";
387 #iommu-cells = <0>;
388 ti,syscon-mmuconfig = <&dsp1_system 0x0>;
389 status = "disabled";
390 };
391
392 mmu1_dsp1: mmu@40d02000 {
393 compatible = "ti,dra7-dsp-iommu";
394 reg = <0x40d02000 0x100>;
395 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
396 ti,hwmods = "mmu1_dsp1";
397 #iommu-cells = <0>;
398 ti,syscon-mmuconfig = <&dsp1_system 0x1>;
399 status = "disabled";
400 };
401
402 mmu_ipu1: mmu@58882000 {
403 compatible = "ti,dra7-iommu";
404 reg = <0x58882000 0x100>;
405 interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>;
406 ti,hwmods = "mmu_ipu1";
407 #iommu-cells = <0>;
408 ti,iommu-bus-err-back;
409 status = "disabled";
410 };
411
412 mmu_ipu2: mmu@55082000 {
413 compatible = "ti,dra7-iommu";
414 reg = <0x55082000 0x100>;
415 interrupts = <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>;
416 ti,hwmods = "mmu_ipu2";
417 #iommu-cells = <0>;
418 ti,iommu-bus-err-back;
419 status = "disabled";
420 };
421
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530422 abb_mpu: regulator-abb-mpu {
423 compatible = "ti,abb-v3";
424 regulator-name = "abb_mpu";
425 #address-cells = <0>;
426 #size-cells = <0>;
427 clocks = <&sys_clkin1>;
428 ti,settling-time = <50>;
429 ti,clock-cycles = <16>;
430
431 reg = <0x4ae07ddc 0x4>, <0x4ae07de0 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500432 <0x4ae06014 0x4>, <0x4a003b20 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530433 <0x4ae0c158 0x4>;
434 reg-names = "setup-address", "control-address",
435 "int-address", "efuse-address",
436 "ldo-address";
437 ti,tranxdone-status-mask = <0x80>;
438 /* LDOVBBMPU_FBB_MUX_CTRL */
439 ti,ldovbb-override-mask = <0x400>;
440 /* LDOVBBMPU_FBB_VSET_OUT */
441 ti,ldovbb-vset-mask = <0x1F>;
442
443 /*
444 * NOTE: only FBB mode used but actual vset will
445 * determine final biasing
446 */
447 ti,abb_info = <
448 /*uV ABB efuse rbb_m fbb_m vset_m*/
449 1060000 0 0x0 0 0x02000000 0x01F00000
450 1160000 0 0x4 0 0x02000000 0x01F00000
451 1210000 0 0x8 0 0x02000000 0x01F00000
452 >;
453 };
454
455 abb_ivahd: regulator-abb-ivahd {
456 compatible = "ti,abb-v3";
457 regulator-name = "abb_ivahd";
458 #address-cells = <0>;
459 #size-cells = <0>;
460 clocks = <&sys_clkin1>;
461 ti,settling-time = <50>;
462 ti,clock-cycles = <16>;
463
464 reg = <0x4ae07e34 0x4>, <0x4ae07e24 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500465 <0x4ae06010 0x4>, <0x4a0025cc 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530466 <0x4a002470 0x4>;
467 reg-names = "setup-address", "control-address",
468 "int-address", "efuse-address",
469 "ldo-address";
470 ti,tranxdone-status-mask = <0x40000000>;
471 /* LDOVBBIVA_FBB_MUX_CTRL */
472 ti,ldovbb-override-mask = <0x400>;
473 /* LDOVBBIVA_FBB_VSET_OUT */
474 ti,ldovbb-vset-mask = <0x1F>;
475
476 /*
477 * NOTE: only FBB mode used but actual vset will
478 * determine final biasing
479 */
480 ti,abb_info = <
481 /*uV ABB efuse rbb_m fbb_m vset_m*/
482 1055000 0 0x0 0 0x02000000 0x01F00000
483 1150000 0 0x4 0 0x02000000 0x01F00000
484 1250000 0 0x8 0 0x02000000 0x01F00000
485 >;
486 };
487
488 abb_dspeve: regulator-abb-dspeve {
489 compatible = "ti,abb-v3";
490 regulator-name = "abb_dspeve";
491 #address-cells = <0>;
492 #size-cells = <0>;
493 clocks = <&sys_clkin1>;
494 ti,settling-time = <50>;
495 ti,clock-cycles = <16>;
496
497 reg = <0x4ae07e30 0x4>, <0x4ae07e20 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500498 <0x4ae06010 0x4>, <0x4a0025e0 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530499 <0x4a00246c 0x4>;
500 reg-names = "setup-address", "control-address",
501 "int-address", "efuse-address",
502 "ldo-address";
503 ti,tranxdone-status-mask = <0x20000000>;
504 /* LDOVBBDSPEVE_FBB_MUX_CTRL */
505 ti,ldovbb-override-mask = <0x400>;
506 /* LDOVBBDSPEVE_FBB_VSET_OUT */
507 ti,ldovbb-vset-mask = <0x1F>;
508
509 /*
510 * NOTE: only FBB mode used but actual vset will
511 * determine final biasing
512 */
513 ti,abb_info = <
514 /*uV ABB efuse rbb_m fbb_m vset_m*/
515 1055000 0 0x0 0 0x02000000 0x01F00000
516 1150000 0 0x4 0 0x02000000 0x01F00000
517 1250000 0 0x8 0 0x02000000 0x01F00000
518 >;
519 };
520
521 abb_gpu: regulator-abb-gpu {
522 compatible = "ti,abb-v3";
523 regulator-name = "abb_gpu";
524 #address-cells = <0>;
525 #size-cells = <0>;
526 clocks = <&sys_clkin1>;
527 ti,settling-time = <50>;
528 ti,clock-cycles = <16>;
529
530 reg = <0x4ae07de4 0x4>, <0x4ae07de8 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500531 <0x4ae06010 0x4>, <0x4a003b08 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530532 <0x4ae0c154 0x4>;
533 reg-names = "setup-address", "control-address",
534 "int-address", "efuse-address",
535 "ldo-address";
536 ti,tranxdone-status-mask = <0x10000000>;
537 /* LDOVBBGPU_FBB_MUX_CTRL */
538 ti,ldovbb-override-mask = <0x400>;
539 /* LDOVBBGPU_FBB_VSET_OUT */
540 ti,ldovbb-vset-mask = <0x1F>;
541
542 /*
543 * NOTE: only FBB mode used but actual vset will
544 * determine final biasing
545 */
546 ti,abb_info = <
547 /*uV ABB efuse rbb_m fbb_m vset_m*/
548 1090000 0 0x0 0 0x02000000 0x01F00000
549 1210000 0 0x4 0 0x02000000 0x01F00000
550 1280000 0 0x8 0 0x02000000 0x01F00000
551 >;
552 };
553
Rob Herringcc893872018-09-13 13:12:25 -0500554 qspi: spi@4b300000 {
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530555 compatible = "ti,dra7xxx-qspi";
Vignesh R1929d0b2015-12-11 09:39:59 +0530556 reg = <0x4b300000 0x100>,
557 <0x5c000000 0x4000000>;
558 reg-names = "qspi_base", "qspi_mmap";
559 syscon-chipselects = <&scm_conf 0x558>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530560 #address-cells = <1>;
561 #size-cells = <0>;
562 ti,hwmods = "qspi";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300563 clocks = <&l4per2_clkctrl DRA7_L4PER2_QSPI_CLKCTRL 25>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530564 clock-names = "fck";
565 num-cs = <4>;
R Sricharana46631c2014-06-26 12:55:31 +0530566 interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530567 status = "disabled";
568 };
Balaji T K7be80562014-05-07 14:58:58 +0300569
Balaji T K7be80562014-05-07 14:58:58 +0300570 /* OCP2SCP3 */
Balaji T K7be80562014-05-07 14:58:58 +0300571 sata: sata@4a141100 {
572 compatible = "snps,dwc-ahci";
573 reg = <0x4a140000 0x1100>, <0x4a141100 0x7>;
R Sricharana46631c2014-06-26 12:55:31 +0530574 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
Balaji T K7be80562014-05-07 14:58:58 +0300575 phys = <&sata_phy>;
576 phy-names = "sata-phy";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300577 clocks = <&l3init_clkctrl DRA7_L3INIT_SATA_CLKCTRL 8>;
Balaji T K7be80562014-05-07 14:58:58 +0300578 ti,hwmods = "sata";
Jean-Jacques Hiblot87cb1292017-01-09 13:22:15 +0100579 ports-implemented = <0x1>;
Balaji T K7be80562014-05-07 14:58:58 +0300580 };
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300581
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300582 /* OCP2SCP1 */
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300583 /* IRQ for DWC3_3 and DWC3_4 need IRQ crossbar */
Minal Shahff66a3c2014-05-19 14:45:47 +0530584 gpmc: gpmc@50000000 {
585 compatible = "ti,am3352-gpmc";
586 ti,hwmods = "gpmc";
587 reg = <0x50000000 0x37c>; /* device IO registers */
R Sricharana46631c2014-06-26 12:55:31 +0530588 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
Franklin S Cooper Jr10ce2402016-05-04 12:43:55 -0500589 dmas = <&edma_xbar 4 0>;
590 dma-names = "rxtx";
Minal Shahff66a3c2014-05-19 14:45:47 +0530591 gpmc,num-cs = <8>;
592 gpmc,num-waitpins = <2>;
593 #address-cells = <2>;
594 #size-cells = <1>;
Roger Quadros488f270d2016-02-23 18:37:17 +0200595 interrupt-controller;
596 #interrupt-cells = <2>;
Roger Quadros845b1a22016-04-07 13:25:31 +0300597 gpio-controller;
598 #gpio-cells = <2>;
Minal Shahff66a3c2014-05-19 14:45:47 +0530599 status = "disabled";
600 };
Peter Ujfalusi2ca09452014-05-07 13:20:48 +0300601
Marc Zyngier783d3182015-03-11 15:43:44 +0000602 crossbar_mpu: crossbar@4a002a48 {
R Sricharana46631c2014-06-26 12:55:31 +0530603 compatible = "ti,irq-crossbar";
604 reg = <0x4a002a48 0x130>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000605 interrupt-controller;
Marc Zyngier7136d452015-03-11 15:43:49 +0000606 interrupt-parent = <&wakeupgen>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000607 #interrupt-cells = <3>;
R Sricharana46631c2014-06-26 12:55:31 +0530608 ti,max-irqs = <160>;
609 ti,max-crossbar-sources = <MAX_SOURCES>;
610 ti,reg-size = <2>;
611 ti,irqs-reserved = <0 1 2 3 5 6 131 132>;
612 ti,irqs-skip = <10 133 139 140>;
613 ti,irqs-safe-map = <0>;
614 };
Mugunthan V Nef9c5b62014-10-21 15:31:00 +0530615
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530616 dss: dss@58000000 {
617 compatible = "ti,dra7-dss";
618 /* 'reg' defined in dra72x.dtsi and dra74x.dtsi */
619 /* 'clocks' defined in dra72x.dtsi and dra74x.dtsi */
620 status = "disabled";
621 ti,hwmods = "dss_core";
622 /* CTRL_CORE_DSS_PLL_CONTROL */
623 syscon-pll-ctrl = <&scm_conf 0x538>;
624 #address-cells = <1>;
625 #size-cells = <1>;
626 ranges;
627
628 dispc@58001000 {
629 compatible = "ti,dra7-dispc";
630 reg = <0x58001000 0x1000>;
631 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
632 ti,hwmods = "dss_dispc";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300633 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 8>;
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530634 clock-names = "fck";
635 /* CTRL_CORE_SMA_SW_1 */
636 syscon-pol = <&scm_conf 0x534>;
637 };
638
639 hdmi: encoder@58060000 {
640 compatible = "ti,dra7-hdmi";
641 reg = <0x58040000 0x200>,
642 <0x58040200 0x80>,
643 <0x58040300 0x80>,
644 <0x58060000 0x19000>;
645 reg-names = "wp", "pll", "phy", "core";
646 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
647 status = "disabled";
648 ti,hwmods = "dss_hdmi";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300649 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 9>,
650 <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 10>;
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530651 clock-names = "fck", "sys_clk";
Peter Ujfalusi12397382017-11-08 14:53:23 +0200652 dmas = <&sdma_xbar 76>;
653 dma-names = "audio_tx";
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530654 };
655 };
Vignesh R34370142016-05-03 10:56:55 -0500656
Joel Fernandese7fd15c2016-06-01 12:06:42 +0300657 aes1: aes@4b500000 {
658 compatible = "ti,omap4-aes";
659 ti,hwmods = "aes1";
660 reg = <0x4b500000 0xa0>;
661 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
662 dmas = <&edma_xbar 111 0>, <&edma_xbar 110 0>;
663 dma-names = "tx", "rx";
664 clocks = <&l3_iclk_div>;
665 clock-names = "fck";
666 };
667
668 aes2: aes@4b700000 {
669 compatible = "ti,omap4-aes";
670 ti,hwmods = "aes2";
671 reg = <0x4b700000 0xa0>;
672 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
673 dmas = <&edma_xbar 114 0>, <&edma_xbar 113 0>;
674 dma-names = "tx", "rx";
675 clocks = <&l3_iclk_div>;
676 clock-names = "fck";
677 };
678
Joel Fernandesbac9d0b2016-06-01 12:06:41 +0300679 des: des@480a5000 {
680 compatible = "ti,omap4-des";
681 ti,hwmods = "des";
682 reg = <0x480a5000 0xa0>;
683 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
684 dmas = <&sdma_xbar 117>, <&sdma_xbar 116>;
685 dma-names = "tx", "rx";
686 clocks = <&l3_iclk_div>;
687 clock-names = "fck";
688 };
Lokesh Vutlada346092016-06-01 12:06:43 +0300689
690 sham: sham@53100000 {
691 compatible = "ti,omap5-sham";
692 ti,hwmods = "sham";
693 reg = <0x4b101000 0x300>;
694 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
695 dmas = <&edma_xbar 119 0>;
696 dma-names = "rx";
697 clocks = <&l3_iclk_div>;
698 clock-names = "fck";
699 };
Lokesh Vutla610e9c42016-06-01 12:06:44 +0300700
Dave Gerlachdbef1962017-12-19 09:24:20 -0600701 opp_supply_mpu: opp-supply@4a003b20 {
702 compatible = "ti,omap5-opp-supply";
703 reg = <0x4a003b20 0xc>;
704 ti,efuse-settings = <
705 /* uV offset */
706 1060000 0x0
707 1160000 0x4
708 1210000 0x8
709 >;
710 ti,absolute-max-voltage-uv = <1500000>;
711 };
712
R Sricharan6e58b8f2013-08-14 19:08:20 +0530713 };
Keerthyf7397ed2015-03-23 14:39:38 -0500714
715 thermal_zones: thermal-zones {
716 #include "omap4-cpu-thermal.dtsi"
717 #include "omap5-gpu-thermal.dtsi"
718 #include "omap5-core-thermal.dtsi"
Keerthy667f2592016-02-08 14:46:30 +0530719 #include "dra7-dspeve-thermal.dtsi"
720 #include "dra7-iva-thermal.dtsi"
Keerthyf7397ed2015-03-23 14:39:38 -0500721 };
722
723};
724
725&cpu_thermal {
726 polling-delay = <500>; /* milliseconds */
Keerthyfb51ae02017-03-09 13:35:56 +0530727 coefficients = <0 2000>;
728};
729
730&gpu_thermal {
731 coefficients = <0 2000>;
732};
733
734&core_thermal {
735 coefficients = <0 2000>;
736};
737
738&dspeve_thermal {
739 coefficients = <0 2000>;
740};
741
742&iva_thermal {
743 coefficients = <0 2000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530744};
Tero Kristoee6c7502013-07-18 17:18:33 +0300745
Ravikumar Kattekolabca52382017-05-17 06:51:38 -0700746&cpu_crit {
747 temperature = <120000>; /* milli Celsius */
748};
749
Ravikumar Kattekola64c358b2018-01-11 21:45:39 +0530750&core_crit {
751 temperature = <120000>; /* milli Celsius */
752};
753
754&gpu_crit {
755 temperature = <120000>; /* milli Celsius */
756};
757
758&dspeve_crit {
759 temperature = <120000>; /* milli Celsius */
760};
761
762&iva_crit {
763 temperature = <120000>; /* milli Celsius */
764};
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700765
766#include "dra7-l4.dtsi"
767#include "dra7xx-clocks.dtsi"