1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2023 Theobroma Systems Design und Consulting GmbH
4 */
5
6/dts-v1/;
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/input/input.h>
9#include <dt-bindings/leds/common.h>
10#include <dt-bindings/pinctrl/rockchip.h>
11#include <dt-bindings/usb/pd.h>
12#include "rk3588.dtsi"
13
14/ {
15	model = "Theobroma Systems RK3588-SBC Jaguar";
16	compatible = "tsd,rk3588-jaguar", "rockchip,rk3588";
17
18	adc-keys {
19		compatible = "adc-keys";
20		io-channels = <&saradc 0>;
21		io-channel-names = "buttons";
22		keyup-threshold-microvolt = <1800000>;
23		poll-interval = <100>;
24
25		/* Can be controlled through SW2 but also GPIO1 on CP2102 on P20 */
26		button-bios-disable {
27			label = "BIOS_DISABLE";
28			linux,code = <KEY_VENDOR>;
29			press-threshold-microvolt = <0>;
30		};
31	};
32
33	aliases {
34		ethernet0 = &gmac0;
35		mmc0 = &sdhci;
36		mmc1 = &sdmmc;
37		rtc0 = &rtc_twi;
38	};
39
40	chosen {
41		stdout-path = "serial2:115200n8";
42	};
43
44	/* DCIN is 12-24V but standard is 12V */
45	dc_12v: dc-12v-regulator {
46		compatible = "regulator-fixed";
47		regulator-name = "dc_12v";
48		regulator-always-on;
49		regulator-boot-on;
50		regulator-min-microvolt = <12000000>;
51		regulator-max-microvolt = <12000000>;
52	};
53
54	emmc_pwrseq: emmc-pwrseq {
55		compatible = "mmc-pwrseq-emmc";
56		pinctrl-0 = <&emmc_reset>;
57		pinctrl-names = "default";
58		reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
59	};
60
61	leds {
62		compatible = "gpio-leds";
63		pinctrl-names = "default";
64		pinctrl-0 = <&led1_pin>;
65		status = "okay";
66
67		/* LED1 on PCB */
68		led-1 {
69			gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
70			function = LED_FUNCTION_HEARTBEAT;
71			linux,default-trigger = "heartbeat";
72			color = <LED_COLOR_ID_AMBER>;
73		};
74	};
75
76	pps {
77		compatible = "pps-gpio";
78		gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
79	};
80
81	vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator {
82		compatible = "regulator-fixed";
83		regulator-name = "vcc_1v1_nldo_s3";
84		regulator-always-on;
85		regulator-boot-on;
86		regulator-min-microvolt = <1100000>;
87		regulator-max-microvolt = <1100000>;
88		vin-supply = <&vcc5v0_sys>;
89	};
90
91	vcc_1v2_s3: vcc-1v2-s3-regulator {
92		compatible = "regulator-fixed";
93		regulator-name = "vcc_1v2_s3";
94		regulator-always-on;
95		regulator-boot-on;
96		regulator-min-microvolt = <1200000>;
97		regulator-max-microvolt = <1200000>;
98		vin-supply = <&vcc5v0_sys>;
99	};
100
101	/* Exposed on P14 and P15 */
102	vcc_2v8_s3: vcc-2v8-s3-regulator {
103		compatible = "regulator-fixed";
104		regulator-name = "vcc_2v8_s3";
105		regulator-always-on;
106		regulator-boot-on;
107		regulator-min-microvolt = <2800000>;
108		regulator-max-microvolt = <2800000>;
109		vin-supply = <&vcc_3v3_s3>;
110	};
111
112	vcc_5v0_usb_a: vcc-5v0-usb-a-regulator {
113		compatible = "regulator-fixed";
114		regulator-name = "usb_a_vcc";
115		regulator-min-microvolt = <5000000>;
116		regulator-max-microvolt = <5000000>;
117		vin-supply = <&vcc5v0_sys>;
118		gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
119		enable-active-high;
120	};
121
122	vcc_5v0_usb_c1: vcc-5v0-usb-c1-regulator {
123		compatible = "regulator-fixed";
124		regulator-name = "5v_usbc1";
125		regulator-min-microvolt = <5000000>;
126		regulator-max-microvolt = <5000000>;
127		vin-supply = <&vcc5v0_usb>;
128		gpio = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
129		enable-active-high;
130	};
131
132	vcc_5v0_usb_c2: vcc-5v0-usb-c2-regulator {
133		compatible = "regulator-fixed";
134		regulator-name = "5v_usbc2";
135		regulator-min-microvolt = <5000000>;
136		regulator-max-microvolt = <5000000>;
137		vin-supply = <&vcc5v0_usb>;
138		gpio = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
139		enable-active-high;
140	};
141
142	vcc3v3_mdot2: vcc3v3-mdot2-regulator {
143		compatible = "regulator-fixed";
144		regulator-name = "vcc3v3_mdot2";
145		regulator-always-on;
146		regulator-boot-on;
147		regulator-min-microvolt = <3300000>;
148		regulator-max-microvolt = <3300000>;
149		vin-supply = <&dc_12v>;
150	};
151
152	vcc5v0_sys: vcc5v0-sys-regulator {
153		compatible = "regulator-fixed";
154		regulator-name = "vcc5v0_sys";
155		regulator-always-on;
156		regulator-boot-on;
157		regulator-min-microvolt = <5000000>;
158		regulator-max-microvolt = <5000000>;
159		vin-supply = <&dc_12v>;
160	};
161
162	vcc5v0_usb: vcc5v0-usb-regulator {
163		compatible = "regulator-fixed";
164		regulator-name = "vcc5v0_usb";
165		regulator-always-on;
166		regulator-boot-on;
167		regulator-min-microvolt = <5000000>;
168		regulator-max-microvolt = <5000000>;
169		vin-supply = <&vcc5v0_sys>;
170	};
171};
172
173&combphy1_ps {
174	status = "okay";
175};
176
177&cpu_b0 {
178	cpu-supply = <&vdd_cpu_big0_s0>;
179};
180
181&cpu_b1 {
182	cpu-supply = <&vdd_cpu_big0_s0>;
183};
184
185&cpu_b2 {
186	cpu-supply = <&vdd_cpu_big1_s0>;
187};
188
189&cpu_b3 {
190	cpu-supply = <&vdd_cpu_big1_s0>;
191};
192
193&cpu_l0 {
194	cpu-supply = <&vdd_cpu_lit_s0>;
195};
196
197&cpu_l1 {
198	cpu-supply = <&vdd_cpu_lit_s0>;
199};
200
201&cpu_l2 {
202	cpu-supply = <&vdd_cpu_lit_s0>;
203};
204
205&cpu_l3 {
206	cpu-supply = <&vdd_cpu_lit_s0>;
207};
208
209&gmac0 {
210	clock_in_out = "output";
211	phy-handle = <&rgmii_phy>;
212	phy-mode = "rgmii";
213	phy-supply = <&vcc_1v2_s3>;
214	pinctrl-names = "default";
215	pinctrl-0 = <&gmac0_miim
216		     &gmac0_rx_bus2
217		     &gmac0_tx_bus2
218		     &gmac0_rgmii_clk
219		     &gmac0_rgmii_bus
220		     &eth0_pins
221		     &eth_reset>;
222	tx_delay = <0x10>;
223	rx_delay = <0x10>;
224	snps,reset-gpio = <&gpio4 RK_PC3 GPIO_ACTIVE_LOW>;
225	snps,reset-active-low;
226	snps,reset-delays-us = <0 10000 100000>;
227
228	status = "okay";
229};
230
231&gpio1 {
232	mdot2e-w-disable1-n-hog {
233		gpios = <RK_PB1 GPIO_ACTIVE_LOW>;
234		output-low;
235		line-name = "m.2 E-key W_DISABLE1#";
236		gpio-hog;
237	};
238};
239
240&gpio4 {
241	mdot2e-w-disable2-n-hog {
242		gpios = <RK_PC1 GPIO_ACTIVE_LOW>;
243		output-low;
244		line-name = "m.2 E-key W_DISABLE2#";
245		gpio-hog;
246	};
247};
248
249&i2c0 {
250	pinctrl-0 = <&i2c0m2_xfer>;
251	status = "okay";
252
253	fan@18 {
254		compatible = "ti,amc6821";
255		reg = <0x18>;
256	};
257
258	vdd_npu_s0: regulator@42 {
259		compatible = "rockchip,rk8602";
260		reg = <0x42>;
261		fcs,suspend-voltage-selector = <1>;
262		regulator-name = "vdd_npu_s0";
263		regulator-always-on;
264		regulator-boot-on;
265		regulator-min-microvolt = <550000>;
266		regulator-max-microvolt = <950000>;
267		regulator-ramp-delay = <2300>;
268		vin-supply = <&vcc5v0_sys>;
269
270		regulator-state-mem {
271			regulator-off-in-suspend;
272		};
273	};
274
275	vdd_cpu_big1_s0: regulator@43 {
276		compatible = "rockchip,rk8603", "rockchip,rk8602";
277		reg = <0x43>;
278		fcs,suspend-voltage-selector = <1>;
279		regulator-name = "vdd_cpu_big1_s0";
280		regulator-always-on;
281		regulator-boot-on;
282		regulator-min-microvolt = <550000>;
283		regulator-max-microvolt = <1050000>;
284		regulator-ramp-delay = <2300>;
285		vin-supply = <&vcc5v0_sys>;
286
287		regulator-state-mem {
288			regulator-off-in-suspend;
289		};
290	};
291
292	rtc_twi: rtc@6f {
293		compatible = "isil,isl1208";
294		reg = <0x6f>;
295	};
296};
297
298&i2c1 {
299	pinctrl-0 = <&i2c1m4_xfer>;
300};
301
302&i2c6 {
303	pinctrl-0 = <&i2c6m4_xfer>;
304};
305
306&i2c7 {
307	status = "okay";
308
309	/* SE050 Secure Element at 0x48; GPIO1_A4 for enable pin */
310
311	/* Also on 0x55 */
312	eeprom@54 {
313		compatible = "st,24c04", "atmel,24c04";
314		reg = <0x54>;
315		pagesize = <16>;
316		vcc-supply = <&vcc_3v3_s3>;
317	};
318};
319
320&i2c8 {
321	pinctrl-0 = <&i2c8m2_xfer>;
322	status = "okay";
323
324	vdd_cpu_big0_s0: regulator@42 {
325		compatible = "rockchip,rk8602";
326		reg = <0x42>;
327		fcs,suspend-voltage-selector = <1>;
328		regulator-name = "vdd_cpu_big0_s0";
329		regulator-always-on;
330		regulator-boot-on;
331		regulator-min-microvolt = <550000>;
332		regulator-max-microvolt = <1050000>;
333		regulator-ramp-delay = <2300>;
334		vin-supply = <&vcc5v0_sys>;
335
336		regulator-state-mem {
337			regulator-off-in-suspend;
338		};
339	};
340};
341
342&mdio0 {
343	rgmii_phy: ethernet-phy@6 {
344		/* KSZ9031 or KSZ9131 */
345		compatible = "ethernet-phy-ieee802.3-c22";
346		reg = <0x6>;
347		clocks = <&cru REFCLKO25M_ETH0_OUT>;
348	};
349};
350
351&pcie2x1l0 {
352	reset-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; /* WIFI_PERST0# */
353	vpcie3v3-supply = <&vcc3v3_mdot2>;
354	status = "okay";
355};
356
357&pinctrl {
358	emmc {
359		emmc_reset: emmc-reset {
360			rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
361		};
362	};
363
364	ethernet {
365		eth_reset: eth-reset {
366			rockchip,pins = <4 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>;
367		};
368	};
369
370	leds {
371		led1_pin: led1-pin {
372			rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
373		};
374	};
375};
376
377&saradc {
378	vref-supply = <&vcc_1v8_s0>;
379	status = "okay";
380};
381
382&sdhci {
383	bus-width = <8>;
384	cap-mmc-highspeed;
385	mmc-ddr-1_8v;
386	mmc-hs200-1_8v;
387	mmc-hs400-1_8v;
388	mmc-hs400-enhanced-strobe;
389	mmc-pwrseq = <&emmc_pwrseq>;
390	no-sdio;
391	no-sd;
392	non-removable;
393	pinctrl-names = "default";
394	pinctrl-0 = <&emmc_bus8 &emmc_cmd &emmc_clk &emmc_data_strobe>;
395	supports-cqe;
396	vmmc-supply = <&vcc_3v3_s3>;
397	vqmmc-supply = <&vcc_1v8_s3>;
398	status = "okay";
399};
400
401&sdmmc {
402	broken-cd;
403	bus-width = <4>;
404	cap-sd-highspeed;
405	disable-wp;
406	max-frequency = <150000000>;
407	pinctrl-names = "default";
408	pinctrl-0 = <&sdmmc_bus4 &sdmmc_cmd &sdmmc_clk>;
409	sd-uhs-sdr12;
410	sd-uhs-sdr25;
411	sd-uhs-sdr50;
412	sd-uhs-ddr50;
413	sd-uhs-sdr104;
414	vmmc-supply = <&vcc_3v3_s3>;
415	vqmmc-supply = <&vccio_sd_s0>;
416	status = "okay";
417};
418
419&spi2 {
420	assigned-clocks = <&cru CLK_SPI2>;
421	assigned-clock-rates = <200000000>;
422	num-cs = <1>;
423	pinctrl-names = "default";
424	pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>;
425	status = "okay";
426
427	pmic@0 {
428		compatible = "rockchip,rk806";
429		reg = <0x0>;
430		interrupt-parent = <&gpio0>;
431		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
432		gpio-controller;
433		#gpio-cells = <2>;
434		pinctrl-names = "default";
435		pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>,
436			    <&rk806_dvs2_null>, <&rk806_dvs3_null>;
437		spi-max-frequency = <1000000>;
438		system-power-controller;
439		vcc1-supply = <&vcc5v0_sys>;
440		vcc2-supply = <&vcc5v0_sys>;
441		vcc3-supply = <&vcc5v0_sys>;
442		vcc4-supply = <&vcc5v0_sys>;
443		vcc5-supply = <&vcc5v0_sys>;
444		vcc6-supply = <&vcc5v0_sys>;
445		vcc7-supply = <&vcc5v0_sys>;
446		vcc8-supply = <&vcc5v0_sys>;
447		vcc9-supply = <&vcc5v0_sys>;
448		vcc10-supply = <&vcc5v0_sys>;
449		vcc11-supply = <&vcc_2v0_pldo_s3>;
450		vcc12-supply = <&vcc5v0_sys>;
451		vcc13-supply = <&vcc_1v1_nldo_s3>;
452		vcc14-supply = <&vcc_1v1_nldo_s3>;
453		vcca-supply = <&vcc5v0_sys>;
454
455		rk806_dvs1_null: dvs1-null-pins {
456			pins = "gpio_pwrctrl2";
457			function = "pin_fun0";
458		};
459
460		rk806_dvs2_null: dvs2-null-pins {
461			pins = "gpio_pwrctrl2";
462			function = "pin_fun0";
463		};
464
465		rk806_dvs3_null: dvs3-null-pins {
466			pins = "gpio_pwrctrl3";
467			function = "pin_fun0";
468		};
469
470		regulators {
471			vdd_gpu_s0: dcdc-reg1 {
472				regulator-boot-on;
473				regulator-min-microvolt = <550000>;
474				regulator-max-microvolt = <950000>;
475				regulator-ramp-delay = <12500>;
476				regulator-name = "vdd_gpu_s0";
477				regulator-enable-ramp-delay = <400>;
478
479				regulator-state-mem {
480					regulator-off-in-suspend;
481				};
482			};
483
484			vdd_cpu_lit_s0: dcdc-reg2 {
485				regulator-name = "vdd_cpu_lit_s0";
486				regulator-always-on;
487				regulator-boot-on;
488				regulator-min-microvolt = <550000>;
489				regulator-max-microvolt = <950000>;
490				regulator-ramp-delay = <12500>;
491
492				regulator-state-mem {
493					regulator-off-in-suspend;
494				};
495			};
496
497			vdd_log_s0: dcdc-reg3 {
498				regulator-name = "vdd_log_s0";
499				regulator-always-on;
500				regulator-boot-on;
501				regulator-min-microvolt = <675000>;
502				regulator-max-microvolt = <750000>;
503				regulator-ramp-delay = <12500>;
504
505				regulator-state-mem {
506					regulator-off-in-suspend;
507					regulator-suspend-microvolt = <750000>;
508				};
509			};
510
511			vdd_vdenc_s0: dcdc-reg4 {
512				regulator-name = "vdd_vdenc_s0";
513				regulator-always-on;
514				regulator-boot-on;
515				regulator-min-microvolt = <550000>;
516				regulator-max-microvolt = <950000>;
517				regulator-ramp-delay = <12500>;
518
519				regulator-state-mem {
520					regulator-off-in-suspend;
521				};
522			};
523
524			vdd_ddr_s0: dcdc-reg5 {
525				regulator-name = "vdd_ddr_s0";
526				regulator-always-on;
527				regulator-boot-on;
528				regulator-min-microvolt = <675000>;
529				regulator-max-microvolt = <900000>;
530				regulator-ramp-delay = <12500>;
531
532				regulator-state-mem {
533					regulator-off-in-suspend;
534					regulator-suspend-microvolt = <850000>;
535				};
536			};
537
538			vdd2_ddr_s3: dcdc-reg6 {
539				regulator-name = "vdd2_ddr_s3";
540				regulator-always-on;
541				regulator-boot-on;
542
543				regulator-state-mem {
544					regulator-on-in-suspend;
545				};
546			};
547
548			vcc_2v0_pldo_s3: dcdc-reg7 {
549				regulator-name = "vdd_2v0_pldo_s3";
550				regulator-always-on;
551				regulator-boot-on;
552				regulator-min-microvolt = <2000000>;
553				regulator-max-microvolt = <2000000>;
554				regulator-ramp-delay = <12500>;
555
556				regulator-state-mem {
557					regulator-on-in-suspend;
558					regulator-suspend-microvolt = <2000000>;
559				};
560			};
561
562			vcc_3v3_s3: dcdc-reg8 {
563				regulator-name = "vcc_3v3_s3";
564				regulator-always-on;
565				regulator-boot-on;
566				regulator-min-microvolt = <3300000>;
567				regulator-max-microvolt = <3300000>;
568
569				regulator-state-mem {
570					regulator-on-in-suspend;
571					regulator-suspend-microvolt = <3300000>;
572				};
573			};
574
575			vddq_ddr_s0: dcdc-reg9 {
576				regulator-name = "vddq_ddr_s0";
577				regulator-always-on;
578				regulator-boot-on;
579
580				regulator-state-mem {
581					regulator-off-in-suspend;
582				};
583			};
584
585			vcc_1v8_s3: dcdc-reg10 {
586				regulator-name = "vcc_1v8_s3";
587				regulator-always-on;
588				regulator-boot-on;
589				regulator-min-microvolt = <1800000>;
590				regulator-max-microvolt = <1800000>;
591
592				regulator-state-mem {
593					regulator-on-in-suspend;
594					regulator-suspend-microvolt = <1800000>;
595				};
596			};
597
598			vcca_1v8_s0: pldo-reg1 {
599				regulator-name = "vcca_1v8_s0";
600				regulator-always-on;
601				regulator-boot-on;
602				regulator-min-microvolt = <1800000>;
603				regulator-max-microvolt = <1800000>;
604
605				regulator-state-mem {
606					regulator-off-in-suspend;
607				};
608			};
609
610			vcc_1v8_s0: pldo-reg2 {
611				regulator-name = "vcc_1v8_s0";
612				regulator-always-on;
613				regulator-boot-on;
614				regulator-min-microvolt = <1800000>;
615				regulator-max-microvolt = <1800000>;
616
617				regulator-state-mem {
618					regulator-off-in-suspend;
619					regulator-suspend-microvolt = <1800000>;
620				};
621			};
622
623			vdda_1v2_s0: pldo-reg3 {
624				regulator-name = "vdda_1v2_s0";
625				regulator-always-on;
626				regulator-boot-on;
627				regulator-min-microvolt = <1200000>;
628				regulator-max-microvolt = <1200000>;
629
630				regulator-state-mem {
631					regulator-off-in-suspend;
632				};
633			};
634
635			vcca_3v3_s0: pldo-reg4 {
636				regulator-name = "vcca_3v3_s0";
637				regulator-always-on;
638				regulator-boot-on;
639				regulator-min-microvolt = <3300000>;
640				regulator-max-microvolt = <3300000>;
641				regulator-ramp-delay = <12500>;
642
643				regulator-state-mem {
644					regulator-off-in-suspend;
645				};
646			};
647
648			vccio_sd_s0: pldo-reg5 {
649				regulator-name = "vccio_sd_s0";
650				regulator-always-on;
651				regulator-boot-on;
652				regulator-min-microvolt = <1800000>;
653				regulator-max-microvolt = <3300000>;
654				regulator-ramp-delay = <12500>;
655
656				regulator-state-mem {
657					regulator-off-in-suspend;
658				};
659			};
660
661			pldo6_s3: pldo-reg6 {
662				regulator-name = "pldo6_s3";
663				regulator-always-on;
664				regulator-boot-on;
665				regulator-min-microvolt = <1800000>;
666				regulator-max-microvolt = <1800000>;
667
668				regulator-state-mem {
669					regulator-on-in-suspend;
670					regulator-suspend-microvolt = <1800000>;
671				};
672			};
673
674			vdd_0v75_s3: nldo-reg1 {
675				regulator-name = "vdd_0v75_s3";
676				regulator-always-on;
677				regulator-boot-on;
678				regulator-min-microvolt = <750000>;
679				regulator-max-microvolt = <750000>;
680
681				regulator-state-mem {
682					regulator-on-in-suspend;
683					regulator-suspend-microvolt = <750000>;
684				};
685			};
686
687			vdda_ddr_pll_s0: nldo-reg2 {
688				regulator-name = "vdda_ddr_pll_s0";
689				regulator-always-on;
690				regulator-boot-on;
691				regulator-min-microvolt = <850000>;
692				regulator-max-microvolt = <850000>;
693
694				regulator-state-mem {
695					regulator-off-in-suspend;
696					regulator-suspend-microvolt = <850000>;
697				};
698			};
699
700			vdda_0v75_s0: nldo-reg3 {
701				regulator-name = "vdda_0v75_s0";
702				regulator-always-on;
703				regulator-boot-on;
704				regulator-min-microvolt = <750000>;
705				regulator-max-microvolt = <750000>;
706
707				regulator-state-mem {
708					regulator-off-in-suspend;
709				};
710			};
711
712			vdda_0v85_s0: nldo-reg4 {
713				regulator-name = "vdda_0v85_s0";
714				regulator-always-on;
715				regulator-boot-on;
716				regulator-min-microvolt = <850000>;
717				regulator-max-microvolt = <850000>;
718
719				regulator-state-mem {
720					regulator-off-in-suspend;
721				};
722			};
723
724			vdd_0v75_s0: nldo-reg5 {
725				regulator-name = "vdd_0v75_s0";
726				regulator-always-on;
727				regulator-boot-on;
728				regulator-min-microvolt = <750000>;
729				regulator-max-microvolt = <750000>;
730
731				regulator-state-mem {
732					regulator-off-in-suspend;
733				};
734			};
735		};
736	};
737};
738
739&tsadc {
740	status = "okay";
741};
742
743&u2phy2 {
744	status = "okay";
745};
746
747&u2phy2_host {
748	phy-supply = <&vcc_5v0_usb_a>;
749	status = "okay";
750};
751
752&u2phy3 {
753	status = "okay";
754};
755
756&u2phy3_host {
757	status = "okay";
758};
759
760/* Mule-ATtiny debug UART; typically baudrate 9600 */
761&uart0 {
762	pinctrl-0 = <&uart0m0_xfer>;
763	status = "okay";
764};
765
766/* Main debug interface on P20 micro-USB B port and P21 header */
767&uart2 {
768	pinctrl-0 = <&uart2m0_xfer>;
769	status = "okay";
770};
771
772/* RS485 on P19 */
773&uart3 {
774	pinctrl-0 = <&uart3m2_xfer &uart3_rtsn>;
775	linux,rs485-enabled-at-boot-time;
776	status = "okay";
777};
778
779/* Mule-ATtiny UPDI flashing UART */
780&uart7 {
781	pinctrl-0 = <&uart7m0_xfer>;
782	status = "okay";
783};
784
785/* host0 on P10 USB-A */
786&usb_host0_ehci {
787	status = "okay";
788};
789
790/* host0 on P10 USB-A */
791&usb_host0_ohci {
792	status = "okay";
793};
794
795/* host1 on M.2 E-key */
796&usb_host1_ehci {
797	status = "okay";
798};
799
800/* host1 on M.2 E-key */
801&usb_host1_ohci {
802	status = "okay";
803};
804