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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright 2025 Toradex
*
* Common dtsi for Verdin AM62P SoM on Ivy carrier board
*
* https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62p
* https://www.toradex.com/products/carrier-board/ivy-carrier-board
*/
#include <dt-bindings/mux/mux.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/net/ti-dp83867.h>
/ {
aliases {
eeprom1 = &carrier_eeprom;
};
/* AIN1 Voltage w/o AIN1_MODE gpio control */
ain1_voltage_unmanaged: voltage-divider-ain1 {
compatible = "voltage-divider";
#io-channel-cells = <1>;
io-channels = <&ivy_adc1 0>;
full-ohms = <19>;
output-ohms = <1>;
};
/* AIN1 Current w/o AIN1_MODE gpio control */
ain1_current_unmanaged: current-sense-shunt-ain1 {
compatible = "current-sense-shunt";
#io-channel-cells = <0>;
io-channels = <&ivy_adc1 1>;
shunt-resistor-micro-ohms = <100000000>;
};
/* AIN1_MODE - SODIMM 216 */
ain1_mode_mux_ctrl: mux-controller-0 {
compatible = "gpio-mux";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_5>;
#mux-control-cells = <0>;
mux-gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>;
};
ain1-voltage {
compatible = "io-channel-mux";
channels = "ain1_voltage", "";
io-channels = <&ain1_voltage_unmanaged 0>;
io-channel-names = "parent";
mux-controls = <&ain1_mode_mux_ctrl>;
settle-time-us = <1000>;
};
ain1-current {
compatible = "io-channel-mux";
channels = "", "ain1_current";
io-channels = <&ain1_current_unmanaged>;
io-channel-names = "parent";
mux-controls = <&ain1_mode_mux_ctrl>;
settle-time-us = <1000>;
};
/* AIN2 Voltage w/o AIN2_MODE gpio control */
ain2_voltage_unmanaged: voltage-divider-ain2 {
compatible = "voltage-divider";
#io-channel-cells = <1>;
io-channels = <&ivy_adc2 0>;
full-ohms = <19>;
output-ohms = <1>;
};
/* AIN2 Current w/o AIN2_MODE gpio control */
ain2_current_unmanaged: current-sense-shunt-ain2 {
compatible = "current-sense-shunt";
#io-channel-cells = <0>;
io-channels = <&ivy_adc2 1>;
shunt-resistor-micro-ohms = <100000000>;
};
/* AIN2_MODE - SODIMM 218 */
ain2_mode_mux_ctrl: mux-controller-1 {
compatible = "gpio-mux";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_6>;
#mux-control-cells = <0>;
mux-gpios = <&main_gpio0 50 GPIO_ACTIVE_HIGH>;
};
ain2-voltage {
compatible = "io-channel-mux";
channels = "ain2_voltage", "";
io-channels = <&ain2_voltage_unmanaged 0>;
io-channel-names = "parent";
mux-controls = <&ain2_mode_mux_ctrl>;
settle-time-us = <1000>;
};
ain2-current {
compatible = "io-channel-mux";
channels = "", "ain2_current";
io-channels = <&ain2_current_unmanaged>;
io-channel-names = "parent";
mux-controls = <&ain2_mode_mux_ctrl>;
settle-time-us = <1000>;
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ivy_leds>;
/* D7 Blue - SODIMM 30 - LEDs.GPIO1 */
led-0 {
color = <LED_COLOR_ID_BLUE>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <1>;
gpios = <&main_gpio1 11 GPIO_ACTIVE_HIGH>;
};
/* D7 Green - SODIMM 32 - LEDs.GPIO2 */
led-1 {
color = <LED_COLOR_ID_GREEN>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <1>;
gpios = <&main_gpio1 12 GPIO_ACTIVE_HIGH>;
};
/* D7 Red - SODIMM 34 - LEDs.GPIO3 */
led-2 {
color = <LED_COLOR_ID_RED>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <1>;
gpios = <&main_gpio1 10 GPIO_ACTIVE_HIGH>;
};
/* D8 Blue - SODIMM 36 - LEDs.GPIO4 */
led-3 {
color = <LED_COLOR_ID_BLUE>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <2>;
gpios = <&main_gpio1 9 GPIO_ACTIVE_HIGH>;
};
/* D8 Green - SODIMM 54 - LEDs.GPIO5 */
led-4 {
color = <LED_COLOR_ID_GREEN>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <2>;
gpios = <&main_gpio0 11 GPIO_ACTIVE_HIGH>;
};
/* D8 Red - SODIMM 44 - LEDs.GPIO6 */
led-5 {
color = <LED_COLOR_ID_RED>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <2>;
gpios = <&main_gpio0 37 GPIO_ACTIVE_HIGH>;
};
/* D9 Blue - SODIMM 46 - LEDs.GPIO7 */
led-6 {
color = <LED_COLOR_ID_BLUE>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <3>;
gpios = <&main_gpio0 34 GPIO_ACTIVE_HIGH>;
};
/* D9 Red - SODIMM 48 - LEDs.GPIO8 */
led-7 {
color = <LED_COLOR_ID_RED>;
default-state = "off";
function = LED_FUNCTION_STATUS;
function-enumerator = <3>;
gpios = <&main_gpio0 33 GPIO_ACTIVE_HIGH>;
};
};
reg_3v2_ain1: regulator-3v2-ain1 {
compatible = "regulator-fixed";
regulator-max-microvolt = <3200000>;
regulator-min-microvolt = <3200000>;
regulator-name = "+3V2_AIN1";
};
reg_3v2_ain2: regulator-3v2-ain2 {
compatible = "regulator-fixed";
regulator-max-microvolt = <3200000>;
regulator-min-microvolt = <3200000>;
regulator-name = "+3V2_AIN2";
};
/* Ivy Power Supply Input Voltage */
ivy-input-voltage {
compatible = "voltage-divider";
/* Verdin ADC_1 */
io-channels = <&som_adc 7>;
full-ohms = <204700>; /* 200K + 4.7K */
output-ohms = <4700>;
};
ivy-5v-voltage {
compatible = "voltage-divider";
/* Verdin ADC_2 */
io-channels = <&som_adc 6>;
full-ohms = <39000>; /* 27K + 12K */
output-ohms = <12000>;
};
ivy-3v3-voltage {
compatible = "voltage-divider";
/* Verdin ADC_3 */
io-channels = <&som_adc 5>;
full-ohms = <54000>; /* 27K + 27K */
output-ohms = <27000>;
};
ivy-1v8-voltage {
compatible = "voltage-divider";
/* Verdin ADC_4 */
io-channels = <&som_adc 4>;
full-ohms = <39000>; /* 12K + 27K */
output-ohms = <27000>;
};
};
&main_pmx0 {
pinctrl_ivy_leds: ivy-leds-default-pins {
pinctrl-single,pins = <
AM62PX_IOPAD(0x019c, PIN_INPUT, 7) /* (E24) MCASP0_AXR1.GPIO1_9 */ /* SODIMM 36 */
AM62PX_IOPAD(0x01a0, PIN_INPUT, 7) /* (F23) MCASP0_AXR0.GPIO1_10 */ /* SODIMM 34 */
AM62PX_IOPAD(0x01a4, PIN_INPUT, 7) /* (F24) MCASP0_ACLKX.GPIO1_11 */ /* SODIMM 30 */
AM62PX_IOPAD(0x01a8, PIN_INPUT, 7) /* (F25) MCASP0_AFSX.GPIO1_12 */ /* SODIMM 32 */
AM62PX_IOPAD(0x0088, PIN_INPUT, 7) /* (R24) GPMC0_OEn_REn.GPIO0_33 */ /* SODIMM 48 */
AM62PX_IOPAD(0x0098, PIN_INPUT, 7) /* (AA24) GPMC0_WAIT0.GPIO0_37 */ /* SODIMM 44 */
AM62PX_IOPAD(0x008c, PIN_INPUT, 7) /* (T25) GPMC0_WEn.GPIO0_34 */ /* SODIMM 46 */
AM62PX_IOPAD(0x002c, PIN_INPUT, 7) /* (M25) OSPI0_CSn0.GPIO0_11 */ /* SODIMM 54 */
>;
};
};
/* Verdin ETHs */
&cpsw3g {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_rgmii1>, <&pinctrl_rgmii2>;
status = "okay";
};
/* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
&cpsw3g_mdio {
status = "okay";
carrier_eth_phy: ethernet-phy@2 {
reg = <2>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eth2_rgmii_int>;
interrupt-parent = <&main_gpio0>;
interrupts = <42 IRQ_TYPE_EDGE_FALLING>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
};
};
/* Verdin ETH_1 (On-module PHY) */
&cpsw_port1 {
status = "okay";
};
/* Verdin ETH_2_RGMII */
&cpsw_port2 {
phy-handle = <&carrier_eth_phy>;
phy-mode = "rgmii-rxid";
status = "okay";
};
&main_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pcie_1_reset>,
<&pinctrl_qspi1_cs2_gpio>,
<&pinctrl_qspi1_dqs_gpio>,
<&pinctrl_qspi1_io0_gpio>,
<&pinctrl_qspi1_io1_gpio>,
<&pinctrl_qspi1_io2_gpio>,
<&pinctrl_qspi1_io3_gpio>;
gpio-line-names =
"", /* 0 */
"",
"REL4", /* SODIMM 66 */
"DIGI_1", /* SODIMM 56 */
"DIGI_2", /* SODIMM 58 */
"REL1", /* SODIMM 60 */
"REL2", /* SODIMM 62 */
"",
"",
"",
"", /* 10 */
"",
"REL3", /* SODIMM 64 */
"",
"",
"",
"",
"",
"",
"",
"", /* 20 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 30 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 40 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 50 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 60 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 70 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 80 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 90 */
"";
};
&main_gpio1 {
gpio-line-names =
"", /* 0 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 10 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 20 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 30 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 40 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 50 */
"";
};
/* Verdin I2C_1 */
&main_i2c0 {
status = "okay";
temperature-sensor@4f {
compatible = "ti,tmp1075";
reg = <0x4f>;
};
carrier_eeprom: eeprom@57 {
compatible = "st,24c02", "atmel,24c02";
reg = <0x57>;
pagesize = <16>;
};
};
/* Verdin I2C_4_CSI */
&main_i2c3 {
status = "okay";
ivy_adc1: adc@40 {
compatible = "ti,ads1119";
reg = <0x40>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_7>;
interrupt-parent = <&main_gpio0>;
interrupts = <51 IRQ_TYPE_EDGE_FALLING>;
avdd-supply = <®_3v2_ain1>;
dvdd-supply = <®_3v2_ain1>;
vref-supply = <®_3v2_ain1>;
#address-cells = <1>;
#io-channel-cells = <1>;
#size-cells = <0>;
/* AIN1 0-33V Voltage Input */
channel@0 {
reg = <0>;
diff-channels = <0 1>;
};
/* AIN1 0-20mA Current Input */
channel@1 {
reg = <1>;
diff-channels = <2 3>;
};
};
ivy_adc2: adc@41 {
compatible = "ti,ads1119";
reg = <0x41>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_8>;
interrupt-parent = <&main_gpio0>;
interrupts = <52 IRQ_TYPE_EDGE_FALLING>;
avdd-supply = <®_3v2_ain2>;
dvdd-supply = <®_3v2_ain2>;
vref-supply = <®_3v2_ain2>;
#address-cells = <1>;
#io-channel-cells = <1>;
#size-cells = <0>;
/* AIN2 0-33V Voltage Input */
channel@0 {
reg = <0>;
diff-channels = <0 1>;
};
/* AIN2 0-20mA Current Input */
channel@1 {
reg = <1>;
diff-channels = <2 3>;
};
};
};
/* Verdin CAN_1 */
&main_mcan0 {
status = "okay";
};
/* Verdin SPI_1 */
&main_spi1 {
pinctrl-0 = <&pinctrl_main_spi1>,
<&pinctrl_main_spi1_cs0>,
<&pinctrl_gpio_1>,
<&pinctrl_gpio_4>;
cs-gpios = <0>,
<&mcu_gpio0 1 GPIO_ACTIVE_LOW>,
<&mcu_gpio0 4 GPIO_ACTIVE_LOW>;
status = "okay";
tpm@1 {
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
reg = <1>;
spi-max-frequency = <18500000>;
};
fram@2 {
compatible = "fujitsu,mb85rs256", "atmel,at25";
reg = <2>;
address-width = <16>;
size = <32768>;
spi-max-frequency = <33000000>;
pagesize = <1>;
};
};
/* Verdin UART_3, used as the Linux console */
&main_uart0 {
status = "okay";
};
/* Verdin UART_1 */
&main_uart1 {
status = "okay";
};
&mcu_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_2>,
<&pinctrl_gpio_3>;
gpio-line-names =
"",
"",
"GPIO2", /* Verdin GPIO_2 - SODIMM 208 */
"GPIO3", /* Verdin GPIO_3 - SODIMM 210 */
"",
"",
"",
"",
"",
"",
"", /* 10 */
"",
"",
"",
"",
"",
"",
"",
"",
"",
"", /* 20 */
"",
"",
"";
};
/* Verdin CAN_2 */
&mcu_mcan0 {
status = "okay";
};
/* Verdin SD_1 */
&sdhci1 {
status = "okay";
};
/* Verdin USB_1 */
&usbss0 {
status = "okay";
};
&usb0 {
status = "okay";
};
/* Verdin USB_2 */
&usbss1 {
status = "okay";
};
&usb1 {
status = "okay";
};
/* Verdin PCIE_1_RESET# */
&verdin_pcie_1_reset_hog {
status = "okay";
};
/* Verdin UART_2 */
&wkup_uart0 {
rs485-rts-active-low;
rs485-rx-during-tx;
linux,rs485-enabled-at-boot-time;
status = "okay";
};
|