blob: 2bc9add8b7a5038c76ca48bd9ae7faf59584a559 [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";
196 interrupt-map-mask = <0 0 0 7>;
197 interrupt-map = <0 0 0 1 &pcie1_intc 1>,
198 <0 0 0 2 &pcie1_intc 2>,
199 <0 0 0 3 &pcie1_intc 3>,
200 <0 0 0 4 &pcie1_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530201 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530202 status = "disabled";
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530203 pcie1_intc: interrupt-controller {
204 interrupt-controller;
205 #address-cells = <0>;
206 #interrupt-cells = <1>;
207 };
208 };
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530209
210 pcie1_ep: pcie_ep@51000000 {
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530211 reg = <0x51000000 0x28>, <0x51002000 0x14c>, <0x51001000 0x28>, <0x1000 0x10000000>;
212 reg-names = "ep_dbics", "ti_conf", "ep_dbics2", "addr_space";
213 interrupts = <0 232 0x4>;
214 num-lanes = <1>;
215 num-ib-windows = <4>;
216 num-ob-windows = <16>;
217 ti,hwmods = "pcie1";
218 phys = <&pcie1_phy>;
219 phy-names = "pcie-phy0";
Vignesh R6d0af442018-09-25 10:51:51 +0530220 ti,syscon-unaligned-access = <&scm_conf1 0x14 1>;
Kishon Vijay Abraham Id23f3832017-08-08 11:10:24 +0530221 status = "disabled";
222 };
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530223 };
224
225 axi@1 {
226 compatible = "simple-bus";
227 #size-cells = <1>;
228 #address-cells = <1>;
229 ranges = <0x51800000 0x51800000 0x3000
230 0x0 0x30000000 0x10000000>;
231 status = "disabled";
Kishon Vijay Abraham I1ac19c82017-12-19 15:01:28 +0530232 pcie2_rc: pcie@51800000 {
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530233 reg = <0x51800000 0x2000>, <0x51802000 0x14c>, <0x1000 0x2000>;
234 reg-names = "rc_dbics", "ti_conf", "config";
235 interrupts = <0 355 0x4>, <0 356 0x4>;
236 #address-cells = <3>;
237 #size-cells = <2>;
238 device_type = "pci";
239 ranges = <0x81000000 0 0 0x03000 0 0x00010000
240 0x82000000 0 0x30013000 0x13000 0 0xffed000>;
Rob Herring7d79f602017-03-21 21:03:01 -0500241 bus-range = <0x00 0xff>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530242 #interrupt-cells = <1>;
243 num-lanes = <1>;
Kishon Vijay Abraham Ibed596d2016-08-10 18:03:18 +0530244 linux,pci-domain = <1>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530245 ti,hwmods = "pcie2";
246 phys = <&pcie2_phy>;
247 phy-names = "pcie-phy0";
248 interrupt-map-mask = <0 0 0 7>;
249 interrupt-map = <0 0 0 1 &pcie2_intc 1>,
250 <0 0 0 2 &pcie2_intc 2>,
251 <0 0 0 3 &pcie2_intc 3>,
252 <0 0 0 4 &pcie2_intc 4>;
Vignesh Rb8305262018-09-28 11:34:42 +0530253 ti,syscon-unaligned-access = <&scm_conf1 0x14 2>;
Kishon Vijay Abraham I18dcd792014-07-14 16:12:23 +0530254 pcie2_intc: interrupt-controller {
255 interrupt-controller;
256 #address-cells = <0>;
257 #interrupt-cells = <1>;
258 };
259 };
260 };
261
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500262 ocmcram1: ocmcram@40300000 {
263 compatible = "mmio-sram";
264 reg = <0x40300000 0x80000>;
265 ranges = <0x0 0x40300000 0x80000>;
266 #address-cells = <1>;
267 #size-cells = <1>;
Dave Gerlachfae3a9f2016-05-10 14:49:42 -0500268 /*
269 * This is a placeholder for an optional reserved
270 * region for use by secure software. The size
271 * of this region is not known until runtime so it
272 * is set as zero to either be updated to reserve
273 * space or left unchanged to leave all SRAM for use.
274 * On HS parts that that require the reserved region
275 * either the bootloader can update the size to
276 * the required amount or the node can be overridden
277 * from the board dts file for the secure platform.
278 */
279 sram-hs@0 {
280 compatible = "ti,secure-ram";
281 reg = <0x0 0x0>;
282 };
Dave Gerlacha5fa09b2016-05-10 14:49:41 -0500283 };
284
285 /*
286 * NOTE: ocmcram2 and ocmcram3 are not available on all
287 * DRA7xx and AM57xx variants. Confirm availability in
288 * the data manual for the exact part number in use
289 * before enabling these nodes in the board dts file.
290 */
291 ocmcram2: ocmcram@40400000 {
292 status = "disabled";
293 compatible = "mmio-sram";
294 reg = <0x40400000 0x100000>;
295 ranges = <0x0 0x40400000 0x100000>;
296 #address-cells = <1>;
297 #size-cells = <1>;
298 };
299
300 ocmcram3: ocmcram@40500000 {
301 status = "disabled";
302 compatible = "mmio-sram";
303 reg = <0x40500000 0x100000>;
304 ranges = <0x0 0x40500000 0x100000>;
305 #address-cells = <1>;
306 #size-cells = <1>;
307 };
308
Keerthyf7397ed2015-03-23 14:39:38 -0500309 bandgap: bandgap@4a0021e0 {
310 reg = <0x4a0021e0 0xc
311 0x4a00232c 0xc
312 0x4a002380 0x2c
313 0x4a0023C0 0x3c
314 0x4a002564 0x8
315 0x4a002574 0x50>;
316 compatible = "ti,dra752-bandgap";
317 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
318 #thermal-sensor-cells = <1>;
319 };
320
Suman Anna99639ac2015-10-02 18:23:22 -0500321 dsp1_system: dsp_system@40d00000 {
322 compatible = "syscon";
323 reg = <0x40d00000 0x100>;
324 };
325
Tony Lindgreneba61302017-06-16 17:24:29 +0530326 dra7_iodelay_core: padconf@4844a000 {
327 compatible = "ti,dra7-iodelay";
328 reg = <0x4844a000 0x0d1c>;
329 #address-cells = <1>;
330 #size-cells = <0>;
331 #pinctrl-cells = <2>;
332 };
333
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200334 edma: edma@43300000 {
335 compatible = "ti,edma3-tpcc";
336 ti,hwmods = "tpcc";
337 reg = <0x43300000 0x100000>;
338 reg-names = "edma3_cc";
339 interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
340 <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
341 <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>;
Robert P. J. Daya5206552016-05-24 17:20:28 -0400342 interrupt-names = "edma3_ccint", "edma3_mperr",
Peter Ujfalusi248948f2016-03-07 17:17:29 +0200343 "edma3_ccerrint";
344 dma-requests = <64>;
345 #dma-cells = <2>;
346
347 ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 0>;
348
349 /*
350 * memcpy is disabled, can be enabled with:
351 * ti,edma-memcpy-channels = <20 21>;
352 * for example. Note that these channels need to be
353 * masked in the xbar as well.
354 */
355 };
356
357 edma_tptc0: tptc@43400000 {
358 compatible = "ti,edma3-tptc";
359 ti,hwmods = "tptc0";
360 reg = <0x43400000 0x100000>;
361 interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
362 interrupt-names = "edma3_tcerrint";
363 };
364
365 edma_tptc1: tptc@43500000 {
366 compatible = "ti,edma3-tptc";
367 ti,hwmods = "tptc1";
368 reg = <0x43500000 0x100000>;
369 interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
370 interrupt-names = "edma3_tcerrint";
371 };
372
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530373 dmm@4e000000 {
374 compatible = "ti,omap5-dmm";
375 reg = <0x4e000000 0x800>;
R Sricharana46631c2014-06-26 12:55:31 +0530376 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
Archit Taneja1a5fe3c2013-12-17 15:32:21 +0530377 ti,hwmods = "dmm";
378 };
379
Suman Anna2c7e07c52015-10-02 18:23:24 -0500380 mmu0_dsp1: mmu@40d01000 {
381 compatible = "ti,dra7-dsp-iommu";
382 reg = <0x40d01000 0x100>;
383 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
384 ti,hwmods = "mmu0_dsp1";
385 #iommu-cells = <0>;
386 ti,syscon-mmuconfig = <&dsp1_system 0x0>;
387 status = "disabled";
388 };
389
390 mmu1_dsp1: mmu@40d02000 {
391 compatible = "ti,dra7-dsp-iommu";
392 reg = <0x40d02000 0x100>;
393 interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
394 ti,hwmods = "mmu1_dsp1";
395 #iommu-cells = <0>;
396 ti,syscon-mmuconfig = <&dsp1_system 0x1>;
397 status = "disabled";
398 };
399
400 mmu_ipu1: mmu@58882000 {
401 compatible = "ti,dra7-iommu";
402 reg = <0x58882000 0x100>;
403 interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>;
404 ti,hwmods = "mmu_ipu1";
405 #iommu-cells = <0>;
406 ti,iommu-bus-err-back;
407 status = "disabled";
408 };
409
410 mmu_ipu2: mmu@55082000 {
411 compatible = "ti,dra7-iommu";
412 reg = <0x55082000 0x100>;
413 interrupts = <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>;
414 ti,hwmods = "mmu_ipu2";
415 #iommu-cells = <0>;
416 ti,iommu-bus-err-back;
417 status = "disabled";
418 };
419
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530420 abb_mpu: regulator-abb-mpu {
421 compatible = "ti,abb-v3";
422 regulator-name = "abb_mpu";
423 #address-cells = <0>;
424 #size-cells = <0>;
425 clocks = <&sys_clkin1>;
426 ti,settling-time = <50>;
427 ti,clock-cycles = <16>;
428
429 reg = <0x4ae07ddc 0x4>, <0x4ae07de0 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500430 <0x4ae06014 0x4>, <0x4a003b20 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530431 <0x4ae0c158 0x4>;
432 reg-names = "setup-address", "control-address",
433 "int-address", "efuse-address",
434 "ldo-address";
435 ti,tranxdone-status-mask = <0x80>;
436 /* LDOVBBMPU_FBB_MUX_CTRL */
437 ti,ldovbb-override-mask = <0x400>;
438 /* LDOVBBMPU_FBB_VSET_OUT */
439 ti,ldovbb-vset-mask = <0x1F>;
440
441 /*
442 * NOTE: only FBB mode used but actual vset will
443 * determine final biasing
444 */
445 ti,abb_info = <
446 /*uV ABB efuse rbb_m fbb_m vset_m*/
447 1060000 0 0x0 0 0x02000000 0x01F00000
448 1160000 0 0x4 0 0x02000000 0x01F00000
449 1210000 0 0x8 0 0x02000000 0x01F00000
450 >;
451 };
452
453 abb_ivahd: regulator-abb-ivahd {
454 compatible = "ti,abb-v3";
455 regulator-name = "abb_ivahd";
456 #address-cells = <0>;
457 #size-cells = <0>;
458 clocks = <&sys_clkin1>;
459 ti,settling-time = <50>;
460 ti,clock-cycles = <16>;
461
462 reg = <0x4ae07e34 0x4>, <0x4ae07e24 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500463 <0x4ae06010 0x4>, <0x4a0025cc 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530464 <0x4a002470 0x4>;
465 reg-names = "setup-address", "control-address",
466 "int-address", "efuse-address",
467 "ldo-address";
468 ti,tranxdone-status-mask = <0x40000000>;
469 /* LDOVBBIVA_FBB_MUX_CTRL */
470 ti,ldovbb-override-mask = <0x400>;
471 /* LDOVBBIVA_FBB_VSET_OUT */
472 ti,ldovbb-vset-mask = <0x1F>;
473
474 /*
475 * NOTE: only FBB mode used but actual vset will
476 * determine final biasing
477 */
478 ti,abb_info = <
479 /*uV ABB efuse rbb_m fbb_m vset_m*/
480 1055000 0 0x0 0 0x02000000 0x01F00000
481 1150000 0 0x4 0 0x02000000 0x01F00000
482 1250000 0 0x8 0 0x02000000 0x01F00000
483 >;
484 };
485
486 abb_dspeve: regulator-abb-dspeve {
487 compatible = "ti,abb-v3";
488 regulator-name = "abb_dspeve";
489 #address-cells = <0>;
490 #size-cells = <0>;
491 clocks = <&sys_clkin1>;
492 ti,settling-time = <50>;
493 ti,clock-cycles = <16>;
494
495 reg = <0x4ae07e30 0x4>, <0x4ae07e20 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500496 <0x4ae06010 0x4>, <0x4a0025e0 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530497 <0x4a00246c 0x4>;
498 reg-names = "setup-address", "control-address",
499 "int-address", "efuse-address",
500 "ldo-address";
501 ti,tranxdone-status-mask = <0x20000000>;
502 /* LDOVBBDSPEVE_FBB_MUX_CTRL */
503 ti,ldovbb-override-mask = <0x400>;
504 /* LDOVBBDSPEVE_FBB_VSET_OUT */
505 ti,ldovbb-vset-mask = <0x1F>;
506
507 /*
508 * NOTE: only FBB mode used but actual vset will
509 * determine final biasing
510 */
511 ti,abb_info = <
512 /*uV ABB efuse rbb_m fbb_m vset_m*/
513 1055000 0 0x0 0 0x02000000 0x01F00000
514 1150000 0 0x4 0 0x02000000 0x01F00000
515 1250000 0 0x8 0 0x02000000 0x01F00000
516 >;
517 };
518
519 abb_gpu: regulator-abb-gpu {
520 compatible = "ti,abb-v3";
521 regulator-name = "abb_gpu";
522 #address-cells = <0>;
523 #size-cells = <0>;
524 clocks = <&sys_clkin1>;
525 ti,settling-time = <50>;
526 ti,clock-cycles = <16>;
527
528 reg = <0x4ae07de4 0x4>, <0x4ae07de8 0x4>,
Nishanth Menon18227342015-04-16 16:56:33 -0500529 <0x4ae06010 0x4>, <0x4a003b08 0xc>,
Nishanth Menona1b8ee12014-03-03 20:20:23 +0530530 <0x4ae0c154 0x4>;
531 reg-names = "setup-address", "control-address",
532 "int-address", "efuse-address",
533 "ldo-address";
534 ti,tranxdone-status-mask = <0x10000000>;
535 /* LDOVBBGPU_FBB_MUX_CTRL */
536 ti,ldovbb-override-mask = <0x400>;
537 /* LDOVBBGPU_FBB_VSET_OUT */
538 ti,ldovbb-vset-mask = <0x1F>;
539
540 /*
541 * NOTE: only FBB mode used but actual vset will
542 * determine final biasing
543 */
544 ti,abb_info = <
545 /*uV ABB efuse rbb_m fbb_m vset_m*/
546 1090000 0 0x0 0 0x02000000 0x01F00000
547 1210000 0 0x4 0 0x02000000 0x01F00000
548 1280000 0 0x8 0 0x02000000 0x01F00000
549 >;
550 };
551
Rob Herringcc893872018-09-13 13:12:25 -0500552 qspi: spi@4b300000 {
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530553 compatible = "ti,dra7xxx-qspi";
Vignesh R1929d0b2015-12-11 09:39:59 +0530554 reg = <0x4b300000 0x100>,
555 <0x5c000000 0x4000000>;
556 reg-names = "qspi_base", "qspi_mmap";
557 syscon-chipselects = <&scm_conf 0x558>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530558 #address-cells = <1>;
559 #size-cells = <0>;
560 ti,hwmods = "qspi";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300561 clocks = <&l4per2_clkctrl DRA7_L4PER2_QSPI_CLKCTRL 25>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530562 clock-names = "fck";
563 num-cs = <4>;
R Sricharana46631c2014-06-26 12:55:31 +0530564 interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
Sourav Poddardc2dd5b2014-05-06 16:37:24 +0530565 status = "disabled";
566 };
Balaji T K7be80562014-05-07 14:58:58 +0300567
Balaji T K7be80562014-05-07 14:58:58 +0300568 /* OCP2SCP3 */
Balaji T K7be80562014-05-07 14:58:58 +0300569 sata: sata@4a141100 {
570 compatible = "snps,dwc-ahci";
571 reg = <0x4a140000 0x1100>, <0x4a141100 0x7>;
R Sricharana46631c2014-06-26 12:55:31 +0530572 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
Balaji T K7be80562014-05-07 14:58:58 +0300573 phys = <&sata_phy>;
574 phy-names = "sata-phy";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300575 clocks = <&l3init_clkctrl DRA7_L3INIT_SATA_CLKCTRL 8>;
Balaji T K7be80562014-05-07 14:58:58 +0300576 ti,hwmods = "sata";
Jean-Jacques Hiblot87cb1292017-01-09 13:22:15 +0100577 ports-implemented = <0x1>;
Balaji T K7be80562014-05-07 14:58:58 +0300578 };
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300579
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300580 /* OCP2SCP1 */
Roger Quadrosfbf3e552014-05-05 12:54:45 +0300581 /* IRQ for DWC3_3 and DWC3_4 need IRQ crossbar */
Minal Shahff66a3c2014-05-19 14:45:47 +0530582 gpmc: gpmc@50000000 {
583 compatible = "ti,am3352-gpmc";
584 ti,hwmods = "gpmc";
585 reg = <0x50000000 0x37c>; /* device IO registers */
R Sricharana46631c2014-06-26 12:55:31 +0530586 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
Franklin S Cooper Jr10ce2402016-05-04 12:43:55 -0500587 dmas = <&edma_xbar 4 0>;
588 dma-names = "rxtx";
Minal Shahff66a3c2014-05-19 14:45:47 +0530589 gpmc,num-cs = <8>;
590 gpmc,num-waitpins = <2>;
591 #address-cells = <2>;
592 #size-cells = <1>;
Roger Quadros488f270d2016-02-23 18:37:17 +0200593 interrupt-controller;
594 #interrupt-cells = <2>;
Roger Quadros845b1a22016-04-07 13:25:31 +0300595 gpio-controller;
596 #gpio-cells = <2>;
Minal Shahff66a3c2014-05-19 14:45:47 +0530597 status = "disabled";
598 };
Peter Ujfalusi2ca09452014-05-07 13:20:48 +0300599
Marc Zyngier783d3182015-03-11 15:43:44 +0000600 crossbar_mpu: crossbar@4a002a48 {
R Sricharana46631c2014-06-26 12:55:31 +0530601 compatible = "ti,irq-crossbar";
602 reg = <0x4a002a48 0x130>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000603 interrupt-controller;
Marc Zyngier7136d452015-03-11 15:43:49 +0000604 interrupt-parent = <&wakeupgen>;
Marc Zyngier783d3182015-03-11 15:43:44 +0000605 #interrupt-cells = <3>;
R Sricharana46631c2014-06-26 12:55:31 +0530606 ti,max-irqs = <160>;
607 ti,max-crossbar-sources = <MAX_SOURCES>;
608 ti,reg-size = <2>;
609 ti,irqs-reserved = <0 1 2 3 5 6 131 132>;
610 ti,irqs-skip = <10 133 139 140>;
611 ti,irqs-safe-map = <0>;
612 };
Mugunthan V Nef9c5b62014-10-21 15:31:00 +0530613
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530614 dss: dss@58000000 {
615 compatible = "ti,dra7-dss";
616 /* 'reg' defined in dra72x.dtsi and dra74x.dtsi */
617 /* 'clocks' defined in dra72x.dtsi and dra74x.dtsi */
618 status = "disabled";
619 ti,hwmods = "dss_core";
620 /* CTRL_CORE_DSS_PLL_CONTROL */
621 syscon-pll-ctrl = <&scm_conf 0x538>;
622 #address-cells = <1>;
623 #size-cells = <1>;
624 ranges;
625
626 dispc@58001000 {
627 compatible = "ti,dra7-dispc";
628 reg = <0x58001000 0x1000>;
629 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
630 ti,hwmods = "dss_dispc";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300631 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 8>;
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530632 clock-names = "fck";
633 /* CTRL_CORE_SMA_SW_1 */
634 syscon-pol = <&scm_conf 0x534>;
635 };
636
637 hdmi: encoder@58060000 {
638 compatible = "ti,dra7-hdmi";
639 reg = <0x58040000 0x200>,
640 <0x58040200 0x80>,
641 <0x58040300 0x80>,
642 <0x58060000 0x19000>;
643 reg-names = "wp", "pll", "phy", "core";
644 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
645 status = "disabled";
646 ti,hwmods = "dss_hdmi";
Tero Kristob5f8ffb2018-08-31 18:14:51 +0300647 clocks = <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 9>,
648 <&dss_clkctrl DRA7_DSS_DSS_CORE_CLKCTRL 10>;
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530649 clock-names = "fck", "sys_clk";
Peter Ujfalusi12397382017-11-08 14:53:23 +0200650 dmas = <&sdma_xbar 76>;
651 dma-names = "audio_tx";
Tomi Valkeinen95c1cd12014-07-09 16:15:18 +0530652 };
653 };
Vignesh R34370142016-05-03 10:56:55 -0500654
Joel Fernandese7fd15c2016-06-01 12:06:42 +0300655 aes1: aes@4b500000 {
656 compatible = "ti,omap4-aes";
657 ti,hwmods = "aes1";
658 reg = <0x4b500000 0xa0>;
659 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
660 dmas = <&edma_xbar 111 0>, <&edma_xbar 110 0>;
661 dma-names = "tx", "rx";
662 clocks = <&l3_iclk_div>;
663 clock-names = "fck";
664 };
665
666 aes2: aes@4b700000 {
667 compatible = "ti,omap4-aes";
668 ti,hwmods = "aes2";
669 reg = <0x4b700000 0xa0>;
670 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
671 dmas = <&edma_xbar 114 0>, <&edma_xbar 113 0>;
672 dma-names = "tx", "rx";
673 clocks = <&l3_iclk_div>;
674 clock-names = "fck";
675 };
676
Joel Fernandesbac9d0b2016-06-01 12:06:41 +0300677 des: des@480a5000 {
678 compatible = "ti,omap4-des";
679 ti,hwmods = "des";
680 reg = <0x480a5000 0xa0>;
681 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
682 dmas = <&sdma_xbar 117>, <&sdma_xbar 116>;
683 dma-names = "tx", "rx";
684 clocks = <&l3_iclk_div>;
685 clock-names = "fck";
686 };
Lokesh Vutlada346092016-06-01 12:06:43 +0300687
688 sham: sham@53100000 {
689 compatible = "ti,omap5-sham";
690 ti,hwmods = "sham";
691 reg = <0x4b101000 0x300>;
692 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
693 dmas = <&edma_xbar 119 0>;
694 dma-names = "rx";
695 clocks = <&l3_iclk_div>;
696 clock-names = "fck";
697 };
Lokesh Vutla610e9c42016-06-01 12:06:44 +0300698
Dave Gerlachdbef1962017-12-19 09:24:20 -0600699 opp_supply_mpu: opp-supply@4a003b20 {
700 compatible = "ti,omap5-opp-supply";
701 reg = <0x4a003b20 0xc>;
702 ti,efuse-settings = <
703 /* uV offset */
704 1060000 0x0
705 1160000 0x4
706 1210000 0x8
707 >;
708 ti,absolute-max-voltage-uv = <1500000>;
709 };
710
R Sricharan6e58b8f2013-08-14 19:08:20 +0530711 };
Keerthyf7397ed2015-03-23 14:39:38 -0500712
713 thermal_zones: thermal-zones {
714 #include "omap4-cpu-thermal.dtsi"
715 #include "omap5-gpu-thermal.dtsi"
716 #include "omap5-core-thermal.dtsi"
Keerthy667f2592016-02-08 14:46:30 +0530717 #include "dra7-dspeve-thermal.dtsi"
718 #include "dra7-iva-thermal.dtsi"
Keerthyf7397ed2015-03-23 14:39:38 -0500719 };
720
721};
722
723&cpu_thermal {
724 polling-delay = <500>; /* milliseconds */
Keerthyfb51ae02017-03-09 13:35:56 +0530725 coefficients = <0 2000>;
726};
727
728&gpu_thermal {
729 coefficients = <0 2000>;
730};
731
732&core_thermal {
733 coefficients = <0 2000>;
734};
735
736&dspeve_thermal {
737 coefficients = <0 2000>;
738};
739
740&iva_thermal {
741 coefficients = <0 2000>;
R Sricharan6e58b8f2013-08-14 19:08:20 +0530742};
Tero Kristoee6c7502013-07-18 17:18:33 +0300743
Ravikumar Kattekolabca52382017-05-17 06:51:38 -0700744&cpu_crit {
745 temperature = <120000>; /* milli Celsius */
746};
747
Ravikumar Kattekola64c358b2018-01-11 21:45:39 +0530748&core_crit {
749 temperature = <120000>; /* milli Celsius */
750};
751
752&gpu_crit {
753 temperature = <120000>; /* milli Celsius */
754};
755
756&dspeve_crit {
757 temperature = <120000>; /* milli Celsius */
758};
759
760&iva_crit {
761 temperature = <120000>; /* milli Celsius */
762};
Tony Lindgren4ed0dfe2018-09-27 13:39:07 -0700763
764#include "dra7-l4.dtsi"
765#include "dra7xx-clocks.dtsi"