1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for common parts of Salvator-X board variants
4 *
5 * Copyright (C) 2015-2016 Renesas Electronics Corp.
6 */
7
8/*
9 * SSI-AK4613
10 *
11 * This command is required when Playback/Capture
12 *
13 *	amixer set "DVC Out" 100%
14 *	amixer set "DVC In" 100%
15 *
16 * You can use Mute
17 *
18 *	amixer set "DVC Out Mute" on
19 *	amixer set "DVC In Mute" on
20 *
21 * You can use Volume Ramp
22 *
23 *	amixer set "DVC Out Ramp Up Rate"   "0.125 dB/64 steps"
24 *	amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
25 *	amixer set "DVC Out Ramp" on
26 *	aplay xxx.wav &
27 *	amixer set "DVC Out"  80%  // Volume Down
28 *	amixer set "DVC Out" 100%  // Volume Up
29 */
30
31#include <dt-bindings/gpio/gpio.h>
32#include <dt-bindings/input/input.h>
33
34/ {
35	aliases {
36		serial0 = &scif2;
37		serial1 = &hscif1;
38		ethernet0 = &avb;
39		mmc0 = &sdhi2;
40		mmc1 = &sdhi0;
41		mmc2 = &sdhi3;
42	};
43
44	chosen {
45		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
46		stdout-path = "serial0:115200n8";
47	};
48
49	audio_clkout: audio-clkout {
50		/*
51		 * This is same as <&rcar_sound 0>
52		 * but needed to avoid cs2000/rcar_sound probe dead-lock
53		 */
54		compatible = "fixed-clock";
55		#clock-cells = <0>;
56		clock-frequency = <12288000>;
57	};
58
59	backlight: backlight {
60		compatible = "pwm-backlight";
61		pwms = <&pwm1 0 50000>;
62
63		brightness-levels = <256 128 64 16 8 4 0>;
64		default-brightness-level = <6>;
65
66		power-supply = <&reg_12v>;
67		enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
68	};
69
70	cvbs-in {
71		compatible = "composite-video-connector";
72		label = "CVBS IN";
73
74		port {
75			cvbs_con: endpoint {
76				remote-endpoint = <&adv7482_ain7>;
77			};
78		};
79	};
80
81	hdmi-in {
82		compatible = "hdmi-connector";
83		label = "HDMI IN";
84		type = "a";
85
86		port {
87			hdmi_in_con: endpoint {
88				remote-endpoint = <&adv7482_hdmi>;
89			};
90		};
91	};
92
93	hdmi0-out {
94		compatible = "hdmi-connector";
95		label = "HDMI0 OUT";
96		type = "a";
97
98		port {
99			hdmi0_con: endpoint {
100			};
101		};
102	};
103
104	hdmi1-out {
105		compatible = "hdmi-connector";
106		label = "HDMI1 OUT";
107		type = "a";
108
109		port {
110			hdmi1_con: endpoint {
111			};
112		};
113	};
114
115	keys {
116		compatible = "gpio-keys";
117
118		pinctrl-0 = <&keys_pins>;
119		pinctrl-names = "default";
120
121		key-1 {
122			gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
123			linux,code = <KEY_1>;
124			label = "SW4-1";
125			wakeup-source;
126			debounce-interval = <20>;
127		};
128		key-2 {
129			gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
130			linux,code = <KEY_2>;
131			label = "SW4-2";
132			wakeup-source;
133			debounce-interval = <20>;
134		};
135		key-3 {
136			gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
137			linux,code = <KEY_3>;
138			label = "SW4-3";
139			wakeup-source;
140			debounce-interval = <20>;
141		};
142		key-4 {
143			gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
144			linux,code = <KEY_4>;
145			label = "SW4-4";
146			wakeup-source;
147			debounce-interval = <20>;
148		};
149		key-a {
150			gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
151			linux,code = <KEY_A>;
152			label = "TSW0";
153			wakeup-source;
154			debounce-interval = <20>;
155		};
156		key-b {
157			gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
158			linux,code = <KEY_B>;
159			label = "TSW1";
160			wakeup-source;
161			debounce-interval = <20>;
162		};
163		key-c {
164			gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
165			linux,code = <KEY_C>;
166			label = "TSW2";
167			wakeup-source;
168			debounce-interval = <20>;
169		};
170	};
171
172	reg_1p8v: regulator0 {
173		compatible = "regulator-fixed";
174		regulator-name = "fixed-1.8V";
175		regulator-min-microvolt = <1800000>;
176		regulator-max-microvolt = <1800000>;
177		regulator-boot-on;
178		regulator-always-on;
179	};
180
181	reg_3p3v: regulator1 {
182		compatible = "regulator-fixed";
183		regulator-name = "fixed-3.3V";
184		regulator-min-microvolt = <3300000>;
185		regulator-max-microvolt = <3300000>;
186		regulator-boot-on;
187		regulator-always-on;
188	};
189
190	reg_12v: regulator2 {
191		compatible = "regulator-fixed";
192		regulator-name = "fixed-12V";
193		regulator-min-microvolt = <12000000>;
194		regulator-max-microvolt = <12000000>;
195		regulator-boot-on;
196		regulator-always-on;
197	};
198
199	sound_card: sound {
200		compatible = "audio-graph-card";
201
202		label = "rcar-sound";
203
204		dais = <&rsnd_port0	/* ak4613 */
205			&rsnd_port1	/* HDMI0  */
206#ifdef SOC_HAS_HDMI1
207			&rsnd_port2	/* HDMI1  */
208#endif
209			>;
210	};
211
212	vbus0_usb2: regulator-vbus0-usb2 {
213		compatible = "regulator-fixed";
214
215		regulator-name = "USB20_VBUS0";
216		regulator-min-microvolt = <5000000>;
217		regulator-max-microvolt = <5000000>;
218
219		gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
220		enable-active-high;
221	};
222
223	vcc_sdhi0: regulator-vcc-sdhi0 {
224		compatible = "regulator-fixed";
225
226		regulator-name = "SDHI0 Vcc";
227		regulator-min-microvolt = <3300000>;
228		regulator-max-microvolt = <3300000>;
229
230		gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
231		enable-active-high;
232	};
233
234	vccq_sdhi0: regulator-vccq-sdhi0 {
235		compatible = "regulator-gpio";
236
237		regulator-name = "SDHI0 VccQ";
238		regulator-min-microvolt = <1800000>;
239		regulator-max-microvolt = <3300000>;
240
241		gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
242		gpios-states = <1>;
243		states = <3300000 1>, <1800000 0>;
244	};
245
246	vcc_sdhi3: regulator-vcc-sdhi3 {
247		compatible = "regulator-fixed";
248
249		regulator-name = "SDHI3 Vcc";
250		regulator-min-microvolt = <3300000>;
251		regulator-max-microvolt = <3300000>;
252
253		gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
254		enable-active-high;
255	};
256
257	vccq_sdhi3: regulator-vccq-sdhi3 {
258		compatible = "regulator-gpio";
259
260		regulator-name = "SDHI3 VccQ";
261		regulator-min-microvolt = <1800000>;
262		regulator-max-microvolt = <3300000>;
263
264		gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
265		gpios-states = <1>;
266		states = <3300000 1>, <1800000 0>;
267	};
268
269	vga {
270		compatible = "vga-connector";
271
272		port {
273			vga_in: endpoint {
274				remote-endpoint = <&adv7123_out>;
275			};
276		};
277	};
278
279	vga-encoder {
280		compatible = "adi,adv7123";
281
282		ports {
283			#address-cells = <1>;
284			#size-cells = <0>;
285
286			port@0 {
287				reg = <0>;
288				adv7123_in: endpoint {
289					remote-endpoint = <&du_out_rgb>;
290				};
291			};
292			port@1 {
293				reg = <1>;
294				adv7123_out: endpoint {
295					remote-endpoint = <&vga_in>;
296				};
297			};
298		};
299	};
300
301	x12_clk: x12 {
302		compatible = "fixed-clock";
303		#clock-cells = <0>;
304		clock-frequency = <24576000>;
305	};
306
307	/* External DU dot clocks */
308	x21_clk: x21-clock {
309		compatible = "fixed-clock";
310		#clock-cells = <0>;
311		clock-frequency = <33000000>;
312	};
313
314	x22_clk: x22-clock {
315		compatible = "fixed-clock";
316		#clock-cells = <0>;
317		clock-frequency = <33000000>;
318	};
319
320	x23_clk: x23-clock {
321		compatible = "fixed-clock";
322		#clock-cells = <0>;
323		clock-frequency = <25000000>;
324	};
325};
326
327&a57_0 {
328	cpu-supply = <&dvfs>;
329};
330
331&audio_clk_a {
332	clock-frequency = <22579200>;
333};
334
335&avb {
336	pinctrl-0 = <&avb_pins>;
337	pinctrl-names = "default";
338	phy-handle = <&phy0>;
339	tx-internal-delay-ps = <2000>;
340	status = "okay";
341
342	phy0: ethernet-phy@0 {
343		compatible = "ethernet-phy-id0022.1622",
344			     "ethernet-phy-ieee802.3-c22";
345		rxc-skew-ps = <1500>;
346		reg = <0>;
347		interrupt-parent = <&gpio2>;
348		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
349		reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
350	};
351};
352
353&csi20 {
354	status = "okay";
355
356	ports {
357		port@0 {
358			csi20_in: endpoint {
359				clock-lanes = <0>;
360				data-lanes = <1>;
361				remote-endpoint = <&adv7482_txb>;
362			};
363		};
364	};
365};
366
367&csi40 {
368	status = "okay";
369
370	ports {
371		port@0 {
372			csi40_in: endpoint {
373				clock-lanes = <0>;
374				data-lanes = <1 2 3 4>;
375				remote-endpoint = <&adv7482_txa>;
376			};
377		};
378	};
379};
380
381&du {
382	pinctrl-0 = <&du_pins>;
383	pinctrl-names = "default";
384	status = "okay";
385
386	ports {
387		port@0 {
388			endpoint {
389				remote-endpoint = <&adv7123_in>;
390			};
391		};
392	};
393};
394
395&ehci0 {
396	dr_mode = "otg";
397	status = "okay";
398};
399
400&ehci1 {
401	status = "okay";
402};
403
404&extalr_clk {
405	clock-frequency = <32768>;
406};
407
408&hdmi0 {
409	status = "okay";
410
411	ports {
412		port@1 {
413			reg = <1>;
414			rcar_dw_hdmi0_out: endpoint {
415				remote-endpoint = <&hdmi0_con>;
416			};
417		};
418		port@2 {
419			reg = <2>;
420			dw_hdmi0_snd_in: endpoint {
421				remote-endpoint = <&rsnd_endpoint1>;
422			};
423		};
424	};
425};
426
427&hdmi0_con {
428	remote-endpoint = <&rcar_dw_hdmi0_out>;
429};
430
431#ifdef SOC_HAS_HDMI1
432&hdmi1 {
433	status = "okay";
434
435	ports {
436		port@1 {
437			reg = <1>;
438			rcar_dw_hdmi1_out: endpoint {
439				remote-endpoint = <&hdmi1_con>;
440			};
441		};
442		port@2 {
443			reg = <2>;
444			dw_hdmi1_snd_in: endpoint {
445				remote-endpoint = <&rsnd_endpoint2>;
446			};
447		};
448	};
449};
450
451&hdmi1_con {
452	remote-endpoint = <&rcar_dw_hdmi1_out>;
453};
454#endif /* SOC_HAS_HDMI1 */
455
456&hscif1 {
457	pinctrl-0 = <&hscif1_pins>;
458	pinctrl-names = "default";
459
460	uart-has-rtscts;
461	/* Please only enable hscif1 or scif1 */
462	status = "okay";
463};
464
465&hsusb {
466	dr_mode = "otg";
467	status = "okay";
468};
469
470&i2c2 {
471	pinctrl-0 = <&i2c2_pins>;
472	pinctrl-names = "default";
473
474	status = "okay";
475
476	clock-frequency = <100000>;
477
478	ak4613: codec@10 {
479		compatible = "asahi-kasei,ak4613";
480		#sound-dai-cells = <0>;
481		reg = <0x10>;
482		clocks = <&rcar_sound 3>;
483
484		asahi-kasei,in1-single-end;
485		asahi-kasei,in2-single-end;
486		asahi-kasei,out1-single-end;
487		asahi-kasei,out2-single-end;
488		asahi-kasei,out3-single-end;
489		asahi-kasei,out4-single-end;
490		asahi-kasei,out5-single-end;
491		asahi-kasei,out6-single-end;
492
493		port {
494			ak4613_endpoint: endpoint {
495				remote-endpoint = <&rsnd_endpoint0>;
496			};
497		};
498	};
499
500	cs2000: clk_multiplier@4f {
501		#clock-cells = <0>;
502		compatible = "cirrus,cs2000-cp";
503		reg = <0x4f>;
504		clocks = <&audio_clkout>, <&x12_clk>;
505		clock-names = "clk_in", "ref_clk";
506
507		assigned-clocks = <&cs2000>;
508		assigned-clock-rates = <24576000>; /* 1/1 divide */
509	};
510};
511
512&i2c4 {
513	status = "okay";
514
515	pca9654: gpio@20 {
516		compatible = "onnn,pca9654";
517		reg = <0x20>;
518		gpio-controller;
519		#gpio-cells = <2>;
520	};
521
522	video-receiver@70 {
523		compatible = "adi,adv7482";
524		reg = <0x70 0x71 0x72 0x73 0x74 0x75
525		       0x60 0x61 0x62 0x63 0x64 0x65>;
526		reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
527			    "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
528
529		interrupt-parent = <&gpio6>;
530		interrupt-names = "intrq1", "intrq2";
531		interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
532			     <31 IRQ_TYPE_LEVEL_LOW>;
533
534		ports {
535			#address-cells = <1>;
536			#size-cells = <0>;
537
538			port@7 {
539				reg = <7>;
540
541				adv7482_ain7: endpoint {
542					remote-endpoint = <&cvbs_con>;
543				};
544			};
545
546			port@8 {
547				reg = <8>;
548
549				adv7482_hdmi: endpoint {
550					remote-endpoint = <&hdmi_in_con>;
551				};
552			};
553
554			port@a {
555				reg = <10>;
556
557				adv7482_txa: endpoint {
558					clock-lanes = <0>;
559					data-lanes = <1 2 3 4>;
560					remote-endpoint = <&csi40_in>;
561				};
562			};
563
564			port@b {
565				reg = <11>;
566
567				adv7482_txb: endpoint {
568					clock-lanes = <0>;
569					data-lanes = <1>;
570					remote-endpoint = <&csi20_in>;
571				};
572			};
573		};
574	};
575
576	csa_vdd: adc@7c {
577		compatible = "maxim,max9611";
578		reg = <0x7c>;
579
580		shunt-resistor-micro-ohms = <5000>;
581	};
582
583	csa_dvfs: adc@7f {
584		compatible = "maxim,max9611";
585		reg = <0x7f>;
586
587		shunt-resistor-micro-ohms = <5000>;
588	};
589};
590
591&i2c_dvfs {
592	status = "okay";
593
594	clock-frequency = <400000>;
595
596	pmic: pmic@30 {
597		pinctrl-0 = <&irq0_pins>;
598		pinctrl-names = "default";
599
600		compatible = "rohm,bd9571mwv";
601		reg = <0x30>;
602		interrupt-parent = <&intc_ex>;
603		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
604		interrupt-controller;
605		#interrupt-cells = <2>;
606		gpio-controller;
607		#gpio-cells = <2>;
608		rohm,ddr-backup-power = <0xf>;
609		rohm,rstbmode-level;
610
611		regulators {
612			dvfs: dvfs {
613				regulator-name = "dvfs";
614				regulator-min-microvolt = <750000>;
615				regulator-max-microvolt = <1030000>;
616				regulator-boot-on;
617				regulator-always-on;
618			};
619		};
620	};
621
622	eeprom@50 {
623		compatible = "rohm,br24t01", "atmel,24c01";
624		reg = <0x50>;
625		pagesize = <8>;
626	};
627};
628
629&ohci0 {
630	dr_mode = "otg";
631	status = "okay";
632};
633
634&ohci1 {
635	status = "okay";
636};
637
638&pcie_bus_clk {
639	clock-frequency = <100000000>;
640};
641
642&pciec0 {
643	status = "okay";
644};
645
646&pciec1 {
647	status = "okay";
648};
649
650&pfc {
651	pinctrl-0 = <&scif_clk_pins>;
652	pinctrl-names = "default";
653
654	avb_pins: avb {
655		mux {
656			groups = "avb_link", "avb_mdio", "avb_mii";
657			function = "avb";
658		};
659
660		pins_mdio {
661			groups = "avb_mdio";
662			drive-strength = <24>;
663		};
664
665		pins_mii_tx {
666			pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
667			       "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
668			drive-strength = <12>;
669		};
670	};
671
672	du_pins: du {
673		groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
674		function = "du";
675	};
676
677	hscif1_pins: hscif1 {
678		groups = "hscif1_data_a", "hscif1_ctrl_a";
679		function = "hscif1";
680	};
681
682	i2c2_pins: i2c2 {
683		groups = "i2c2_a";
684		function = "i2c2";
685	};
686
687	irq0_pins: irq0 {
688		groups = "intc_ex_irq0";
689		function = "intc_ex";
690	};
691
692	keys_pins: keys {
693		pins = "GP_5_17", "GP_5_20", "GP_5_22";
694		bias-pull-up;
695	};
696
697	pwm1_pins: pwm1 {
698		groups = "pwm1_a";
699		function = "pwm1";
700	};
701
702	scif1_pins: scif1 {
703		groups = "scif1_data_a", "scif1_ctrl";
704		function = "scif1";
705	};
706
707	scif2_pins: scif2 {
708		groups = "scif2_data_a";
709		function = "scif2";
710	};
711
712	scif_clk_pins: scif_clk {
713		groups = "scif_clk_a";
714		function = "scif_clk";
715	};
716
717	sdhi0_pins: sd0 {
718		groups = "sdhi0_data4", "sdhi0_ctrl";
719		function = "sdhi0";
720		power-source = <3300>;
721	};
722
723	sdhi0_pins_uhs: sd0_uhs {
724		groups = "sdhi0_data4", "sdhi0_ctrl";
725		function = "sdhi0";
726		power-source = <1800>;
727	};
728
729	sdhi2_pins: sd2 {
730		groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
731		function = "sdhi2";
732		power-source = <1800>;
733	};
734
735	sdhi3_pins: sd3 {
736		groups = "sdhi3_data4", "sdhi3_ctrl";
737		function = "sdhi3";
738		power-source = <3300>;
739	};
740
741	sdhi3_pins_uhs: sd3_uhs {
742		groups = "sdhi3_data4", "sdhi3_ctrl";
743		function = "sdhi3";
744		power-source = <1800>;
745	};
746
747	sound_pins: sound {
748		groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
749		function = "ssi";
750	};
751
752	sound_clk_pins: sound_clk {
753		groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
754			 "audio_clkout_a", "audio_clkout3_a";
755		function = "audio_clk";
756	};
757
758	usb0_pins: usb0 {
759		groups = "usb0";
760		function = "usb0";
761	};
762
763	usb1_pins: usb1 {
764		mux {
765			groups = "usb1";
766			function = "usb1";
767		};
768
769		ovc {
770			pins = "GP_6_27";
771			bias-pull-up;
772		};
773
774		pwen {
775			pins = "GP_6_26";
776			bias-pull-down;
777		};
778	};
779
780	usb30_pins: usb30 {
781		groups = "usb30";
782		function = "usb30";
783	};
784};
785
786&pwm1 {
787	pinctrl-0 = <&pwm1_pins>;
788	pinctrl-names = "default";
789
790	status = "okay";
791};
792
793&rcar_sound {
794	pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
795	pinctrl-names = "default";
796
797	/* Single DAI */
798	#sound-dai-cells = <0>;
799
800	/* audio_clkout0/1/2/3 */
801	#clock-cells = <1>;
802	clock-frequency = <12288000 11289600>;
803
804	status = "okay";
805
806	/* update <audio_clk_b> to <cs2000> */
807	clocks = <&cpg CPG_MOD 1005>,
808		 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
809		 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
810		 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
811		 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
812		 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
813		 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
814		 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
815		 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
816		 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
817		 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
818		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
819		 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
820		 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
821		 <&audio_clk_a>, <&cs2000>,
822		 <&audio_clk_c>,
823		 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
824
825	ports {
826		#address-cells = <1>;
827		#size-cells = <0>;
828		rsnd_port0: port@0 {
829			reg = <0>;
830			rsnd_endpoint0: endpoint {
831				remote-endpoint = <&ak4613_endpoint>;
832
833				dai-format = "left_j";
834				bitclock-master = <&rsnd_endpoint0>;
835				frame-master = <&rsnd_endpoint0>;
836
837				playback = <&ssi0>, <&src0>, <&dvc0>;
838				capture  = <&ssi1>, <&src1>, <&dvc1>;
839			};
840		};
841
842		rsnd_port1: port@1 {
843			reg = <1>;
844			rsnd_endpoint1: endpoint {
845				remote-endpoint = <&dw_hdmi0_snd_in>;
846
847				dai-format = "i2s";
848				bitclock-master = <&rsnd_endpoint1>;
849				frame-master = <&rsnd_endpoint1>;
850
851				playback = <&ssi2>;
852			};
853		};
854
855#ifdef SOC_HAS_HDMI1
856		rsnd_port2: port@2 {
857			reg = <2>;
858			rsnd_endpoint2: endpoint {
859				remote-endpoint = <&dw_hdmi1_snd_in>;
860
861				dai-format = "i2s";
862				bitclock-master = <&rsnd_endpoint2>;
863				frame-master = <&rsnd_endpoint2>;
864
865				playback = <&ssi3>;
866			};
867		};
868#endif /* SOC_HAS_HDMI1 */
869	};
870};
871
872&rwdt {
873	timeout-sec = <60>;
874	status = "okay";
875};
876
877#ifdef SOC_HAS_SATA
878&sata {
879	status = "okay";
880};
881#endif /* SOC_HAS_SATA */
882
883&scif1 {
884	pinctrl-0 = <&scif1_pins>;
885	pinctrl-names = "default";
886
887	uart-has-rtscts;
888	/* Please only enable hscif1 or scif1 */
889	/* status = "okay"; */
890};
891
892&scif2 {
893	pinctrl-0 = <&scif2_pins>;
894	pinctrl-names = "default";
895
896	status = "okay";
897};
898
899&scif_clk {
900	clock-frequency = <14745600>;
901};
902
903&sdhi0 {
904	pinctrl-0 = <&sdhi0_pins>;
905	pinctrl-1 = <&sdhi0_pins_uhs>;
906	pinctrl-names = "default", "state_uhs";
907
908	vmmc-supply = <&vcc_sdhi0>;
909	vqmmc-supply = <&vccq_sdhi0>;
910	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
911	wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
912	bus-width = <4>;
913	sd-uhs-sdr50;
914	sd-uhs-sdr104;
915	status = "okay";
916};
917
918&sdhi2 {
919	/* used for on-board 8bit eMMC */
920	pinctrl-0 = <&sdhi2_pins>;
921	pinctrl-1 = <&sdhi2_pins>;
922	pinctrl-names = "default", "state_uhs";
923
924	vmmc-supply = <&reg_3p3v>;
925	vqmmc-supply = <&reg_1p8v>;
926	bus-width = <8>;
927	mmc-hs200-1_8v;
928	mmc-hs400-1_8v;
929	no-sd;
930	no-sdio;
931	non-removable;
932	fixed-emmc-driver-type = <1>;
933	full-pwr-cycle-in-suspend;
934	status = "okay";
935};
936
937&sdhi3 {
938	pinctrl-0 = <&sdhi3_pins>;
939	pinctrl-1 = <&sdhi3_pins_uhs>;
940	pinctrl-names = "default", "state_uhs";
941
942	vmmc-supply = <&vcc_sdhi3>;
943	vqmmc-supply = <&vccq_sdhi3>;
944	cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
945	wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
946	bus-width = <4>;
947	sd-uhs-sdr50;
948	sd-uhs-sdr104;
949	status = "okay";
950};
951
952&ssi1 {
953	shared-pin;
954};
955
956&usb_extal_clk {
957	clock-frequency = <50000000>;
958};
959
960&usb2_phy0 {
961	pinctrl-0 = <&usb0_pins>;
962	pinctrl-names = "default";
963
964	vbus-supply = <&vbus0_usb2>;
965	status = "okay";
966};
967
968&usb2_phy1 {
969	pinctrl-0 = <&usb1_pins>;
970	pinctrl-names = "default";
971
972	status = "okay";
973};
974
975&usb3_peri0 {
976	phys = <&usb3_phy0>;
977	phy-names = "usb";
978
979	companion = <&xhci0>;
980
981	status = "okay";
982};
983
984&usb3_phy0 {
985	status = "okay";
986};
987
988&usb3s0_clk {
989	clock-frequency = <100000000>;
990};
991
992&vin0 {
993	status = "okay";
994};
995
996&vin1 {
997	status = "okay";
998};
999
1000&vin2 {
1001	status = "okay";
1002};
1003
1004&vin3 {
1005	status = "okay";
1006};
1007
1008&vin4 {
1009	status = "okay";
1010};
1011
1012&vin5 {
1013	status = "okay";
1014};
1015
1016&vin6 {
1017	status = "okay";
1018};
1019
1020&vin7 {
1021	status = "okay";
1022};
1023
1024&xhci0 {
1025	pinctrl-0 = <&usb30_pins>;
1026	pinctrl-names = "default";
1027
1028	status = "okay";
1029};
1030
1031#ifdef SOC_HAS_USB2_CH2
1032&ehci2 {
1033	status = "okay";
1034};
1035
1036&ohci2 {
1037	status = "okay";
1038};
1039
1040&pfc {
1041	usb2_pins: usb2 {
1042		groups = "usb2";
1043		function = "usb2";
1044	};
1045};
1046
1047&usb2_phy2 {
1048	pinctrl-0 = <&usb2_pins>;
1049	pinctrl-names = "default";
1050
1051	status = "okay";
1052};
1053#endif /* SOC_HAS_USB2_CH2 */
1054