xref: /openbmc/u-boot/arch/arm/dts/am335x-brxre1.dts (revision c507d306)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 B&R Industrial Automation GmbH
4 * http://www.br-automation.com
5 *
6 */
7/dts-v1/;
8
9#include "am33xx.dtsi"
10
11/ {
12	model = "BRXRE1 Panel";
13	compatible = "ti,am33xx";
14
15	fset: factory-settings {
16		bl-version	= "                                ";
17		order-no	= "                                ";
18		cpu-order-no	= "                                ";
19		hw-revision	= "                                ";
20		serial-no	= <0>;
21		device-id	= <0xE681>;
22		parent-id	= <0xE681>;
23		hw-variant	= <0x3>;
24		hw-platform	= <0x0>;
25		fram-offset	= <0x1000>;
26		fram-size	= <0x3000>;
27		cache-disable	= <0x0>;
28		cpu-clock	= <0x0>;
29	};
30	chosen {
31		#address-cells = <1>;
32		#size-cells = <1>;
33
34		bootargs = "console=ttyO0,115200 earlyprintk";
35		stdout-path = &uart0;
36
37		framebuffer: framebuffer@8fbe0000 {
38			display = <&lcdscreen0>;
39			compatible = "simple-framebuffer";
40			status = "okay";
41			reg = <0x8fbef000 (1024 * 600 * 4)>;
42			width = <1024>;
43			height = <600>;
44			stride = <(1024 * 4)>;
45			format = "a8r8g8b8";
46			clocks = <&dpll_disp_m2_ck>, <&dpll_per_m2_ck>;
47		};
48	};
49
50	aliases {
51		fset = &fset;
52		mmc = &mmc2;
53		spi0 = &spi0;
54		spi1 = &spi1;
55		touch0 = &burtouch0;
56		screen0 = &lcdscreen0;
57	};
58
59	memory {
60		device_type = "memory";
61		reg = <0x80000000 0x10000000>; /* 256 MB */
62	};
63
64	panel {
65		compatible = "ti,tilcdc,panel";
66		status = "okay";
67	};
68
69	vmmcsd_fixed: fixedregulator@0 {
70		compatible = "regulator-fixed";
71		regulator-name = "vmmcsd_fixed";
72		regulator-min-microvolt = <3300000>;
73		regulator-max-microvolt = <3300000>;
74	};
75
76	lcdscreen0: lcdscreen@0 {
77		status = "okay";
78		compatible = "ti,tilcdc,panel";
79
80		backlight = <&tps_bl>;
81
82		panel-info {
83			ac-bias		= <255>;
84			ac-bias-intrpt	= <0>;
85			dma-burst-sz	= <16>;
86			bpp		= <32>;
87			fdd		= <0x80>;
88			sync-edge	= <0>;
89			sync-ctrl	= <1>;
90			raster-order	= <0>;
91			fifo-th		= <0>;
92		};
93
94		display-timings {
95			native-mode = <&timing0>;
96			timing0: lcd {
97				clock-frequency	= <9142857>;
98				hactive		= <480>;
99				vactive		= <272>;
100				hfront-porch	= <8>;
101				hback-porch	= <43>;
102				hsync-len	= <2>;
103				vfront-porch	= <4>;
104				vback-porch	= <2>;
105				vsync-len	= <10>;
106				hsync-active	= <1>;
107				vsync-active	= <1>;
108				pupdelay	= <10>;
109				pondelay	= <10>;
110			};
111		};
112	};
113};
114
115&uart0 {		/* console uart */
116	u-boot,dm-spl;
117	status = "okay";
118};
119
120&uart2 {
121	status = "okay";
122};
123
124&uart3 {
125	status = "okay";
126};
127
128&uart4 {
129	status = "okay";
130};
131
132&i2c0 {
133	u-boot,dm-spl;
134	status = "okay";
135	clock-frequency = <100000>;
136
137	tps: tps@24 {		/* PMIC controller */
138		u-boot,dm-spl;
139		reg = <0x24>;
140		compatible = "ti,tps65217";
141
142		tps_bl: backlight {
143			compatible = "ti,tps65217-bl";
144			isel = <1>;	/* 1 - ISET1, 2 ISET2 */
145			fdim = <1000>;	/* TPS65217_BL_FDIM_1kHZ */
146			default-brightness = <50>;
147		};
148	};
149	resetc: rstpsc@75 { /* reset controller */
150		compatible = "bur,rstpsc";
151		reg = <0x75>;
152
153		cooling-min-state = <0>;
154		cooling-max-state = <1>;	/* reset gets fired */
155		#cooling-cells = <2>;		/* min followed by max */
156	};
157	rtc0: rv3029c2@56 {
158		status = "okay";
159		#thermal-sensor-cells = <0>;
160		compatible = "rv3029c2";
161		reg = <0x56>;
162	};
163};
164
165&spi0 {
166	status = "okay";
167};
168
169&spi1 {
170	status = "okay";
171};
172
173&edma {
174	status = "okay";
175};
176
177&cppi41dma  {
178	status = "okay";
179};
180
181&usb {
182	status = "okay";
183};
184
185&usb_ctrl_mod {
186	status = "okay";
187};
188
189&usb0_phy {
190	status = "okay";
191};
192
193&usb1_phy {
194	status = "okay";
195};
196
197&usb0 {
198	status = "okay";
199	dr_mode = "host";
200};
201
202&usb1 {
203	status = "okay";
204	dr_mode = "host";
205};
206
207&davinci_mdio {
208	status = "okay";
209};
210
211&mac {
212	status = "okay";
213};
214
215&cpsw_emac0 {
216	phy_id = <&davinci_mdio>, <1>;
217	phy-mode = "mii";
218};
219
220&cpsw_emac1 {
221	phy_id = <&davinci_mdio>, <2>;
222	phy-mode = "mii";
223};
224
225&mmc1 {
226	u-boot,dm-pre-reloc;
227	vmmc-supply = <&vmmcsd_fixed>;
228	bus-width = <0x4>;
229	ti,non-removable;
230	ti,needs-special-hs-handling;
231	ti,vcc-aux-disable-is-sleep;
232	status = "okay";
233};
234
235&mmc2 {
236	u-boot,dm-pre-reloc;
237	vmmc-supply = <&vmmcsd_fixed>;
238	bus-width = <0x8>;
239	ti,non-removable;
240	ti,needs-special-hs-handling;
241	ti,vcc-aux-disable-is-sleep;
242	status = "okay";
243};
244
245&lcdc {
246	status = "okay";
247	ti,no-reset-on-init;
248	ti,no-idle-on-init;
249};
250
251&elm {
252	status = "okay";
253};
254
255&sham {
256	status = "okay";
257};
258
259&aes {
260	status = "okay";
261};
262
263&gpio0 {
264	u-boot,dm-spl;
265	ti,no-reset-on-init;
266};
267
268&gpio1 {
269	u-boot,dm-spl;
270	ti,no-reset-on-init;
271};
272
273&gpio2 {
274	u-boot,dm-spl;
275	ti,no-reset-on-init;
276};
277
278&gpio3 {
279	u-boot,dm-spl;
280	ti,no-reset-on-init;
281};
282
283&timer1 {		/* today unused */
284	status = "okay";
285	ti,no-reset-on-init;
286	ti,no-idle-on-init;
287};
288
289&timer2 {		/* used for vxworks primary timer device */
290	status = "okay";
291	ti,no-reset-on-init;
292	ti,no-idle-on-init;
293};
294
295&timer3 {		/* used sysdelay and hal tsc counter*/
296	status = "okay";
297	ti,no-reset-on-init;
298	ti,no-idle-on-init;
299};
300
301&timer4 {		/* used for PWM beeper */
302	status = "okay";
303	ti,no-reset-on-init;
304	ti,no-idle-on-init;
305};
306
307&timer5 {		/* used for PWM backlight */
308	status = "okay";
309	ti,no-reset-on-init;
310	ti,no-idle-on-init;
311};
312
313&timer6 {		/* used for cpsw end device */
314	status = "okay";
315	ti,no-reset-on-init;
316	ti,no-idle-on-init;
317};
318
319&timer7 {		/* used for cpsw end device */
320	status = "okay";
321	ti,no-reset-on-init;
322	ti,no-idle-on-init;
323};
324
325&wdt2 {
326	status = "okay";
327	ti,no-reset-on-init;
328	ti,no-idle-on-init;
329};
330
331&epwmss0 {
332	status = "okay";
333};
334
335&tscadc {
336	status = "okay";
337
338	tsc {
339		burtouch0: burtouch@0 {
340			status = "okay";
341			compatible = "bur,DdVxSfTouchXXX";
342			bur,hwtree = "IF7";
343			bur,KX0 = <0x0>;
344			bur,KX1 = <0x0>;
345			bur,KX2 = <0x0>;
346			bur,KY0 = <0x0>;
347			bur,KY1 = <0x0>;
348			bur,KY2 = <0x0>;
349		};
350	};
351};
352
353&dcan0 {
354	status = "okay";
355};
356
357&dcan1 {
358	status = "okay";
359};
360
361&sham {
362	status = "disabled";
363};
364
365&aes {
366	status = "disabled";
367};
368
369&rng {
370	status = "disabled";
371};
372