1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
|
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* Copyright (C) 2019, Webasto SE
* Author: Johannes Eigner <johannes.eigner@webasto.com>
*
* Description of the Marvel B2, MK3 Comboard
*/
/dts-v1/;
#include <arm/imx6ul.dtsi>
/ {
model = "Webasto common communication board Marvel MK3";
compatible = "webasto,imx6ul-marvel-b2", "webasto,imx6ul-marvel", "fsl,imx6ul";
chosen {
stdout-path = &uart7;
environment {
compatible = "barebox,environment";
device-path = &environment_emmc;
};
};
aliases {
state = &state_emmc;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
dt-overlay@84000000 {
reg = <0x84000000 0x100000>;
no-map;
};
};
state_emmc: state {
#address-cells = <1>;
#size-cells = <1>;
compatible = "barebox,state";
magic = <0x290cf8c6>;
backend-type = "raw";
backend = <&backend_state_emmc>;
backend-stridesize = <0x200>;
bootstate {
#address-cells = <1>;
#size-cells = <1>;
system0 {
#address-cells = <1>;
#size-cells = <1>;
remaining_attempts@0 {
reg = <0x0 0x4>;
type = "uint32";
default = <3>;
};
priority@4 {
reg = <0x4 0x4>;
type = "uint32";
default = <20>;
};
};
system1 {
#address-cells = <1>;
#size-cells = <1>;
remaining_attempts@8 {
reg = <0x8 0x4>;
type = "uint32";
default = <3>;
};
priority@c {
reg = <0xc 0x4>;
type = "uint32";
default = <21>;
};
};
last_chosen@10 {
reg = <0x10 0x4>;
type = "uint32";
};
};
};
transceiver1_en: regulator-can1phy {
compatible = "regulator-fixed";
regulator-name = "can-transceiver1";
pinctrl-names = "default";
pinctrl-0 = <&pinctl_can1phy>;
vin-supply = <&swbst_reg>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio3 19 GPIO_ACTIVE_LOW>;
};
reg_4v: regulator-4v {
compatible = "regulator-fixed";
regulator-name = "V_+4V";
regulator-min-microvolt = <4000000>;
regulator-max-microvolt = <4000000>;
regulator-boot-on;
regulator-always-on;
};
reg_wl18xx_vmmc: regulator-wl18xx {
compatible = "regulator-fixed";
regulator-name = "wl1837";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wifi_reg>;
vin-supply = <®_4v>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 22 GPIO_ACTIVE_HIGH>;
startup-delay-us = <70000>;
enable-active-high;
};
reg_dp83822_en: regulator-dp83822 {
compatible = "regulator-fixed";
regulator-name = "dp83822";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_phy_reg>;
vin-supply = <&vcc_eth>;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
&asrc {
status = "disabled";
};
&can1 {
xceiver-supply = <&transceiver1_en>; /* CAN side */
vdd-supply = <&vgen1_reg>; /* I/O side */
pinctrl-names = "default";
pinctrl-0 = <&pinctl_can1>;
};
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-supply = <®_dp83822_en>;
phy-handle = <&dp83822i>;
phy-reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
dp83822i: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
clocks = <&clks IMX6UL_CLK_ENET_REF>;
clock-names = "rmii-ref";
};
};
};
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
clock-frequency = <100000>;
status = "okay";
pmic: mc34pf3000@8 {
compatible = "fsl,pfuze3000";
pinctrl-names = "default";
pinctrl-0 = <&pinctl_pmic_irq>;
interrupts-extended = <&gpio1 29 IRQ_TYPE_LEVEL_LOW>;
reg = <0x08>;
regulators {
sw1a_reg: sw1a {
regulator-name = "V_+3V3_SW1A";
vin-supply = <®_4v>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
regulator-ramp-delay = <6250>;
};
vdd_soc_in: sw1b {
regulator-name = "V_+1V4_SW1B";
vin-supply = <®_4v>;
regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1475000>;
regulator-ramp-delay = <6250>;
regulator-boot-on;
regulator-always-on;
};
sw2_reg: sw2 {
regulator-name = "V_+3V3_SW2";
vin-supply = <®_4v>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
vcc_ddr3: sw3 {
regulator-name = "V_+1V35_SW3";
vin-supply = <®_4v>;
regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <1350000>;
regulator-boot-on;
regulator-always-on;
};
swbst_reg: swbst {
regulator-name = "V_+5V0_SWBST";
vin-supply = <®_4v>;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5150000>;
regulator-boot-on;
regulator-always-on; /* due to hardware requirements */
};
vdd_snvs: vsnvs {
regulator-name = "V_+3V0_SNVS";
vin-supply = <®_4v>;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <3000000>;
regulator-boot-on;
regulator-always-on;
};
vrefddr: vrefddr {
regulator-name = "V_+0V675_VREFDDR";
vin-supply = <&vcc_ddr3>;
regulator-boot-on;
regulator-always-on;
};
/* 3V3 Supply: i.MX6 modules */
vgen1_reg: vldo1 {
regulator-name = "V_+3V3_LDO1";
vin-supply = <®_4v>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
vgen2_reg: vldo2 {
/* not connected */
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1550000>;
};
vgen3_reg: vccsd {
regulator-min-microvolt = <2850000>;
regulator-max-microvolt = <3300000>;
};
vdd_high_in: v33 {
regulator-name = "V_+3V3_V33";
vin-supply = <®_4v>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
vcc_eth: vldo3 {
regulator-name = "V_+1V8_LDO3";
vin-supply = <®_4v>;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
};
vgen6_reg: vldo4 {
regulator-name = "V_+1V8_LDO4";
vin-supply = <®_4v>;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-boot-on;
regulator-always-on;
};
};
};
};
&iomuxc {
pinctrl_phy_reg: phyreggrp {
fsl,pins = <
/* high = phy enabled */
MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x13030
>;
};
pinctrl_enet1: enet1grp {
fsl,pins = <
/* Note: 1.8 V */
MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x13030
>;
};
pinctl_pmic_irq: pmicgrp {
fsl,pins = <
/* 1.8 V level */
MX6UL_PAD_UART4_RX_DATA__GPIO1_IO29 0x10000
>;
};
pinctrl_i2c2: i2c2grp {
fsl,pins = <
/* 1.8 V level for all */
MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
>;
};
pinctrl_uart6: uart6grp {
fsl,pins = <
/* 1.8 V level for all */
MX6UL_PAD_CSI_MCLK__UART6_DCE_TX 0x1b0b0
MX6UL_PAD_CSI_PIXCLK__UART6_DCE_RX 0x1b0b0
MX6UL_PAD_CSI_VSYNC__UART6_DCE_RTS 0x1b0b0
MX6UL_PAD_CSI_HSYNC__UART6_DCE_CTS 0x1b0b0
MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x10030
>;
};
pinctrl_uart7: uart7grp {
fsl,pins = <
/* 3.3 V level for all */
MX6UL_PAD_LCD_DATA16__UART7_DCE_TX 0x0b0b0
MX6UL_PAD_LCD_DATA17__UART7_DCE_RX 0x1b0b0
>;
};
pinctrl_wifi_reg: wifigrp {
fsl,pins = <
/* 1.8 V level for all */
MX6UL_PAD_CSI_DATA01__GPIO4_IO22 0x10030
MX6UL_PAD_GPIO1_IO03__OSC32K_32K_OUT 0x00010
>;
};
pinctrl_wifi_irq: wifiirqgrp {
fsl,pins = <
/* 1.8 V level */
MX6UL_PAD_CSI_DATA00__GPIO4_IO21 0x17000
>;
};
pinctrl_usdhc1: usdhc1grp {
fsl,pins = <
/* 1.8 V level for all */
MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x10059
MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059
MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x10059
MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x10059
MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x10059
MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x10059
>;
};
pinctrl_usdhc2: usdhc2grp_slow {
fsl,pins = <
/* 3.3 V level for all, *no* external PU */
MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10079
MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17029
MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17029
MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17029
MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17029
MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17029
MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17029
MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17029
MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17029
MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17029
MX6UL_PAD_NAND_ALE__USDHC2_RESET_B 0x00008
>;
};
pinctrl_usdhc2_100MHZ: usdhc2grp_100m {
fsl,pins = <
/* 3.3 V level for all, *no* external PU */
MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100e9
MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x1b0a9
MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x1b0a9
MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x1b0a9
MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x1b0a9
MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x1b0a9
MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x1b0a9
MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x1b0a9
MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x1b0a9
MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x1b0a9
MX6UL_PAD_NAND_ALE__USDHC2_RESET_B 0x00008
>;
};
pinctrl_usdhc2_200MHZ: usdhc2grp_200m {
fsl,pins = <
/* 3.3 V level for all, *no* external PU */
MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100e9
MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x1b0e9
MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x1b0e9
MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x1b0e9
MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x1b0e9
MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x1b0e9
MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x1b0e9
MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x1b0e9
MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x1b0e9
MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x1b0e9
MX6UL_PAD_NAND_ALE__USDHC2_RESET_B 0x00008
>;
};
pinctrl_wdog: wdoggrp {
fsl,pins = <
MX6UL_PAD_GPIO1_IO01__WDOG1_WDOG_B 0x00b0
>;
};
pinctl_can1phy: can1phygrp {
fsl,pins = <
/* 3.3 V level */
MX6UL_PAD_LCD_DATA14__GPIO3_IO19 0x00008
>;
};
pinctl_can1: can1grp {
fsl,pins = <
/* 3.3 V level for all */
MX6UL_PAD_LCD_DATA08__FLEXCAN1_TX 0x00009
MX6UL_PAD_LCD_DATA09__FLEXCAN1_RX 0x17000
>;
};
pinctrl_usbotg2: cmgrp {
fsl,pins = <
MX6UL_PAD_UART2_RTS_B__GPIO1_IO23 0x10800 /* shutdown signal from voltage monitor */
MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20 0x00028 /* power on signal to modem */
MX6UL_PAD_UART2_RX_DATA__GPIO1_IO21 0x00028 /* fast shutdown signal to modem */
MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x00028 /* emergency reset signal to modem */
MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x14000 /* status signal from modem */
>;
};
};
&gpio1 {
gpio-line-names = "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "",
"", "", "", "", "PWRON_CM_UC_DO", "FST_SHDN_CM_UC_DO", "", "INT_VMON_OUT",
"", "STATUS_CM_UC_DI", "RST_EMERG_UC_DO", "", "";
};
&ocotp {
barebox,provide-mac-address = <&fec1 0x620>;
};
®_arm {
vin-supply = <&vdd_soc_in>;
regulator-allow-bypass;
};
®_soc {
vin-supply = <&vdd_soc_in>;
regulator-allow-bypass;
};
&uart6 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart6>;
uart-has-rtscts;
bluetooth {
compatible = "ti,wl1837-st";
enable-gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
vin-supply = <®_4v>;
};
};
&uart7 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart7>;
status = "okay";
};
&usbotg1 {
/* Micro-USB-plug */
dr_mode = "peripheral";
status = "okay";
};
&usbotg2 {
/* Modem (e.g. internal only) */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg2>;
vbus-supply = <&swbst_reg>;
dr_mode = "host";
disable-over-current;
status = "okay";
};
&usdhc1 {
/* SDIO (WIFI/BT) */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usdhc1>;
bus-width = <4>;
vmmc-supply = <®_wl18xx_vmmc>;
vqmmc-supply = <&vgen6_reg>;
non-removable;
no-sd;
no-mmc;
keep-power-in-suspend;
cap-power-off-card;
max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@2 {
compatible = "ti,wl1837";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wifi_irq>;
reg = <2>;
interrupts-extended = <&gpio4 21 IRQ_TYPE_LEVEL_HIGH>;
tcxo-clock-frequency = <26000000>;
};
};
&usdhc2 {
/* eMMC */
pinctrl-names = "default", "state_100mhz", "state_200mhz";
pinctrl-0 = <&pinctrl_usdhc2>;
pinctrl-1 = <&pinctrl_usdhc2_100MHZ>;
pinctrl-2 = <&pinctrl_usdhc2_200MHZ>;
bus-width = <8>;
vmmc-supply = <&sw1a_reg>;
vqmmc-supply = <&vgen1_reg>;
no-1-8-v;
non-removable;
no-sd;
no-sdio;
keep-power-in-suspend;
cap-mmc-hw-reset;
status = "okay";
/* bootloader specific */
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "barebox";
reg = <0x0 0x100000>;
};
environment_emmc: partition@100000 {
label = "barebox-environment";
reg = <0x100000 0x100000>;
};
backend_state_emmc: partition@200000 {
label = "barebox-state";
reg = <0x200000 0x100000>;
};
};
};
&wdog1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wdog>;
fsl,ext-reset-output;
status = "okay";
};
/* include the FIT public key for verifying on demand */
#ifdef CONFIG_BOOTM_FITIMAGE_PUBKEY
#include CONFIG_BOOTM_FITIMAGE_PUBKEY
#endif
|