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