blob: 6f919711f0a0676cfe66cffbd8e4930c74e70958 [file] [log] [blame]
Hannes Schmelzer5639eeb2018-07-06 15:41:28 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018 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 = "BRPPT1 (MMC) Panel";
13 compatible = "ti,am33xx";
14
15 fset: factory-settings {
16 bl-version = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890";
17 version = <0x0100>;
18 order-no = "6PPT30 (MMC)";
19 hw-revision = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456890";
20 serial-no = "0";
21 device-id = <0x0>;
22 parent-id = <0x0>;
23 hw-variant = <0x1>;
24 };
25
26 aliases {
27 ds1bkl0 = &pwmbacklight;
28 ds1bkl1 = &tps_bl;
29 ds1timing = &timing0;
30 ds1ctrl = &lcdc;
31 gpmc = &gpmc;
32 mmc = &mmc2;
33 fset = &fset;
34 };
35
36 chosen {
37 bootargs = "console=ttyO0,115200 earlyprintk";
38 stdout-path = &uart0;
39 };
40
41 memory {
42 device_type = "memory";
43 reg = <0x80000000 0x10000000>; /* 256 MB */
44 };
45
46 panel {
47 status = "disabled";
48
49 compatible = "ti,tilcdc,panel";
50 enable-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
51
52 backlight = <&pwmbacklight>;
53 bkl-pwm = <&pwmbacklight>;
54 bkl-tps = <&tps_bl>;
55
Dario Binacchi9b8c3202020-02-22 14:05:46 +010056 u-boot,dm-pre-reloc;
57
Hannes Schmelzer5639eeb2018-07-06 15:41:28 +020058 panel-info {
59 ac-bias = <255>;
60 ac-bias-intrpt = <0>;
61 dma-burst-sz = <16>;
62 bpp = <32>;
63 fdd = <0x80>;
64 sync-edge = <0>;
65 sync-ctrl = <1>;
66 raster-order = <0>;
67 fifo-th = <0>;
68 };
69
70 display-timings {
71 native-mode = <&timing0>;
72 timing0: lcd {
73 clock-frequency = <32000000>;
74 hactive = <800>;
75 vactive = <480>;
76 hfront-porch = <2>;
77 hback-porch = <192>;
78 hsync-len = <1>;
79 vfront-porch = <20>;
80 vback-porch = <2>;
81 vsync-len = <1>;
82 hsync-active = <1>;
83 vsync-active = <1>;
84 pupdelay = <10>;
85 pondelay = <10>;
86 };
87 };
88 };
89
90 vmmcsd_fixed: fixedregulator@0 {
91 compatible = "regulator-fixed";
92 regulator-name = "vmmcsd_fixed";
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
95 };
96
97 pwm0: omap-pwm@timer5 {
98 compatible = "ti,omap-dmtimer-pwm";
99 ti,timers = <&timer5>;
100 #pwm-cells = <3>;
101 };
102
103 pwm1: omap-pwm@timer6 {
104 compatible = "ti,omap-dmtimer-pwm";
105 ti,timers = <&timer6>;
106 #pwm-cells = <3>;
107 };
108
109 beeper: pwm-beep {
110 compatible = "pwm-beeper";
111 pwms = <&pwm0 0 0 0>;
112 };
113
114 pwmbacklight: pwm-bkl {
115 compatible = "pwm-backlight";
116 pwms = <&pwm1 0 5000000 0>;
117
118 default-brightness-level = <255>;
119 brightness-levels = <0 16 32 64 128 170 202 234 255>;
120
121 power-supply = <&vmmcsd_fixed>;
122 enable-gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
123 };
124};
125
126&uart0 { /* console uart */
127 u-boot,dm-spl;
128 status = "okay";
129};
130
131&uart1 {
132 status = "okay";
133};
134
135&i2c0 {
136 u-boot,dm-spl;
137 status = "okay";
138 clock-frequency = <400000>;
139
140 tps: tps@24 { /* PMIC controller */
141 u-boot,dm-spl;
142 reg = <0x24>;
143 compatible = "ti,tps65217";
144
145 tps_bl: backlight {
146 compatible = "ti,tps65217-bl";
147 isel = <1>; /* 1 - ISET1, 2 ISET2 */
148 fdim = <1000>; /* TPS65217_BL_FDIM_1kHZ */
149 default-brightness = <50>;
150 };
151 };
152};
153
154&i2c2 {
155 status = "okay";
156 clock-frequency = <100000>;
157};
158
159&edma {
160 status = "okay";
161};
162
163&cppi41dma {
164 status = "okay";
165};
166
167&usb {
168 status = "okay";
169};
170
171&usb_ctrl_mod {
172 status = "okay";
173};
174
175&usb0_phy {
176 status = "okay";
177};
178
179&usb1_phy {
180 status = "okay";
181};
182
183&usb0 {
184 status = "okay";
185 dr_mode = "host";
186};
187
188&usb1 {
189 status = "okay";
190 dr_mode = "host";
191};
192
193&davinci_mdio {
194 status = "okay";
195
196 phy0: ethernet-phy@0 {
197 reg = <1>;
198 };
199
200 phy1: ethernet-phy@1 {
201 reg = <2>;
202 };
203};
204
205&mac {
206 status = "okay";
207};
208
209&cpsw_emac0 {
210 phy-handle = <&phy0>;
211 dual_emac_res_vlan = <1>;
212 phy-mode = "mii";
213};
214
215&cpsw_emac1 {
216 phy-handle = <&phy1>;
217 dual_emac_res_vlan = <2>;
218 phy-mode = "mii";
219};
220
221&mmc1 {
222 u-boot,dm-spl;
223 vmmc-supply = <&vmmcsd_fixed>;
224 bus-width = <0x4>;
225 ti,non-removable;
226 ti,needs-special-hs-handling;
227 ti,vcc-aux-disable-is-sleep;
228 status = "okay";
229};
230
231&mmc2 {
232 u-boot,dm-spl;
233 vmmc-supply = <&vmmcsd_fixed>;
234 bus-width = <0x8>;
235 ti,non-removable;
236 ti,needs-special-hs-handling;
237 ti,vcc-aux-disable-is-sleep;
238 status = "okay";
239};
240
241&lcdc {
242 status = "disabled";
243};
244
245&elm {
246 status = "okay";
247};
248
249&sham {
250 status = "okay";
251};
252
253&aes {
254 status = "okay";
255};
256
257&gpio0 {
258 u-boot,dm-spl;
259 ti,no-reset-on-init;
260};
261
262&gpio1 {
263 u-boot,dm-spl;
264 ti,no-reset-on-init;
265};
266
267&gpio2 {
268 u-boot,dm-spl;
269 ti,no-reset-on-init;
270};
271
272&gpio3 {
273 u-boot,dm-spl;
274 ti,no-reset-on-init;
275};
276
277&wdt2 {
278 ti,no-reset-on-init;
279 ti,no-idle-on-init;
280};
281
282&tscadc {
283 status = "okay";
284 tsc {
285 ti,wires = <4>;
286 ti,x-plate-resistance = <200>;
287 ti,zx-cutoff-ratio = <40>;
288 ti,min_deviation = <60>;
289 ti,max_deviation = <600>;
290 ti,coordinate-readouts = <5>;
291 ti,wire-config = <0x00 0x11 0x22 0x33>;
292
293 bnr-buttons {
294 Home-Button {};
295 };
296 };
297
298 adc {
299 ti,adc-channels = <5 6 7>;
300 };
301};
302
303&timer6 { /* used for cpsw end device */
304 status = "okay";
305 ti,no-reset-on-init;
306 ti,no-idle-on-init;
307};
308
309&timer7 { /* used for cpsw end device */
310 status = "okay";
311 ti,no-reset-on-init;
312 ti,no-idle-on-init;
313};
314
315&wdt2 {
316 status = "okay";
317 ti,no-reset-on-init;
318 ti,no-idle-on-init;
319};
320
321&epwmss0 {
322 status = "okay";
323};
324
325&tscadc {
326 status = "okay";
327};
328
329&dcan0 {
330 status = "okay";
331};
332
333&dcan1 {
334 status = "okay";
335};
336
337&sham {
338 status = "disabled";
339};
340
341&aes {
342 status = "disabled";
343};
344
345&rng {
346 status = "disabled";
347};