Project

General

Profile

RE: Getting the Splash Screen to Appear Earlier » reichert-uboot-splash-20260709.patch

Holden Wozniak, 07/09/2026 12:51 PM

View differences:

arch/arm/dts/k3-am62a-mitysom-reichert-clearchart-binman.dtsi
1
// SPDX-License-Identifier: GPL-2.0
2
/*
3
 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
4
 */
5

  
6
#include "k3-binman.dtsi"
7

  
8
#ifdef CONFIG_TARGET_MITYSOM_AM62AX_R5_DEVKIT
9

  
10
&rcfg_yaml_tifs {
11
	config = "tifs-rm-cfg.yaml";
12
};
13

  
14
&binman {
15
	tiboot3-am62ax-hs-evm.bin {
16
		filename = "tiboot3-am62ax-hs-evm.bin";
17
		ti-secure-rom {
18
			content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
19
				<&combined_dm_cfg>, <&sysfw_inner_cert>;
20
			combined;
21
			dm-data;
22
			sysfw-inner-cert;
23
			keyfile = "custMpk.pem";
24
			sw-rev = <1>;
25
			content-sbl = <&u_boot_spl>;
26
			content-sysfw = <&ti_fs_enc>;
27
			content-sysfw-data = <&combined_tifs_cfg>;
28
			content-sysfw-inner-cert = <&sysfw_inner_cert>;
29
			content-dm-data = <&combined_dm_cfg>;
30
			load = <0x43c00000>;
31
			load-sysfw = <0x40000>;
32
			load-sysfw-data = <0x67000>;
33
			load-dm-data = <0x43c3a800>;
34
		};
35
		u_boot_spl: u-boot-spl {
36
			no-expanded;
37
		};
38
		ti_fs_enc: ti-fs-enc.bin {
39
			filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-enc.bin";
40
			type = "blob-ext";
41
			optional;
42
		};
43
		combined_tifs_cfg: combined-tifs-cfg.bin {
44
			filename = "combined-tifs-cfg.bin";
45
			type = "blob-ext";
46
		};
47
		sysfw_inner_cert: sysfw-inner-cert {
48
			filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-cert.bin";
49
			type = "blob-ext";
50
			optional;
51
		};
52
		combined_dm_cfg: combined-dm-cfg.bin {
53
			filename = "combined-dm-cfg.bin";
54
			type = "blob-ext";
55
		};
56
	};
57
};
58

  
59
&binman {
60
	tiboot3-am62ax-hs-fs-evm.bin {
61
		filename = "tiboot3-am62ax-hs-fs-evm.bin";
62
		symlink = "tiboot3.bin";
63
		ti-secure-rom {
64
			content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
65
				<&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
66
			combined;
67
			dm-data;
68
			sysfw-inner-cert;
69
			keyfile = "custMpk.pem";
70
			sw-rev = <1>;
71
			content-sbl = <&u_boot_spl_fs>;
72
			content-sysfw = <&ti_fs_enc_fs>;
73
			content-sysfw-data = <&combined_tifs_cfg_fs>;
74
			content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
75
			content-dm-data = <&combined_dm_cfg_fs>;
76
			load = <0x43c00000>;
77
			load-sysfw = <0x40000>;
78
			load-sysfw-data = <0x67000>;
79
			load-dm-data = <0x43c3a800>;
80
		};
81
		u_boot_spl_fs: u-boot-spl {
82
			no-expanded;
83
		};
84
		ti_fs_enc_fs: ti-fs-enc.bin {
85
			filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-enc.bin";
86
			type = "blob-ext";
87
			optional;
88
		};
89
		combined_tifs_cfg_fs: combined-tifs-cfg.bin {
90
			filename = "combined-tifs-cfg.bin";
91
			type = "blob-ext";
92
		};
93
		sysfw_inner_cert_fs: sysfw-inner-cert {
94
			filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-cert.bin";
95
			type = "blob-ext";
96
			optional;
97
		};
98
		combined_dm_cfg_fs: combined-dm-cfg.bin {
99
			filename = "combined-dm-cfg.bin";
100
			type = "blob-ext";
101
		};
102
	};
103
};
104

  
105
&binman {
106
	tiboot3-am62ax-gp-evm.bin {
107
		filename = "tiboot3-am62ax-gp-evm.bin";
108
		ti-secure-rom {
109
			content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
110
				<&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
111
			combined;
112
			dm-data;
113
			content-sbl = <&u_boot_spl_unsigned>;
114
			load = <0x43c00000>;
115
			content-sysfw = <&ti_fs_gp>;
116
			load-sysfw = <0x40000>;
117
			content-sysfw-data = <&combined_tifs_cfg_gp>;
118
			load-sysfw-data = <0x67000>;
119
			content-dm-data = <&combined_dm_cfg_gp>;
120
			load-dm-data = <0x43c3a800>;
121
			sw-rev = <1>;
122
			keyfile = "ti-degenerate-key.pem";
123
		};
124
		u_boot_spl_unsigned: u-boot-spl {
125
			no-expanded;
126
		};
127
		ti_fs_gp: ti-fs-gp.bin {
128
			filename = "ti-sysfw/ti-fs-firmware-am62ax-gp.bin";
129
			type = "blob-ext";
130
			optional;
131
		};
132
		combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
133
			filename = "combined-tifs-cfg.bin";
134
			type = "blob-ext";
135
		};
136
		combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
137
			filename = "combined-dm-cfg.bin";
138
			type = "blob-ext";
139
		};
140
	};
141
};
142

  
143
#endif
144

  
145
#ifdef CONFIG_TARGET_MITYSOM_AM62AX_A53_DEVKIT
146

  
147
#define SPL_AM62A7_MITYSOM_DEVKIT_DTB "spl/dts/k3-am62a7-mitysom-devkit.dtb"
148
#define AM62A7_MITYSOM_DEVKIT_DTB "u-boot.dtb"
149

  
150
&binman {
151
	tifsstub-hs {
152
		filename = "tifsstub.bin_hs";
153
		ti-secure-rom {
154
			content = <&tifsstub_hs_cert>;
155
			core = "secure";
156
			load = <0x60000>;
157
			sw-rev = <CONFIG_K3_X509_SWRV>;
158
			keyfile = "custMpk.pem";
159
			countersign;
160
			tifsstub;
161
		};
162
		tifsstub_hs_cert: tifsstub-hs-cert.bin {
163
			filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
164
			type = "blob-ext";
165
			optional;
166
		};
167
		tifsstub_hs_enc: tifsstub-hs-enc.bin {
168
			filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
169
			type = "blob-ext";
170
			optional;
171
		};
172
	};
173

  
174
	tifsstub-fs {
175
		filename = "tifsstub.bin_fs";
176
		tifsstub_fs_cert: tifsstub-fs-cert.bin {
177
			filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
178
			type = "blob-ext";
179
			optional;
180
		};
181
		tifsstub_fs_enc: tifsstub-fs-enc.bin {
182
			filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
183
			type = "blob-ext";
184
			optional;
185
		};
186

  
187
	};
188

  
189
	tifsstub-gp {
190
		filename = "tifsstub.bin_gp";
191
		ti-secure-rom {
192
			content = <&tifsstub_gp>;
193
			core = "secure";
194
			load = <0x60000>;
195
			sw-rev = <CONFIG_K3_X509_SWRV>;
196
			keyfile = "ti-degenerate-key.pem";
197
			tifsstub;
198
		};
199
		tifsstub_gp: tifsstub-gp.bin {
200
			filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin";
201
			type = "blob-ext";
202
			optional;
203
		};
204
	};
205

  
206
	ti-falcon {
207
		insert-template = <&ti_falcon_template>;
208

  
209
		fit {
210
			images {
211
				tifsstub-hs {
212
					description = "TIFSSTUB";
213
					type = "firmware";
214
					arch = "arm32";
215
					compression = "none";
216
					os = "tifsstub-hs";
217
					load = <0x9ca00000>;
218
					entry = <0x9ca00000>;
219
					blob-ext {
220
						filename = "tifsstub.bin_hs";
221
					};
222
				};
223
				tifsstub-fs {
224
					description = "TIFSSTUB";
225
					type = "firmware";
226
					arch = "arm32";
227
					compression = "none";
228
					os = "tifsstub-fs";
229
					load = <0x9ca00000>;
230
					entry = <0x9ca00000>;
231
					blob-ext {
232
						filename = "tifsstub.bin_fs";
233
					};
234
				};
235
				tifsstub-gp {
236
					description = "TIFSSTUB";
237
					type = "firmware";
238
					arch = "arm32";
239
					compression = "none";
240
					os = "tifsstub-gp";
241
					load = <0x9ca00000>;
242
					entry = <0x9ca00000>;
243
					blob-ext {
244
						filename = "tifsstub.bin_gp";
245
					};
246
				};
247
				dm {
248
					ti-secure {
249
						content = <&dm_falcon>;
250
						keyfile = "custMpk.pem";
251
					};
252
					dm_falcon: ti-dm {
253
						filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
254
					};
255
				};
256
			};
257

  
258
			configurations {
259
				default = "conf-0";
260
				conf-0 {
261
					description = "k3-am62a7-sk-falcon";
262
					firmware = "atf";
263
					loadables = "tee", "dm", "tifsstub-hs", "tifsstub-fs",
264
					"tifsstub-gp";
265
				};
266
			};
267
		};
268
	};
269

  
270
	ti-spl {
271
		insert-template = <&ti_spl_template>;
272

  
273
		fit {
274
			images {
275
				tifsstub-hs {
276
					description = "TIFSSTUB";
277
					type = "firmware";
278
					arch = "arm32";
279
					compression = "none";
280
					os = "tifsstub-hs";
281
					load = <0x9ca00000>;
282
					entry = <0x9ca00000>;
283
					blob-ext {
284
						filename = "tifsstub.bin_hs";
285
					};
286
				};
287

  
288
				tifsstub-fs {
289
					description = "TIFSSTUB";
290
					type = "firmware";
291
					arch = "arm32";
292
					compression = "none";
293
					os = "tifsstub-fs";
294
					load = <0x9ca00000>;
295
					entry = <0x9ca00000>;
296
					blob-ext {
297
						filename = "tifsstub.bin_fs";
298
					};
299
				};
300

  
301
				tifsstub-gp {
302
					description = "TIFSSTUB";
303
					type = "firmware";
304
					arch = "arm32";
305
					compression = "none";
306
					os = "tifsstub-gp";
307
					load = <0x9ca00000>;
308
					entry = <0x9ca00000>;
309
					blob-ext {
310
						filename = "tifsstub.bin_gp";
311
					};
312
				};
313
				dm {
314
					ti-secure {
315
						content = <&dm>;
316
						keyfile = "custMpk.pem";
317
					};
318
					dm: ti-dm {
319
						filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
320
						optional;
321
					};
322
				};
323

  
324
				fdt-0 {
325
					description = "k3-am62a7-sk";
326
					type = "flat_dt";
327
					arch = "arm";
328
					compression = "none";
329
					ti-secure {
330
						content = <&spl_am62a7_sk_dtb>;
331
						keyfile = "custMpk.pem";
332
					};
333
					spl_am62a7_sk_dtb: blob-ext {
334
						filename = SPL_AM62A7_MITYSOM_DEVKIT_DTB;
335
					};
336

  
337
				};
338

  
339
			};
340

  
341
			configurations {
342
				default = "conf-0";
343

  
344
				conf-0 {
345
					description = "k3-am62a7-sk";
346
					firmware = "atf";
347
					loadables = "tee", "dm", "spl",
348
					"tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
349
					fdt = "fdt-0";
350
				};
351
			};
352
		};
353
	};
354
};
355

  
356
&binman {
357
	u-boot {
358
		insert-template = <&u_boot_template>;
359

  
360
		fit {
361
			images {
362
				uboot {
363
					description = "U-Boot for AM62Ax Board";
364
				};
365

  
366
				fdt-0 {
367
					description = "k3-am62a7-sk";
368
					type = "flat_dt";
369
					arch = "arm";
370
					compression = "none";
371
					ti-secure {
372
						content = <&am62a7_sk_dtb>;
373
						keyfile = "custMpk.pem";
374
					};
375
					am62a7_sk_dtb: blob-ext {
376
						filename = AM62A7_MITYSOM_DEVKIT_DTB;
377
					};
378
					hash {
379
						algo = "crc32";
380
					};
381
				};
382
			};
383

  
384
			configurations {
385
				default = "conf-0";
386

  
387
				conf-0 {
388
					description = "k3-am62a7-sk";
389
					firmware = "uboot";
390
					loadables = "uboot";
391
					fdt = "fdt-0";
392
				};
393

  
394
			};
395
		};
396
	};
397
};
398

  
399
&binman {
400
	ti-spl_unsigned {
401
		insert-template = <&ti_spl_unsigned_template>;
402

  
403
		fit {
404
			images {
405
				tifsstub-hs {
406
					description = "TIFSSTUB";
407
					type = "firmware";
408
					arch = "arm32";
409
					compression = "none";
410
					os = "tifsstub-hs";
411
					load = <0x9ca00000>;
412
					entry = <0x9ca00000>;
413
					blob-ext {
414
						filename = "tifsstub.bin_hs";
415
					};
416
				};
417

  
418
				tifsstub-fs {
419
					description = "TIFSSTUB";
420
					type = "firmware";
421
					arch = "arm32";
422
					compression = "none";
423
					os = "tifsstub-fs";
424
					load = <0x9ca00000>;
425
					entry = <0x9ca00000>;
426
					blob-ext {
427
						filename = "tifsstub.bin_fs";
428
					};
429
				};
430

  
431
				tifsstub-gp {
432
					description = "TIFSSTUB";
433
					type = "firmware";
434
					arch = "arm32";
435
					compression = "none";
436
					os = "tifsstub-gp";
437
					load = <0x9ca00000>;
438
					entry = <0x9ca00000>;
439
					blob-ext {
440
						filename = "tifsstub.bin_gp";
441
					};
442
				};
443
				dm {
444
					ti-dm {
445
						filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
446
						optional;
447
					};
448
				};
449

  
450
				fdt-0 {
451
					description = "k3-am62a7-sk";
452
					type = "flat_dt";
453
					arch = "arm";
454
					compression = "none";
455
					blob {
456
						filename = SPL_AM62A7_MITYSOM_DEVKIT_DTB;
457
					};
458
				};
459
			};
460

  
461
			configurations {
462
				default = "conf-0";
463

  
464
				conf-0 {
465
					description = "k3-am62a7-sk";
466
					firmware = "atf";
467
					loadables = "tee", "dm", "spl",
468
					"tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
469
					fdt = "fdt-0";
470
				};
471
			};
472
		};
473
	};
474
};
475

  
476
&binman {
477
	u-boot_unsigned {
478
		insert-template = <&u_boot_unsigned_template>;
479

  
480
		fit {
481
			images {
482
				uboot {
483
					description = "U-Boot for AM62Ax Board";
484
				};
485

  
486
				fdt-0 {
487
					description = "k3-am62a7-sk";
488
					type = "flat_dt";
489
					arch = "arm";
490
					compression = "none";
491
					blob {
492
						filename = AM62A7_MITYSOM_DEVKIT_DTB;
493
					};
494
					hash {
495
						algo = "crc32";
496
					};
497
				};
498
			};
499

  
500
			configurations {
501
				default = "conf-0";
502

  
503
				conf-0 {
504
					description = "k3-am62a7-sk";
505
					firmware = "uboot";
506
					loadables = "uboot";
507
					fdt = "fdt-0";
508
				};
509
			};
510
		};
511
	};
512
};
513
#endif
arch/arm/dts/k3-am62a7-mitysom-reichert-clearchart-u-boot.dtsi
1
// SPDX-License-Identifier: GPL-2.0
2
/*
3
 * Common AM62A devkit dts file for SPLs
4
 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
5
 */
6

  
7
#include "k3-am62a-mitysom-devkit-binman.dtsi"
8

  
9
/ {
10
	chosen {
11
		stdout-path = "serial2:115200n8";
12
		tick-timer = &main_timer0;
13
	};
14

  
15
	memory@80000000 {
16
		bootph-all;
17
	};
18

  
19
	reserved-memory {
20
		bootph-pre-ram;
21
	};
22
};
23

  
24
&wkup_r5fss0_core0_memory_region {
25
	bootph-pre-ram;
26
};
27

  
28
&main_timer0 {
29
	bootph-all;
30
};
31

  
32
&cbass_main {
33
	bootph-all;
34
};
35

  
36
&dmss {
37
	bootph-all;
38
};
39

  
40
&secure_proxy_main {
41
	bootph-all;
42
};
43

  
44
&dmsc {
45
	bootph-all;
46
};
47

  
48
&k3_pds {
49
	bootph-all;
50
};
51

  
52
&k3_clks {
53
	bootph-all;
54
};
55

  
56
&k3_reset {
57
	bootph-all;
58
};
59

  
60
&wkup_conf {
61
	bootph-all;
62
};
63

  
64
&chipid {
65
	bootph-all;
66
};
67

  
68
&ddr_pmctrl {
69
	bootph-pre-ram;
70
};
71

  
72
&canuart_wake {
73
	bootph-pre-ram;
74
};
75

  
76
&main_pmx0 {
77
	bootph-all;
78
};
79

  
80
&main_uart0 {
81
	bootph-all;
82
};
83

  
84
&main_uart0_pins_default {
85
	bootph-all;
86
};
87

  
88
&cbass_mcu {
89
	bootph-all;
90
};
91

  
92
&wkup_r5fss0 {
93
	bootph-pre-ram;
94
};
95

  
96
&wkup_r5fss0_core0 {
97
	bootph-pre-ram;
98
};
99

  
100
&cbass_wakeup {
101
	bootph-all;
102

  
103
	target-module@2b300050 {
104
		bootph-all;
105
	};
106
};
107

  
108
&mcu_pmx0 {
109
	bootph-all;
110
};
111

  
112
&main_gpio0 {
113
	bootph-all;
114
};
115

  
116
&main_i2c0 {
117
	bootph-all;
118
};
119

  
120
&main_i2c0_pins_default {
121
	bootph-all;
122
};
123

  
124
&main_i2c1 {
125
	bootph-all;
126
};
127

  
128
&main_i2c1_pins_default {
129
	bootph-all;
130
};
131

  
132
&exp1 {
133
	bootph-all;
134
};
135

  
136
&sdhci1 {
137
	bootph-all;
138
};
139

  
140
&main_mmc1_pins_default {
141
	bootph-all;
142
};
143

  
144
&vdd_sd_dv_pins_default {
145
	bootph-all;
146
};
147

  
148
&vdd_mmc1 {
149
	bootph-all;
150
};
151

  
152
&som_vdd_sd_dv {
153
	bootph-all;
154
};
155

  
156
&k3_reset {
157
	bootph-all;
158
};
159

  
160
&dmsc {
161
	bootph-all;
162
};
163

  
164
&vdd_mmc1 {
165
	bootph-all;
166
};
167

  
168
&main_bcdma {
169
	reg = <0x00 0x485c0100 0x00 0x100>,
170
	      <0x00 0x4c000000 0x00 0x20000>,
171
	      <0x00 0x4a820000 0x00 0x20000>,
172
	      <0x00 0x4aa40000 0x00 0x20000>,
173
	      <0x00 0x4bc00000 0x00 0x100000>,
174
	      <0x00 0x48600000 0x00 0x8000>,
175
	      <0x00 0x484a4000 0x00 0x2000>,
176
	      <0x00 0x484c2000 0x00 0x2000>;
177
	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt",
178
		    "ringrt" , "cfg", "tchan", "rchan";
179
	bootph-all;
180
};
181

  
182
&main_pktdma {
183
	reg = <0x00 0x485c0000 0x00 0x100>,
184
	      <0x00 0x4a800000 0x00 0x20000>,
185
	      <0x00 0x4aa00000 0x00 0x20000>,
186
	      <0x00 0x4b800000 0x00 0x200000>,
187
	      <0x00 0x485e0000 0x00 0x10000>,
188
	      <0x00 0x484a0000 0x00 0x2000>,
189
	      <0x00 0x484c0000 0x00 0x2000>,
190
	      <0x00 0x48430000 0x00 0x1000>;
191
	reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt",
192
		    "cfg", "tchan", "rchan", "rflow";
193
	bootph-all;
194
};
195

  
196
&main_mdio1_pins_default {
197
	bootph-all;
198
};
199

  
200
&cpsw3g_mdio {
201
	bootph-all;
202
};
203

  
204
&cpsw3g_phy0 {
205
	bootph-all;
206
};
207

  
208
&main_rgmii1_pins_default {
209
	bootph-all;
210
};
211

  
212
&phy_gmii_sel {
213
	bootph-all;
214
};
215

  
216
&cpsw3g {
217
	bootph-all;
218
	ethernet-ports {
219
		bootph-all;
220
	};
221
};
222

  
223
&cpsw_port1 {
224
	bootph-all;
225

  
226
	reset-gpios = <&exp1 5 GPIO_ACTIVE_LOW>;
227
};
228

  
229
&cpsw_port2 {
230
	bootph-all;
231

  
232
	reset-gpios = <&exp1 4 GPIO_ACTIVE_LOW>;
233
};
234

  
235
&cpsw3g_mdio {
236
	bootph-all;
237

  
238
	cpsw3g_ph0 {
239
		bootph-all;
240
	};
241

  
242
	cpsw3g_ph1 {
243
		bootph-all;
244
	};
245
};
246

  
247
/* Required for USB DFU Boot */
248
&usbss0 {
249
	bootph-all;
250
};
251

  
252
/* Required for USB DFU Boot */
253
&usb0 {
254
	dr_mode = "peripheral";
255
	bootph-all;
256
	/* Since role switching is not supported in U-Boot */
257
	/delete-property/ extcon;
258
};
259

  
260
/* Required for USB DFU Boot */
261
&usb0_phy_ctrl {
262
	bootph-all;
263
};
264

  
265
&usb1_phy_ctrl {
266
	bootph-all;
267
};
268

  
269
&ospi0 {
270
	bootph-all;
271

  
272
	spi_nor_flash: flash@0 {
273
		bootph-all;
274

  
275
		partitions {
276
			bootph-all;
277
		};
278
	};
279
};
arch/arm/dts/k3-am62a7-mitysom-reichert-clearchart.dts
1
// SPDX-License-Identifier: GPL-2.0
2
/*
3
 * MitySom-AM62Ax Devkit
4
 */
5

  
6
/dts-v1/;
7

  
8
#include <dt-bindings/net/ti-dp83867.h>
9
#include <dt-bindings/pwm/pwm.h>
10
#include "k3-am62a7-mitysom-som.dtsi"
11

  
12
/ {
13
	vcc_12v: vcc_12v {
14
		compatible = "regulator-fixed";
15
		regulator-name = "vcc_12v";
16
		regulator-min-microvolt = <12000000>;
17
		regulator-max-microvolt = <12000000>;
18
		regulator-always-on;
19
		regulator-boot-on;
20
	};
21

  
22
	vcc_5v0: vcc_5v0 {
23
		/* MIC24052 */
24
		compatible = "regulator-fixed";
25
		regulator-name = "vcc_5v0";
26
		regulator-min-microvolt = <5000000>;
27
		regulator-max-microvolt = <5000000>;
28
		vin-supply = <&vcc_12v>;
29
		regulator-always-on;
30
		regulator-boot-on;
31
	};
32

  
33
	vcc_3v3: vcc_3v3 {
34
		/* MIC24052 */
35
		compatible = "regulator-fixed";
36
		regulator-name = "vcc_3v3";
37
		regulator-min-microvolt = <3300000>;
38
		regulator-max-microvolt = <3300000>;
39
		vin-supply = <&vcc_12v>;
40
		regulator-always-on;
41
		regulator-boot-on;
42
	};
43

  
44
	vin_3v3_som: vin_3v3_som {
45
		/* 3.3V SOM VIN */
46
		compatible = "regulator-fixed";
47
		regulator-name = "vin_3v3_som";
48
		regulator-min-microvolt = <3300000>;
49
		regulator-max-microvolt = <3300000>;
50
		vin-supply = <&vcc_3v3>;
51
		regulator-always-on;
52
		regulator-boot-on;
53
	};
54

  
55
	vcc_3v3_vio: vcc_3v3_vio {
56
		compatible = "regulator-fixed";
57
		regulator-name = "vcc_3v3_vio";
58
		regulator-min-microvolt = <3300000>;
59
		regulator-max-microvolt = <3300000>;
60
		vin-supply = <&som_vdd_3v3>;
61
		regulator-always-on;
62
		regulator-boot-on;
63
	};
64

  
65
	vcc_5v0_can0: vcc_5v0_can0 {
66
		/* VIBLSD1 */
67
		compatible = "regulator-fixed";
68
		regulator-name = "vcc_5v0_can0";
69
		regulator-min-microvolt = <5000000>;
70
		regulator-max-microvolt = <5000000>;
71
		vin-supply = <&vcc_12v>;
72
		regulator-always-on;
73
		regulator-boot-on;
74
	};
75

  
76
	vcc_5v0_can1: vcc_5v0_can1 {
77
		/* VIBLSD1 */
78
		compatible = "regulator-fixed";
79
		regulator-name = "vcc_5v0_can1";
80
		regulator-min-microvolt = <5000000>;
81
		regulator-max-microvolt = <5000000>;
82
		vin-supply = <&vcc_12v>;
83
		regulator-always-on;
84
		regulator-boot-on;
85
	};
86

  
87
	vcc_1v1_usbhub: vcc_1v1_usbhub {
88
		compatible = "regulator-fixed";
89
		regulator-name = "vcc_1v1_usbhub";
90
		regulator-min-microvolt = <1100000>;
91
		regulator-max-microvolt = <1100000>;
92
		vin-supply = <&vcc_5v0>;
93
		regulator-always-on;
94
		regulator-boot-on;
95
	};
96

  
97
	vcc_1v2_eth: vcc_1v2_eth {
98
		/* RT5796 */
99
		compatible = "regulator-fixed";
100
		regulator-name = "vcc_1v2_eth";
101
		regulator-min-microvolt = <1200000>;
102
		regulator-max-microvolt = <1200000>;
103
		vin-supply = <&vcc_5v0>;
104
		regulator-always-on;
105
		regulator-boot-on;
106
	};
107

  
108

  
109
	vdd_mmc1: vdd_mmc1 {
110
		/* TPS2051 */
111
		compatible = "regulator-fixed";
112
		regulator-name = "vdd_mmc1";
113
		regulator-min-microvolt = <3300000>;
114
		regulator-max-microvolt = <3300000>;
115
		regulator-always-on;
116
		regulator-boot-on;
117
		enable-active-high;
118
		/*vin-supply = <&vcc_3v3_vio>;*/
119
	};
120

  
121
	som_vdd_sd_dv: som_vdd_sd_dv {
122
		/* Output of TPS65219. Switches voltage for SD card */
123
		compatible = "regulator-gpio";
124
		regulator-name = "vsel_sd";
125
		pinctrl-names = "default";
126
		pinctrl-0 = <&vdd_sd_dv_pins_default>;
127
		regulator-min-microvolt = <1800000>;
128
		regulator-max-microvolt = <3300000>;
129
		regulator-boot-on;
130
		vin-supply = <&ldo1>;
131
		gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
132
		states = <1800000 0x0>,
133
			 <3300000 0x1>;
134
	};
135

  
136
	wlan_en: wlan_en {
137
		/* OUTPUT of SN74AVC2T244DQMR */
138
		compatible = "regulator-fixed";
139
		regulator-name = "wlan_en";
140
		regulator-min-microvolt = <1800000>;
141
		regulator-max-microvolt = <1800000>;
142
		enable-active-high;
143
		vin-supply = <&som_vdd_1v8>;
144
		gpios = <&main_gpio0 71 GPIO_ACTIVE_HIGH>;
145
		pinctrl-names = "default";
146
		pinctrl-0 = <&wlan_en_pins_default>;
147
	};
148

  
149
	tlv320_mclk: clk-0 {
150
		#clock-cells = <0>;
151
		compatible = "fixed-clock";
152
		clock-frequency = <24576000>;
153
	};
154

  
155
	codec_audio: sound {
156
		compatible = "simple-audio-card";
157
		simple-audio-card,name = "AM62x";
158
		simple-audio-card,widgets =
159
			"Headphone",	"Headphone Jack",
160
			"Microphone",	"Microphone Jack";
161
		simple-audio-card,routing =
162
			"Headphone Jack",	"HPL",
163
			"Headphone Jack",	"HPR",
164
			"MICIN",		"Microphone Jack";
165
		simple-audio-card,format = "i2s";
166
		simple-audio-card,bitclock-master = <&sound_master>;
167
		simple-audio-card,frame-master = <&sound_master>;
168
		/* simple-audio-card,bitclock-inversion; */
169

  
170
		simple-audio-card,cpu {
171
			sound-dai = <&mcasp0>;
172
		};
173

  
174
		sound_master: simple-audio-card,codec {
175
			sound-dai = <&tlv320aic26>;
176
			clocks = <&tlv320_mclk>;
177
		};
178
	};
179

  
180
	/* D1 DBG_LED on devkit located above the USB hub ports */
181
	leds {
182
		compatible = "pwm-leds";
183

  
184
		led-0 {
185
			label = "devkit-d1";
186
			pwms = <&main_pwm7 0 7812500 0>;
187
			max-brightness = <255>;
188
			color = <LED_COLOR_ID_GREEN>;
189
			linux,default-trigger = "heartbeat";
190
			function = LED_FUNCTION_HEARTBEAT;
191
			default-state = "off";
192
			active-low;
193
		};
194
	};
195
	
196
	backlight_pwm: pwm-backlight {
197
		status = "okay";
198
    	compatible = "pwm-backlight";
199
    	pwms = <&epwm0 0 500000 0>; 
200
    	brightness-levels = <0 32 64 96 128 160 192 224 255>;
201
		default-brightness-level = <8>;
202
		power-supply = <&vcc_12v>;
203
		enable-gpios = <&main_gpio0 87 GPIO_ACTIVE_HIGH>;
204
	};
205
	
206
	display_panel: panel {
207
			status = "okay";
208
        	compatible = "simple-panel";
209
        	power-supply = <&vcc_5v0>;
210
			backlight = <&backlight_pwm>;
211
	
212
        	width-mm = <527>;
213
        	height-mm = <296>;
214

  
215
        	
216
			display-timings {
217
    			native-mode = <&timing0>;
218

  
219
    			timing0: timing0 {
220
        			clock-frequency = <120000000>;
221

  
222
        			hactive = <1920>;
223
        			vactive = <1080>;
224

  
225
        			hfront-porch = <60>;
226
        			hback-porch = <232>;
227
        			hsync-len = <8>;
228

  
229
        			vfront-porch = <10>;
230
        			vback-porch = <31>;
231
        			vsync-len = <4>;
232

  
233
        			hsync-active = <0>;
234
        			vsync-active = <0>;
235
        			de-active = <1>;
236
        			pixelclk-active = <0>;
237
    			};
238
			};
239

  
240
        	
241
			port {
242
            	panel_in: endpoint {
243
            		remote-endpoint = <&display_out>;
244
				};
245
			};
246
			
247
        	
248
    };
249
    	
250
    framebuffer0: framebuffer@0 {
251
      		compatible = "simple-framebuffer";
252
      		power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>;
253
      		clocks = <&k3_clks 186 6>,
254
      			<&k3_clks 186 0>,
255
      			<&k3_clks 186 2>;
256
      		display = <&dss>;
257
      		reg = <0x00 0xff700000 0x00 0x008ca000>;
258
      		width = <1920>;
259
      		height = <1200>;
260
      		stride = <(1920 * 4)>;
261
      		format = "x8r8g8b8";
262
	};
263

  
264

  
265
	main_pwm7: dmtimer-main-pwm-7 {
266
		pinctrl-0 = <&usr_led_pins_default>;
267
		pinctrl-names = "default";
268
		compatible = "ti,omap-dmtimer-pwm";
269
		#pwm-cells = <3>;
270
		ti,timers = <&main_timer7>;
271
	};
272

  
273
	usb_micro_con: usb_microb_connector {
274
		#address-cells = <1>;
275
		#size-cells = <0>;
276
		compatible = "gpio-usb-b-connector", "usb-b-connector";
277
		type = "micro";
278
		label = "USB Micro Connector";
279

  
280
		id-gpios = <&main_gpio0 37 GPIO_ACTIVE_HIGH>;
281
		port@0 {
282
			reg = <0>;
283
			usb_micro_con_in: endpoint {
284
				remote-endpoint = <&microb>;
285
			};
286
		};
287
	};
288
};
289

  
290
&main_pmx0 {
291
	pinctrl-names = "default";
292
	pinctrl-0 = <&main_system_pins_default &main_gpio_p3_pins_default>;
293

  
294
	baseboard_ioexp_intr_pins_default: baseboard-ioexp-intr-default-pins {
295
		pinctrl-single,pins = <
296
			AM62AX_IOPAD(0x00ac, PIN_INPUT, 7) /* (M21) GPMC0_CSn1.GPIO0_42 */
297
		>;
298
	};
299

  
300
	main_i2c1_pins_default: main-i2c1-default-pins {
301
		pinctrl-single,pins = <
302
			AM62AX_IOPAD(0x01e8, PIN_INPUT_PULLUP, 0) /* (C17) I2C1_SCL */
303
			AM62AX_IOPAD(0x01ec, PIN_INPUT_PULLUP, 0) /* (E17) I2C1_SDA */
304
		>;
305
	};
306

  
307
	main_mmc1_pins_default: main-mmc1-default-pins {
308
		pinctrl-single,pins = <
309
			AM62AX_IOPAD(0x023c, PIN_INPUT, 0) /* (C21) MMC1_CMD */
310
			AM62AX_IOPAD(0x0234, PIN_OUTPUT, 0) /* (E22) MMC1_CLK */
311
			AM62AX_IOPAD(0x0230, PIN_INPUT, 0) /* (B22) MMC1_DAT0 */
312
			AM62AX_IOPAD(0x022c, PIN_INPUT, 0) /* (D21) MMC1_DAT1 */
313
			AM62AX_IOPAD(0x0228, PIN_INPUT, 0) /* (C22) MMC1_DAT2 */
314
			AM62AX_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */
315
			AM62AX_IOPAD(0x0240, PIN_INPUT, 0) /* (E18) MMC1_SDCD */
316
		>;
317
	};
318

  
319
	main_mmc2_pins_default: main-mmc2-default-pins {
320
		pinctrl-single,pins = <
321
			AM62AX_IOPAD(0x0120, PIN_INPUT, 0) /* (G22) MMC2_CMD */
322
			AM62AX_IOPAD(0x0118, PIN_OUTPUT, 0) /* (H22) MMC2_CLK */
323
			AM62AX_IOPAD(0x011C, PIN_INPUT, 0) /* () MMC2_CLKLB */
324
			AM62AX_IOPAD(0x0114, PIN_INPUT, 0) /* (E20) MMC2_DAT0 */
325
			AM62AX_IOPAD(0x0110, PIN_INPUT, 0) /* (F21) MMC2_DAT1 */
326
			AM62AX_IOPAD(0x010c, PIN_INPUT, 0) /* (F20) MMC2_DAT2 */
327
			AM62AX_IOPAD(0x0108, PIN_INPUT, 0) /* (G21) MMC2_DAT3 */
328
		>;
329
	};
330

  
331
	main_mdio1_pins_default: main-mdio1-default-pins {
332
		pinctrl-single,pins = <
333
			AM62AX_IOPAD(0x0160, PIN_OUTPUT, 0) /* (V12) MDIO0_MDC */
334
			AM62AX_IOPAD(0x015c, PIN_INPUT, 0) /* (V13) MDIO0_MDIO */
335
		>;
336
	};
337

  
338
	main_rgmii1_pins_default: main-rgmii1-default-pins {
339
		pinctrl-single,pins = <
340
			AM62AX_IOPAD(0x014c, PIN_INPUT, 0) /* (AB16) RGMII1_RD0 */
341
			AM62AX_IOPAD(0x0150, PIN_INPUT, 0) /* (V15) RGMII1_RD1 */
342
			AM62AX_IOPAD(0x0154, PIN_INPUT, 0) /* (W15) RGMII1_RD2 */
343
			AM62AX_IOPAD(0x0158, PIN_INPUT, 0) /* (V14) RGMII1_RD3 */
344
			AM62AX_IOPAD(0x0148, PIN_INPUT, 0) /* (AA16) RGMII1_RXC */
345
			AM62AX_IOPAD(0x0144, PIN_INPUT, 0) /* (AA15) RGMII1_RX_CTL */
346
			AM62AX_IOPAD(0x0134, PIN_INPUT, 0) /* (Y17) RGMII1_TD0 */
347
			AM62AX_IOPAD(0x0138, PIN_INPUT, 0) /* (V16) RGMII1_TD1 */
348
			AM62AX_IOPAD(0x013c, PIN_INPUT, 0) /* (Y16) RGMII1_TD2 */
349
			AM62AX_IOPAD(0x0140, PIN_INPUT, 0) /* (AA17) RGMII1_TD3 */
350
			AM62AX_IOPAD(0x0130, PIN_INPUT, 0) /* (AB17) RGMII1_TXC */
351
			AM62AX_IOPAD(0x012c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */
352
		>;
353
	};
354

  
355
	main_rgmii2_pins_default: main-rgmii2-default-pins {
356
		pinctrl-single,pins = <
357
			AM62AX_IOPAD(0x0184, PIN_INPUT, 0) /* (AA21) RGMII2_RD0 */
358
			AM62AX_IOPAD(0x0188, PIN_INPUT, 0) /* (Y20) RGMII2_RD1 */
359
			AM62AX_IOPAD(0x018c, PIN_INPUT, 0) /* (AB21) RGMII2_RD2 */
360
			AM62AX_IOPAD(0x0190, PIN_INPUT, 0) /* (AB20) RGMII2_RD3 */
361
			AM62AX_IOPAD(0x0180, PIN_INPUT, 0) /* (AA20) RGMII2_RXC */
362
			AM62AX_IOPAD(0x017c, PIN_INPUT, 0) /* (W18) RGMII2_RX_CTL */
363
			AM62AX_IOPAD(0x016c, PIN_INPUT, 0) /* (AA19) RGMII2_TD0 */
364
			AM62AX_IOPAD(0x0170, PIN_INPUT, 0) /* (Y18) RGMII2_TD1 */
365
			AM62AX_IOPAD(0x0174, PIN_INPUT, 0) /* (AA18) RGMII2_TD2 */
366
			AM62AX_IOPAD(0x0178, PIN_INPUT, 0) /* (W17) RGMII2_TD3 */
367
			AM62AX_IOPAD(0x0168, PIN_INPUT, 0) /* (AB19) RGMII2_TXC */
368
			AM62AX_IOPAD(0x0164, PIN_INPUT, 0) /* (Y19) RGMII2_TX_CTL */
369
		>;
370
	};
371

  
372
	main_dss0_pins_default: main-dss0-default-pins {
373
		pinctrl-single,pins = <
374
			AM62AX_IOPAD(0x0100, PIN_OUTPUT, 0) /* (V17) VOUT0_VSYNC */
375
			AM62AX_IOPAD(0x00f8, PIN_OUTPUT, 0) /* (T18) VOUT0_HSYNC */
376
			AM62AX_IOPAD(0x0104, PIN_OUTPUT, 0) /* (AA22) VOUT0_PCLK */
377
			AM62AX_IOPAD(0x00fc, PIN_OUTPUT, 0) /* (U17) VOUT0_DE */
378
			AM62AX_IOPAD(0x00b8, PIN_OUTPUT, 0) /* (U22) VOUT0_DATA0 */
379
			AM62AX_IOPAD(0x00bc, PIN_OUTPUT, 0) /* (U21) VOUT0_DATA1 */
380
			AM62AX_IOPAD(0x00c0, PIN_OUTPUT, 0) /* (U20) VOUT0_DATA2 */
381
			AM62AX_IOPAD(0x00c4, PIN_OUTPUT, 0) /* (U19) VOUT0_DATA3 */
382
			AM62AX_IOPAD(0x00c8, PIN_OUTPUT, 0) /* (T19) VOUT0_DATA4 */
383
			AM62AX_IOPAD(0x00cc, PIN_OUTPUT, 0) /* (U18) VOUT0_DATA5 */
384
			AM62AX_IOPAD(0x00d0, PIN_OUTPUT, 0) /* (V22) VOUT0_DATA6 */
385
			AM62AX_IOPAD(0x00d4, PIN_OUTPUT, 0) /* (V21) VOUT0_DATA7 */
386
			AM62AX_IOPAD(0x00d8, PIN_OUTPUT, 0) /* (V19) VOUT0_DATA8 */
387
			AM62AX_IOPAD(0x00dc, PIN_OUTPUT, 0) /* (V18) VOUT0_DATA9 */
388
			AM62AX_IOPAD(0x00e0, PIN_OUTPUT, 0) /* (W22) VOUT0_DATA10 */
389
			AM62AX_IOPAD(0x00e4, PIN_OUTPUT, 0) /* (W21) VOUT0_DATA11 */
390
			AM62AX_IOPAD(0x00e8, PIN_OUTPUT, 0) /* (W20) VOUT0_DATA12 */
391
			AM62AX_IOPAD(0x00ec, PIN_OUTPUT, 0) /* (W19) VOUT0_DATA13 */
392
			AM62AX_IOPAD(0x00f0, PIN_OUTPUT, 0) /* (Y21) VOUT0_DATA14 */
393
			AM62AX_IOPAD(0x00f4, PIN_OUTPUT, 0) /* (Y22) VOUT0_DATA15 */
394
			AM62AX_IOPAD(0x005c, PIN_OUTPUT, 1) /* (P22) GPMC0_AD8.VOUT0_DATA16 */
395
			AM62AX_IOPAD(0x0060, PIN_OUTPUT, 1) /* (R19) GPMC0_AD9.VOUT0_DATA17 */
396
			AM62AX_IOPAD(0x0064, PIN_OUTPUT, 1) /* (R20) GPMC0_AD10.VOUT0_DATA18 */
397
			AM62AX_IOPAD(0x0068, PIN_OUTPUT, 1) /* (R22) GPMC0_AD11.VOUT0_DATA19 */
398
			AM62AX_IOPAD(0x006c, PIN_OUTPUT, 1) /* (T22) GPMC0_AD12.VOUT0_DATA20 */
399
			AM62AX_IOPAD(0x0070, PIN_OUTPUT, 1) /* (R21) GPMC0_AD13.VOUT0_DATA21 */
400
			AM62AX_IOPAD(0x0074, PIN_OUTPUT, 1) /* (T20) GPMC0_AD14.VOUT0_DATA22 */
401
			AM62AX_IOPAD(0x0078, PIN_OUTPUT, 1) /* (T21) GPMC0_AD15.VOUT0_DATA23 */
402
		>;
403
	};
404

  
405
	main_spi0_pins_default: spi0-default-pins {
406
		pinctrl-single,pins = <
407
			AM62AX_IOPAD(0x01bc, PIN_INPUT, 0) /* (A17) SPI0_CLK */
408
			AM62AX_IOPAD(0x01b8, PIN_INPUT, 0) /* (C16) SPI0_CS1 */
409
			AM62AX_IOPAD(0x01c0, PIN_INPUT, 0) /* (B15) SPI0_D0 */
410
			AM62AX_IOPAD(0x01c4, PIN_INPUT, 0) /* (E15) SPI0_D1 */
411
		>;
412
	};
413

  
414
	mcasp0_pins_default: mcasp0-default-pins {
415
		pinctrl-single,pins = <
416
			AM62AX_IOPAD(0x00a0, PIN_OUTPUT, 1) /* (K17) GPMC0_WPn.AUDIO_EXT_REFCLK1 */
417
			/* Devkit J16 controls if the codec or PCM interface is used */
418
			AM62AX_IOPAD(0x01a4, PIN_INPUT, 0) /* (A19) MCASP0_ACLKX */
419
			AM62AX_IOPAD(0x01a8, PIN_INPUT, 0) /* (A20) MCASP0_AFSX */
420
			AM62AX_IOPAD(0x01a0, PIN_INPUT, 0) /* (B20) MCASP0_AXR0 */
421
			AM62AX_IOPAD(0x019c, PIN_INPUT, 0) /* (B18) MCASP0_AXR1 */
422
		>;
423
	};
424

  
425
	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
426
		pinctrl-single,pins = <
427
			AM62AX_IOPAD(0x007c, PIN_INPUT, 7) /* (N22) GPMC0_CLK.GPIO0_31 */
428
		>;
429
	};
430

  
431
	wlan_irq_pins_default: main-wlirq-default-pins {
432
		pinctrl-single,pins = <
433
			AM62AX_IOPAD(0x0128, PIN_INPUT, 7) /* (E21) MMC2_SDWP.GPIO0_72 */
434
		>;
435
	};
436

  
437
	wlan_en_pins_default: wlan-en-default-pins {
438
		pinctrl-single,pins = <
439
			AM62AX_IOPAD(0x0124, PIN_INPUT, 7) /* (F22) MMC2_SDCD.GPIO0_71 */
440
		>;
441
	};
442

  
443
	usb1_pins_default: usb1-default-pins {
444
		pinctrl-single,pins = <
445
			AM62AX_IOPAD(0x0098, PIN_INPUT_PULLUP, 7) /* (R18) GPMC0_WAIT0.GPIO0_37 */
446
			AM62AX_IOPAD(0x009c, PIN_INPUT, 7) /* (R17) GPMC0_WAIT1.GPIO0_38 */
447
		>;
448
	};
449

  
450
	usr_led_pins_default: usr-led-default-pins {
451
		pinctrl-single,pins = <
452
			AM62AX_IOPAD(0x0244, PIN_OUTPUT, 2) /* (D18) MMC1_SDWP.TIMER_IO7 */
453
		>;
454
	};
455

  
456
	oldi_backlight_pins_default: epwm0-default-pins {
457
		pinctrl-single,pins = <
458
			AM62AX_IOPAD(0x01b4, PIN_OUTPUT, 2) /* (A13) SPI0_CS0.EHRPWM0_A */
459
		>;
460
	};
461

  
462
	main_system_pins_default: main-system-default-pins {
463
		pinctrl-single,pins = <
464
			AM62AX_IOPAD(0x0250, PIN_OUTPUT, 0) /* (F18) PORz_OUT */
465
			AM62AX_IOPAD(0x024c, PIN_OUTPUT, 0) /* (F19) RESETSTATz */
466
			AM62AX_IOPAD(0x0248, PIN_INPUT_PULLUP, 0) /* (E19) RESET_REQz */
467
		>;
468
	};
469

  
470
	main_gpio_p3_pins_default: gpio-p3-default-pins {
471
		pinctrl-single,pins = <
472
			/* P3 Connector */
473
			AM62AX_IOPAD(0x003c, PIN_INPUT_PULLDOWN, 7) /* (N21) GPMC0_AD0.GPIO0_15 */
474
			AM62AX_IOPAD(0x0040, PIN_INPUT_PULLDOWN, 7) /* (N20) GPMC0_AD1.GPIO0_16 */
475
			AM62AX_IOPAD(0x0044, PIN_INPUT_PULLDOWN, 7) /* (N19) GPMC0_AD2.GPIO0_17 */
476
			AM62AX_IOPAD(0x0048, PIN_INPUT_PULLDOWN, 7) /* (N18) GPMC0_AD3.GPIO0_18 */
477
			AM62AX_IOPAD(0x004c, PIN_INPUT_PULLDOWN, 7) /* (N17) GPMC0_AD4.GPIO0_19 */
478
			AM62AX_IOPAD(0x0050, PIN_INPUT_PULLDOWN, 7) /* (P18) GPMC0_AD5.GPIO0_20 */
479
			AM62AX_IOPAD(0x0054, PIN_INPUT_PULLDOWN, 7) /* (P19) GPMC0_AD6.GPIO0_21 */
480
			AM62AX_IOPAD(0x0058, PIN_INPUT_PULLDOWN, 7) /* (P21) GPMC0_AD7.GPIO0_22 */
481
			AM62AX_IOPAD(0x0084, PIN_INPUT_PULLDOWN, 7) /* (L18) GPMC0_ADVn_ALE.GPIO0_32 */
482
			AM62AX_IOPAD(0x0088, PIN_INPUT_PULLDOWN, 7) /* (L17) GPMC0_OEn_REn.GPIO0_33 */
483
			AM62AX_IOPAD(0x008c, PIN_INPUT_PULLDOWN, 7) /* (K19) GPMC0_WEn.GPIO0_34 */
484
			AM62AX_IOPAD(0x0090, PIN_INPUT_PULLDOWN, 7) /* (L19) GPMC0_BE0n_CLE.GPIO0_35 */
485
			AM62AX_IOPAD(0x0094, PIN_INPUT_PULLDOWN, 7) /* (M18) GPMC0_BE1n.GPIO0_36 */
486
			AM62AX_IOPAD(0x00a4, PIN_INPUT_PULLDOWN, 7) /* (K18) GPMC0_DIR.GPIO0_40 */
487
			AM62AX_IOPAD(0x00a8, PIN_INPUT_PULLDOWN, 7) /* (M19) GPMC0_CSn0.GPIO0_41 */
488
			AM62AX_IOPAD(0x00b0, PIN_INPUT_PULLDOWN, 7) /* (M22) GPMC0_CSn2.GPIO0_43 */
489
			AM62AX_IOPAD(0x00b4, PIN_INPUT_PULLDOWN, 7) /* (M20) GPMC0_CSn3.GPIO0_44 */
490
			AM62AX_IOPAD(0x0194, PIN_INPUT_PULLDOWN, 7) /* (C19) MCASP0_AXR3.GPIO1_7 */
491
			AM62AX_IOPAD(0x0198, PIN_INPUT_PULLDOWN, 7) /* (B19) MCASP0_AXR2.GPIO1_8 */
492
			AM62AX_IOPAD(0x01b4, PIN_INPUT_PULLDOWN, 7) /* (D16) SPI0_CS0.GPIO1_15 */
493
			AM62AX_IOPAD(0x01d0, PIN_INPUT_PULLDOWN, 7) /* (F14) UART0_CTSn.GPIO1_22 */
494
			AM62AX_IOPAD(0x01d4, PIN_INPUT_PULLDOWN, 7) /* (C15) UART0_RTSn.GPIO1_23 */
495
			AM62AX_IOPAD(0x01d8, PIN_INPUT_PULLDOWN, 7) /* (B17) MCAN0_TX.GPIO1_24 */
496
			AM62AX_IOPAD(0x01dc, PIN_INPUT_PULLDOWN, 7) /* (C18) MCAN0_RX.GPIO1_25 */
497
			AM62AX_IOPAD(0x01f0, PIN_INPUT_PULLDOWN, 7) /* (B16) EXT_REFCLK1.GPIO1_30 */
498
			/* (D16) EXTINTn.GPIO1_31 Used on SOM for PMIC interrupt */
499
		>;
500
	};
501
};
502

  
503
&mcu_pmx0 {
504
	pinctrl-names = "default";
505
	pinctrl-0 = <&som_mcu_system_pins_default &mcu_jtag_pins_default &mcu_uart1_pins_default &mcu_system_pins_default &mcu_gpio_p3_pins_default>;
506
	status = "okay";
507

  
508
	mcu_jtag_pins_default: jtag-default-pins {
509
		pinctrl-single,pins = <
510
			AM62AX_MCU_IOPAD(0x0078, PIN_INPUT_PULLUP, 0) /* (C13) EMU0 */
511
			AM62AX_MCU_IOPAD(0x007c, PIN_INPUT_PULLUP, 0) /* (E10) EMU1 */
512
			AM62AX_MCU_IOPAD(0x0064, PIN_INPUT_PULLUP, 0) /* (A14) TCK */
513
			AM62AX_MCU_IOPAD(0x006c, PIN_INPUT_PULLUP, 0) /* (A16) TDI */
514
			AM62AX_MCU_IOPAD(0x0070, PIN_OUTPUT_PULLUP, 0) /* (C14) TDO */
515
			AM62AX_MCU_IOPAD(0x0074, PIN_INPUT_PULLUP, 0) /* (B14) TMS */
516
			AM62AX_MCU_IOPAD(0x0068, PIN_INPUT_PULLDOWN, 0) /* (F15) TRSTn */
517
		>;
518
	};
519

  
520
	mcu_oldi_touch_pins_default: oldi-touch-default-pins {
521
		pinctrl-single,pins = <
522
			AM62AX_MCU_IOPAD(0x001c, PIN_INPUT_PULLUP, 7) /* (B11) MCU_UART0_CTSn.MCU_GPIO0_7 */
523
		>;
524
	};
525

  
526
	mcu_mcan0_pins_default: mcu-mcan0-default-pins {
527
		pinctrl-single,pins = <
528
			AM62AX_MCU_IOPAD(0x0038, PIN_INPUT, 0) /* (E8) MCU_MCAN0_RX */
529
			AM62AX_MCU_IOPAD(0x0034, PIN_OUTPUT, 0) /* (C7) MCU_MCAN0_TX */
530
		>;
531
	};
532

  
533
	mcu_mcan1_pins_default: mcu-mcan1-default-pins {
534
		pinctrl-single,pins = <
535
			AM62AX_MCU_IOPAD(0x0040, PIN_INPUT, 0) /* (B9) MCU_MCAN1_RX */
536
			AM62AX_MCU_IOPAD(0x003c, PIN_OUTPUT, 0) /* (D7) MCU_MCAN1_TX */
537
		>;
538
	};
539

  
540
	bt_uart0_pins_default: wkup-uart0-default-pins {
541
		pinctrl-single,pins = <
542
			AM62AX_MCU_IOPAD(0x002c, PIN_INPUT, 0) /* (C10) WKUP_UART0_CTSn */
543
			AM62AX_MCU_IOPAD(0x0030, PIN_OUTPUT, 0) /* (C8) WKUP_UART0_RTSn */
544
			AM62AX_MCU_IOPAD(0x0024, PIN_INPUT, 0) /* (C9) WKUP_UART0_RXD */
545
			AM62AX_MCU_IOPAD(0x0028, PIN_OUTPUT, 0) /* (E9) WKUP_UART0_TXD */
546
		>;
547
	};
548

  
549
	mcu_uart1_pins_default: mcu-uart1-default-pins {
550
		pinctrl-single,pins = <
551
			AM62AX_MCU_IOPAD(0x0014, PIN_INPUT, 0) /* (D8) MCU_UART0_RXD */
552
			AM62AX_MCU_IOPAD(0x0018, PIN_OUTPUT, 0) /* (F8) MCU_UART0_TXD */
553
		>;
554
	};
555

  
556
	mcu_system_pins_default: mcu-system-default-pins {
557
		pinctrl-single,pins = <
558
			AM62AX_MCU_IOPAD(0x005c, PIN_OUTPUT, 0) /* (D14) MCU_RESETSTATz */
559
			AM62AX_MCU_IOPAD(0x0054, PIN_INPUT_PULLUP, 0) /* (C12) MCU_RESETz */
560
		>;
561
	};
562

  
563
	mcu_gpio_p3_pins_default: mcu-gpio-p3-default-pins {
564
		pinctrl-single,pins = <
565
			/* P3 Connector */
566
			AM62AX_MCU_IOPAD(0x0000, PIN_INPUT_PULLDOWN, 7) /* (E11) MCU_SPI0_CS0.MCU_GPIO0_0 */
567
			AM62AX_MCU_IOPAD(0x0004, PIN_INPUT_PULLDOWN, 7) /* (C11) MCU_SPI0_CS1.MCU_GPIO0_1 */
568
			AM62AX_MCU_IOPAD(0x0008, PIN_INPUT_PULLDOWN, 7) /* (B13) MCU_SPI0_CLK.MCU_GPIO0_2 */
569
			AM62AX_MCU_IOPAD(0x000c, PIN_INPUT_PULLDOWN, 7) /* (A15) MCU_SPI0_D0.MCU_GPIO0_3 */
570
			AM62AX_MCU_IOPAD(0x0010, PIN_INPUT_PULLDOWN, 7) /* (B12) MCU_SPI0_D1.MCU_GPIO0_4 */
571
			AM62AX_MCU_IOPAD(0x0044, PIN_INPUT_PULLDOWN, 7) /* (E12) MCU_I2C0_SCL.MCU_GPIO0_17 */
572
			AM62AX_MCU_IOPAD(0x0048, PIN_INPUT_PULLDOWN, 7) /* (D9) MCU_I2C0_SDA.MCU_GPIO0_18 */
573
			AM62AX_MCU_IOPAD(0x004c, PIN_INPUT_PULLDOWN, 7) /* (D13) WKUP_I2C0_SCL.MCU_GPIO0_19 */
574
			AM62AX_MCU_IOPAD(0x0050, PIN_INPUT_PULLDOWN, 7) /* (E13) WKUP_I2C0_SDA.MCU_GPIO0_20 */
575
		>;
576
	};
577
};
578

  
579
&mcu_gpio0 {
580
	status = "okay";
581
};
582

  
583
&main_i2c1 {
584
	status = "okay";
585
	pinctrl-names = "default";
586
	pinctrl-0 = <&main_i2c1_pins_default>;
587
	clock-frequency = <100000>;
588

  
589
	/* MIPI Raspberry Pi Camera V2 0x10 */
590

  
591
	/* GPIO expander 0x20 */
592
	exp1: gpio@20 {
593
		compatible = "nxp,pcal6408";
594
		reg = <0x20>;
595
		gpio-controller;
596
		#gpio-cells = <2>;
597
		gpio-line-names =
598
					"ETH1_INT_N", "ETH2_INT_N",
599
					"TFP410_RESET_N", "OLDI_RESETN",
600
					"ETH2_RESETN", "ETH1_RESETN",
601
					"WLAN_BT_EN", "AUDIO_RESET_N";
602

  
603
		interrupt-parent = <&main_gpio0>;
604
		interrupts = <42 IRQ_TYPE_EDGE_FALLING>;
605
		interrupt-controller;
606
		#interrupt-cells = <2>;
607

  
608
		pinctrl-names = "default";
609
		pinctrl-0 = <&baseboard_ioexp_intr_pins_default>;
610
	};
611

  
612
	/* Power Monitor 0x6F */
613
	ltc2945@6f {
614
		status = "okay";
615
		compatible =  "adi,ltc2945";
616
		reg = <0x6f>;
617
		// 1000 microOhms is the default
618
		shunt-resistor-micro-ohms = <20000>;
619
	};
620

  
621
	/* P3 Expansion Header */
622

  
623
};
624

  
625
&main_spi0 {
626
	status = "okay";
627
	pinctrl-names = "default";
628
	pinctrl-0 = <&main_spi0_pins_default>;
629
	ti,spi-num-cs = <2>;
630
	ti,pindir-d0-out-d1-in;
631

  
632
	tlv320aic26: audio-codec@1 {
633
		status = "okay";
634
		#sound-dai-cells = <0>;
635
		compatible = "ti,tlv320aic26";
636
		reg = <0x1>;
637

  
638
		/* Regulators */
639
		AVDD-supply = <&vcc_3v3_vio>;
640
		IOVDD-supply = <&vcc_3v3_vio>;
641
		DRVDD-supply = <&vcc_3v3_vio>;
642
		DVDD-supply = <&som_vdd_1v8>;
643

  
644
		reset-gpios = <&exp1 7 GPIO_ACTIVE_LOW>;
645
		spi-max-frequency = <1000000>;
646
		spi-cpha;
647
	};
648
};
649

  
650
&sdhci1 {
651
	/* SD/MMC */
652
	status = "okay";
653
	vmmc-supply = <&vdd_mmc1>;
654
	vqmmc-supply = <&som_vdd_sd_dv>;
655
	pinctrl-names = "default";
656
	pinctrl-0 = <&main_mmc1_pins_default>;
657
	disable-wp;
658
	/* Disable 1.8V mode when VSEL_SD is not controllable */
659
	/*no-1-8-v;*/
660
};
661

  
662
/*
663
&sdhci2 {
664
	vmmc-supply = <&wlan_en>;
665
	pinctrl-names = "default";
666
	pinctrl-0 = <&main_mmc2_pins_default>;
667
	bus-width = <4>;
668
	non-removable;
669
	ti,fails-without-test-cd;
670
	cap-power-off-card;
671
	keep-power-in-suspend;
672
	assigned-clocks = <&k3_clks 157 158>;
673
	assigned-clock-parents = <&k3_clks 157 160>;
674

  
675
	#address-cells = <1>;
676
	#size-cells = <0>;
677
	wlcore: wlcore@2 {
678
		compatible = "ti,wl1837";
679
		reg = <2>;
680
		pinctrl-names = "default";
681
		pinctrl-0 = <&wlan_irq_pins_default>;
682
		interrupt-parent = <&main_gpio0>;
683
		interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
684
	};
685
};
686
*/
687

  
688
/* Main Timer2 is used by C7x DSP */
689
&main_timer2 {
690
	status = "reserved";
691
};
... This diff was truncated because it exceeds the maximum size that can be displayed.
(1-1/2) Go to top
Add picture from clipboard (Maximum size: 1 GB)