blob: 7e9516e8f885ac9e3a2fea2811cb8edc5aea3b27 [file] [log] [blame]
Hannes Schmelzer60df8092019-08-01 07:04:46 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2017 B&R Industrial Automation GmbH
4 * http://www.br-automation.com
5 *
6 */
7/dts-v1/;
8
9#include "am33xx.dtsi"
10#include "dt-bindings/thermal/thermal.h"
11
12/ {
13 model = "BRSMARC1 SoM";
14 compatible = "ti,am33xx";
15
16 fset: factory-settings {
17 bl-version = " ";
18 order-no = " ";
19 cpu-order-no = " ";
20 hw-revision = " ";
21 serial-no = <0>;
22 device-id = <0x0>;
23 parent-id = <0x0>;
24 hw-variant = <0x0>;
25 hw-platform = <0x7>;
26 fram-offset = <0x100>;
27 fram-size = <0x1F00>;
28 cache-disable = <0x0>;
29 cpu-clock = <0x0>;
30 };
31
32 chosen {
33 bootargs = "console=ttyO0,115200 earlyprintk";
34 stdout-path = &uart0;
35 };
36
37 aliases {
38 fset = &fset;
39 mmc = &mmc2;
40 spi0 = &spi0;
41 spi1 = &spi1;
42 touch0 = &burtouch0;
43 screen0 = &lcdscreen0;
44 };
45
46 memory {
47 device_type = "memory";
48 reg = <0x80000000 0x10000000>; /* 256 MB */
49 };
50
51 vmmcsd_fixed: fixedregulator@0 {
52 compatible = "regulator-fixed";
53 regulator-name = "vmmcsd_fixed";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
56 };
57
58 lcdscreen0: lcdscreen@0 {
59 /*backlight = <&tps_bl>; */
60 compatible = "ti,tilcdc,panel";
61 status = "okay";
Dario Binacchi72e0a0e2020-02-22 14:05:46 +010062 u-boot,dm-pre-reloc;
Hannes Schmelzer60df8092019-08-01 07:04:46 +020063
64 panel-info {
65 ac-bias = <255>;
66 ac-bias-intrpt = <0>;
67 dma-burst-sz = <16>;
68 bpp = <32>;
69 fdd = <0x80>;
70 sync-edge = <0>;
71 sync-ctrl = <1>;
72 raster-order = <0>;
73 fifo-th = <0>;
74 rotation = <0>;
75 pupdelay = <0>;
76 pondelay = <0>;
77 pwrpin = <0x000000B1>;
78 brightdrv = <0>;
79 brightfdim = <100>;
80 brightdef = <50>;
81 };
82
83 display-timings {
84 default {
85 clock-frequency = <0>;
86 hactive = <0>;
87 vactive = <0>;
88 hfront-porch = <0>;
89 hback-porch = <0>;
90 hsync-len = <0>;
91 vfront-porch = <0>;
92 vback-porch = <0>;
93 vsync-len = <0>;
94 hsync-active = <0>;
95 vsync-active = <0>;
96 pupdelay = <10>;
97 pondelay = <10>;
98 };
99 };
100 };
101
102 board_thermal: board-thermal {
103 polling-delay-passive = <1000>; /* milliseconds */
104 polling-delay = <2500>; /* milliseconds */
105
106 thermal-sensors = <&cputemp>;
107
108 trips {
109 crit_trip: crit-trip {
110 temperature = <95000>; /* millicelsius */
111 hysteresis = <5000>; /* millicelsius */
112 type = "critical";
113 };
114 };
115 cooling-maps {
116 map0 {
117 trip = <&crit_trip>;
118 cooling-device =
119 <&resetc THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
120 };
121 };
122 };
123};
124
125&uart0 { /* console uart */
126 u-boot,dm-spl;
127 status = "okay";
128};
129
130&uart2 { /* X2X - P2P */
131 status = "okay";
132};
133
134&uart3 { /* RS485 */
135 status = "okay";
136};
137
138&uart4 { /* RS232 */
139 status = "okay";
140};
141
142&i2c0 {
143 u-boot,dm-spl;
144 status = "okay";
145 clock-frequency = <100000>;
146
147 tps: tps@24 { /* PMIC controller */
148 u-boot,dm-spl;
149 reg = <0x24>;
150 compatible = "ti,tps65217";
151 };
152
153 cputemp: temperature-sensor@48 { /* cpu temperature */
154 #thermal-sensor-cells = <0>;
155 compatible = "nxp,pct2075";
156 reg = <0x48>;
157 };
158
159 basetemp: temperature-sensor@49 { /* baseboard temperature */
160 #thermal-sensor-cells = <0>;
161 compatible = "nxp,pct2075";
162 reg = <0x49>;
163 };
164 extrtc: rtc@51 { /* realtime clock */
165 compatible = "epson,rx8571";
166 reg = <0x51>;
167 };
168
169 resetc: reset-controller@60 {
170 compatible = "bur,rststm";
171 reg = <0x60>;
172
173 cooling-min-state = <0>;
174 cooling-max-state = <1>; /* reset gets fired */
175 #cooling-cells = <2>; /* min followed by max */
176 };
177};
178
179&i2c1 {
180 u-boot,dm-spl;
181 status = "okay";
182};
183
184&spi0 {
185 u-boot,dm-spl;
186 status = "okay";
187
188 cs-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>,
189 <&gpio0 6 GPIO_ACTIVE_HIGH>,
190 <0>,
191 <0>;
192
193 spi-max-frequency = <24000000>;
194
195 spi_flash: spiflash@0 {
196 u-boot,dm-spl;
197 u-boot,dm-pre-reloc;
198 compatible = "spidev", "spi-flash";
199 spi-max-frequency = <24000000>;
200 reg = <0>;
201 };
202};
203
204&spi1 {
205 u-boot,dm-spl;
206 status = "okay";
207 cs-gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>,
208 <&gpio0 19 GPIO_ACTIVE_HIGH>,
209 <0>,
210 <0>;
211
212 spi-max-frequency = <24000000>;
213};
214
215&edma {
216 status = "okay";
217};
218
219&cppi41dma {
220 status = "okay";
221};
222
223&usb {
224 status = "okay";
225};
226
227&usb_ctrl_mod {
228 status = "okay";
229};
230
231&usb0_phy {
232 status = "okay";
233};
234
235&usb1_phy {
236 status = "okay";
237};
238
239&usb0 {
240 status = "okay";
241 dr_mode = "host";
242};
243
244&usb1 {
245 status = "okay";
246 dr_mode = "host";
247};
248
249&davinci_mdio {
250 status = "okay";
Grygorii Strashko3b3e8a32019-08-31 10:30:34 +0300251
252 ethphy0: ethernet-phy@1 {
253 reg = <1>;
254 };
255
256 ethphy1: ethernet-phy@3 {
257 reg = <3>;
258 };
Hannes Schmelzer60df8092019-08-01 07:04:46 +0200259};
260
261&mac {
262 status = "okay";
263};
264
265&phy_sel {
266 rmii-clock-ext;
267};
268
269&cpsw_emac0 {
Hannes Schmelzer05767702019-12-13 08:12:45 +0100270 phy_id = <&davinci_mdio>, <1>;
Grygorii Strashko3b3e8a32019-08-31 10:30:34 +0300271 phy-handle = <&ethphy0>;
Hannes Schmelzer60df8092019-08-01 07:04:46 +0200272 phy-mode = "rmii";
273 ti,ledcr = <0x0480>;
274};
275
276&cpsw_emac1 {
Hannes Schmelzer05767702019-12-13 08:12:45 +0100277 phy_id = <&davinci_mdio>, <3>;
Grygorii Strashko3b3e8a32019-08-31 10:30:34 +0300278 phy-handle = <&ethphy1>;
Hannes Schmelzer60df8092019-08-01 07:04:46 +0200279 phy-mode = "rmii";
280 ti,ledcr = <0x0480>;
281};
282
283&mmc1 {
284 vmmc-supply = <&vmmcsd_fixed>;
285 bus-width = <0x4>;
286 ti,non-removable;
287 ti,needs-special-hs-handling;
288 ti,vcc-aux-disable-is-sleep;
289 status = "okay";
290};
291
292&mmc2 {
293 vmmc-supply = <&vmmcsd_fixed>;
294 bus-width = <0x8>;
295 ti,non-removable;
296 ti,needs-special-hs-handling;
297 ti,vcc-aux-disable-is-sleep;
298 status = "okay";
299};
300
301&lcdc {
302 status = "okay";
303 ti,no-reset-on-init;
304 ti,no-idle-on-init;
305};
306
307&elm {
308 status = "okay";
309};
310
311&sham {
312 status = "okay";
313};
314
315&aes {
316 status = "okay";
317};
318
319&gpio0 {
320 u-boot,dm-spl;
321 ti,no-reset-on-init;
322};
323
324&gpio1 {
325 u-boot,dm-spl;
326 ti,no-reset-on-init;
327};
328
329&gpio2 {
330 u-boot,dm-spl;
331 ti,no-reset-on-init;
332};
333
334&gpio3 {
335 u-boot,dm-spl;
336 ti,no-reset-on-init;
337};
338
339&timer1 { /* today unused */
340 status = "okay";
341 ti,no-reset-on-init;
342 ti,no-idle-on-init;
343};
344
345&timer2 { /* used for vxworks primary timer device */
346 status = "okay";
347 ti,no-reset-on-init;
348 ti,no-idle-on-init;
349};
350
351&timer3 { /* used sysdelay and hal tsc counter*/
352 status = "okay";
353 ti,no-reset-on-init;
354 ti,no-idle-on-init;
355};
356
357&timer4 { /* used for PWM beeper */
358 status = "okay";
359 ti,no-reset-on-init;
360 ti,no-idle-on-init;
361};
362
363&timer5 { /* used for PWM backlight */
364 status = "okay";
365 ti,no-reset-on-init;
366 ti,no-idle-on-init;
367};
368
369&timer6 { /* used for cpsw end device */
370 status = "okay";
371 ti,no-reset-on-init;
372 ti,no-idle-on-init;
373};
374
375&timer7 { /* used for cpsw end device */
376 status = "okay";
377 ti,no-reset-on-init;
378 ti,no-idle-on-init;
379};
380
381&wdt2 {
382 status = "okay";
383 ti,no-reset-on-init;
384 ti,no-idle-on-init;
385};
386
387&epwmss0 {
388 status = "okay";
389};
390
391&tscadc {
392 status = "okay";
393
394 tsc {
395 burtouch0: burtouch@0 {
396 status = "okay";
397 compatible = "bur,DdVxSfTouchXXX";
398 bur,hwtree = "IF7";
399 bur,KX0 = <0x0>;
400 bur,KX1 = <0x0>;
401 bur,KX2 = <0x0>;
402 bur,KY0 = <0x0>;
403 bur,KY1 = <0x0>;
404 bur,KY2 = <0x0>;
405 };
406 };
407};
408
409&dcan0 {
410 status = "okay";
411};
412
413&dcan1 {
414 status = "okay";
415};
416
417&sham {
418 status = "disabled";
419};
420
421&aes {
422 status = "disabled";
423};
424
425&rng {
426 status = "disabled";
427};