1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for common parts of Salvator-X board variants
5 * Copyright (C) 2015-2016 Renesas Electronics Corp.
11 * This command is required when Playback/Capture
13 * amixer set "DVC Out" 100%
14 * amixer set "DVC In" 100%
18 * amixer set "DVC Out Mute" on
19 * amixer set "DVC In Mute" on
21 * You can use Volume Ramp
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
27 * amixer set "DVC Out" 80% // Volume Down
28 * amixer set "DVC Out" 100% // Volume Up
31 #include <dt-bindings/gpio/gpio.h>
32 #include <dt-bindings/input/input.h>
45 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
46 stdout-path = "serial0:115200n8";
49 audio_clkout: audio-clkout {
51 * This is same as <&rcar_sound 0>
52 * but needed to avoid cs2000/rcar_sound probe dead-lock
54 compatible = "fixed-clock";
56 clock-frequency = <12288000>;
59 backlight: backlight {
60 compatible = "pwm-backlight";
61 pwms = <&pwm1 0 50000>;
63 brightness-levels = <256 128 64 16 8 4 0>;
64 default-brightness-level = <6>;
66 power-supply = <®_12v>;
67 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
71 compatible = "composite-video-connector";
76 remote-endpoint = <&adv7482_ain7>;
82 compatible = "hdmi-connector";
87 hdmi_in_con: endpoint {
88 remote-endpoint = <&adv7482_hdmi>;
94 compatible = "hdmi-connector";
105 compatible = "hdmi-connector";
110 hdmi1_con: endpoint {
116 compatible = "gpio-keys";
118 pinctrl-0 = <&keys_pins>;
119 pinctrl-names = "default";
122 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_1>;
126 debounce-interval = <20>;
129 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_2>;
133 debounce-interval = <20>;
136 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
137 linux,code = <KEY_3>;
140 debounce-interval = <20>;
143 gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_4>;
147 debounce-interval = <20>;
150 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
151 linux,code = <KEY_A>;
154 debounce-interval = <20>;
157 gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
158 linux,code = <KEY_B>;
161 debounce-interval = <20>;
164 gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
165 linux,code = <KEY_C>;
168 debounce-interval = <20>;
172 reg_1p8v: regulator0 {
173 compatible = "regulator-fixed";
174 regulator-name = "fixed-1.8V";
175 regulator-min-microvolt = <1800000>;
176 regulator-max-microvolt = <1800000>;
181 reg_3p3v: regulator1 {
182 compatible = "regulator-fixed";
183 regulator-name = "fixed-3.3V";
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
190 reg_12v: regulator2 {
191 compatible = "regulator-fixed";
192 regulator-name = "fixed-12V";
193 regulator-min-microvolt = <12000000>;
194 regulator-max-microvolt = <12000000>;
200 compatible = "audio-graph-card";
202 label = "rcar-sound";
204 dais = <&rsnd_port0 /* ak4613 */
205 &rsnd_port1 /* HDMI0 */
207 &rsnd_port2 /* HDMI1 */
212 vbus0_usb2: regulator-vbus0-usb2 {
213 compatible = "regulator-fixed";
215 regulator-name = "USB20_VBUS0";
216 regulator-min-microvolt = <5000000>;
217 regulator-max-microvolt = <5000000>;
219 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
223 vcc_sdhi0: regulator-vcc-sdhi0 {
224 compatible = "regulator-fixed";
226 regulator-name = "SDHI0 Vcc";
227 regulator-min-microvolt = <3300000>;
228 regulator-max-microvolt = <3300000>;
230 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
234 vccq_sdhi0: regulator-vccq-sdhi0 {
235 compatible = "regulator-gpio";
237 regulator-name = "SDHI0 VccQ";
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <3300000>;
241 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
243 states = <3300000 1>, <1800000 0>;
246 vcc_sdhi3: regulator-vcc-sdhi3 {
247 compatible = "regulator-fixed";
249 regulator-name = "SDHI3 Vcc";
250 regulator-min-microvolt = <3300000>;
251 regulator-max-microvolt = <3300000>;
253 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
257 vccq_sdhi3: regulator-vccq-sdhi3 {
258 compatible = "regulator-gpio";
260 regulator-name = "SDHI3 VccQ";
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <3300000>;
264 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
266 states = <3300000 1>, <1800000 0>;
270 compatible = "vga-connector";
274 remote-endpoint = <&adv7123_out>;
280 compatible = "adi,adv7123";
283 #address-cells = <1>;
288 adv7123_in: endpoint {
289 remote-endpoint = <&du_out_rgb>;
294 adv7123_out: endpoint {
295 remote-endpoint = <&vga_in>;
302 compatible = "fixed-clock";
304 clock-frequency = <24576000>;
307 /* External DU dot clocks */
309 compatible = "fixed-clock";
311 clock-frequency = <33000000>;
315 compatible = "fixed-clock";
317 clock-frequency = <33000000>;
321 compatible = "fixed-clock";
323 clock-frequency = <25000000>;
328 cpu-supply = <&dvfs>;
332 clock-frequency = <22579200>;
336 pinctrl-0 = <&avb_pins>;
337 pinctrl-names = "default";
338 phy-handle = <&phy0>;
339 tx-internal-delay-ps = <2000>;
342 phy0: ethernet-phy@0 {
343 rxc-skew-ps = <1500>;
345 interrupt-parent = <&gpio2>;
346 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
347 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
359 remote-endpoint = <&adv7482_txb>;
372 data-lanes = <1 2 3 4>;
373 remote-endpoint = <&adv7482_txa>;
380 pinctrl-0 = <&du_pins>;
381 pinctrl-names = "default";
387 remote-endpoint = <&adv7123_in>;
403 clock-frequency = <32768>;
412 rcar_dw_hdmi0_out: endpoint {
413 remote-endpoint = <&hdmi0_con>;
418 dw_hdmi0_snd_in: endpoint {
419 remote-endpoint = <&rsnd_endpoint1>;
426 remote-endpoint = <&rcar_dw_hdmi0_out>;
436 rcar_dw_hdmi1_out: endpoint {
437 remote-endpoint = <&hdmi1_con>;
442 dw_hdmi1_snd_in: endpoint {
443 remote-endpoint = <&rsnd_endpoint2>;
450 remote-endpoint = <&rcar_dw_hdmi1_out>;
452 #endif /* SOC_HAS_HDMI1 */
455 pinctrl-0 = <&hscif1_pins>;
456 pinctrl-names = "default";
459 /* Please only enable hscif1 or scif1 */
469 pinctrl-0 = <&i2c2_pins>;
470 pinctrl-names = "default";
474 clock-frequency = <100000>;
477 compatible = "asahi-kasei,ak4613";
478 #sound-dai-cells = <0>;
480 clocks = <&rcar_sound 3>;
482 asahi-kasei,in1-single-end;
483 asahi-kasei,in2-single-end;
484 asahi-kasei,out1-single-end;
485 asahi-kasei,out2-single-end;
486 asahi-kasei,out3-single-end;
487 asahi-kasei,out4-single-end;
488 asahi-kasei,out5-single-end;
489 asahi-kasei,out6-single-end;
492 ak4613_endpoint: endpoint {
493 remote-endpoint = <&rsnd_endpoint0>;
498 cs2000: clk_multiplier@4f {
500 compatible = "cirrus,cs2000-cp";
502 clocks = <&audio_clkout>, <&x12_clk>;
503 clock-names = "clk_in", "ref_clk";
505 assigned-clocks = <&cs2000>;
506 assigned-clock-rates = <24576000>; /* 1/1 divide */
514 compatible = "onnn,pca9654";
521 compatible = "adi,adv7482";
522 reg = <0x70 0x71 0x72 0x73 0x74 0x75
523 0x60 0x61 0x62 0x63 0x64 0x65>;
524 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
525 "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
527 #address-cells = <1>;
530 interrupt-parent = <&gpio6>;
531 interrupt-names = "intrq1", "intrq2";
532 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
533 <31 IRQ_TYPE_LEVEL_LOW>;
538 adv7482_ain7: endpoint {
539 remote-endpoint = <&cvbs_con>;
546 adv7482_hdmi: endpoint {
547 remote-endpoint = <&hdmi_in_con>;
554 adv7482_txa: endpoint {
556 data-lanes = <1 2 3 4>;
557 remote-endpoint = <&csi40_in>;
564 adv7482_txb: endpoint {
567 remote-endpoint = <&csi20_in>;
573 compatible = "maxim,max9611";
576 shunt-resistor-micro-ohms = <5000>;
580 compatible = "maxim,max9611";
583 shunt-resistor-micro-ohms = <5000>;
590 clock-frequency = <400000>;
593 pinctrl-0 = <&irq0_pins>;
594 pinctrl-names = "default";
596 compatible = "rohm,bd9571mwv";
598 interrupt-parent = <&intc_ex>;
599 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
600 interrupt-controller;
601 #interrupt-cells = <2>;
604 rohm,ddr-backup-power = <0xf>;
609 regulator-name = "dvfs";
610 regulator-min-microvolt = <750000>;
611 regulator-max-microvolt = <1030000>;
619 compatible = "rohm,br24t01", "atmel,24c01";
635 clock-frequency = <100000000>;
647 pinctrl-0 = <&scif_clk_pins>;
648 pinctrl-names = "default";
652 groups = "avb_link", "avb_mdio", "avb_mii";
658 drive-strength = <24>;
662 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
663 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
664 drive-strength = <12>;
669 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
673 hscif1_pins: hscif1 {
674 groups = "hscif1_data_a", "hscif1_ctrl_a";
684 groups = "intc_ex_irq0";
685 function = "intc_ex";
689 pins = "GP_5_17", "GP_5_20", "GP_5_22";
699 groups = "scif1_data_a", "scif1_ctrl";
704 groups = "scif2_data_a";
708 scif_clk_pins: scif_clk {
709 groups = "scif_clk_a";
710 function = "scif_clk";
714 groups = "sdhi0_data4", "sdhi0_ctrl";
716 power-source = <3300>;
719 sdhi0_pins_uhs: sd0_uhs {
720 groups = "sdhi0_data4", "sdhi0_ctrl";
722 power-source = <1800>;
726 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
728 power-source = <1800>;
732 groups = "sdhi3_data4", "sdhi3_ctrl";
734 power-source = <3300>;
737 sdhi3_pins_uhs: sd3_uhs {
738 groups = "sdhi3_data4", "sdhi3_ctrl";
740 power-source = <1800>;
744 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
748 sound_clk_pins: sound_clk {
749 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
750 "audio_clkout_a", "audio_clkout3_a";
751 function = "audio_clk";
783 pinctrl-0 = <&pwm1_pins>;
784 pinctrl-names = "default";
790 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
791 pinctrl-names = "default";
794 #sound-dai-cells = <0>;
796 /* audio_clkout0/1/2/3 */
798 clock-frequency = <12288000 11289600>;
802 /* update <audio_clk_b> to <cs2000> */
803 clocks = <&cpg CPG_MOD 1005>,
804 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
805 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
806 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
807 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
808 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
809 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
810 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
811 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
812 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
813 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
814 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
815 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
816 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
817 <&audio_clk_a>, <&cs2000>,
819 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
822 #address-cells = <1>;
826 rsnd_endpoint0: endpoint {
827 remote-endpoint = <&ak4613_endpoint>;
829 dai-format = "left_j";
830 bitclock-master = <&rsnd_endpoint0>;
831 frame-master = <&rsnd_endpoint0>;
833 playback = <&ssi0>, <&src0>, <&dvc0>;
834 capture = <&ssi1>, <&src1>, <&dvc1>;
840 rsnd_endpoint1: endpoint {
841 remote-endpoint = <&dw_hdmi0_snd_in>;
844 bitclock-master = <&rsnd_endpoint1>;
845 frame-master = <&rsnd_endpoint1>;
854 rsnd_endpoint2: endpoint {
855 remote-endpoint = <&dw_hdmi1_snd_in>;
858 bitclock-master = <&rsnd_endpoint2>;
859 frame-master = <&rsnd_endpoint2>;
864 #endif /* SOC_HAS_HDMI1 */
877 #endif /* SOC_HAS_SATA */
880 pinctrl-0 = <&scif1_pins>;
881 pinctrl-names = "default";
884 /* Please only enable hscif1 or scif1 */
885 /* status = "okay"; */
889 pinctrl-0 = <&scif2_pins>;
890 pinctrl-names = "default";
896 clock-frequency = <14745600>;
900 pinctrl-0 = <&sdhi0_pins>;
901 pinctrl-1 = <&sdhi0_pins_uhs>;
902 pinctrl-names = "default", "state_uhs";
904 vmmc-supply = <&vcc_sdhi0>;
905 vqmmc-supply = <&vccq_sdhi0>;
906 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
907 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
915 /* used for on-board 8bit eMMC */
916 pinctrl-0 = <&sdhi2_pins>;
917 pinctrl-1 = <&sdhi2_pins>;
918 pinctrl-names = "default", "state_uhs";
920 vmmc-supply = <®_3p3v>;
921 vqmmc-supply = <®_1p8v>;
928 fixed-emmc-driver-type = <1>;
929 full-pwr-cycle-in-suspend;
934 pinctrl-0 = <&sdhi3_pins>;
935 pinctrl-1 = <&sdhi3_pins_uhs>;
936 pinctrl-names = "default", "state_uhs";
938 vmmc-supply = <&vcc_sdhi3>;
939 vqmmc-supply = <&vccq_sdhi3>;
940 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
941 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
953 clock-frequency = <50000000>;
957 pinctrl-0 = <&usb0_pins>;
958 pinctrl-names = "default";
960 vbus-supply = <&vbus0_usb2>;
965 pinctrl-0 = <&usb1_pins>;
966 pinctrl-names = "default";
975 companion = <&xhci0>;
985 clock-frequency = <100000000>;
1021 pinctrl-0 = <&usb30_pins>;
1022 pinctrl-names = "default";
1027 #ifdef SOC_HAS_USB2_CH2
1044 pinctrl-0 = <&usb2_pins>;
1045 pinctrl-names = "default";
1049 #endif /* SOC_HAS_USB2_CH2 */