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>
42 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
43 stdout-path = "serial0:115200n8";
46 audio_clkout: audio-clkout {
48 * This is same as <&rcar_sound 0>
49 * but needed to avoid cs2000/rcar_sound probe dead-lock
51 compatible = "fixed-clock";
53 clock-frequency = <12288000>;
56 backlight: backlight {
57 compatible = "pwm-backlight";
58 pwms = <&pwm1 0 50000>;
60 brightness-levels = <256 128 64 16 8 4 0>;
61 default-brightness-level = <6>;
63 power-supply = <®_12v>;
64 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
68 compatible = "composite-video-connector";
73 remote-endpoint = <&adv7482_ain7>;
79 compatible = "hdmi-connector";
84 hdmi_in_con: endpoint {
85 remote-endpoint = <&adv7482_hdmi>;
91 compatible = "hdmi-connector";
102 compatible = "hdmi-connector";
107 hdmi1_con: endpoint {
113 compatible = "gpio-keys";
115 pinctrl-0 = <&keys_pins>;
116 pinctrl-names = "default";
119 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_1>;
123 debounce-interval = <20>;
126 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_2>;
130 debounce-interval = <20>;
133 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
134 linux,code = <KEY_3>;
137 debounce-interval = <20>;
140 gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
141 linux,code = <KEY_4>;
144 debounce-interval = <20>;
147 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
148 linux,code = <KEY_A>;
151 debounce-interval = <20>;
154 gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
155 linux,code = <KEY_B>;
158 debounce-interval = <20>;
161 gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
162 linux,code = <KEY_C>;
165 debounce-interval = <20>;
169 reg_1p8v: regulator0 {
170 compatible = "regulator-fixed";
171 regulator-name = "fixed-1.8V";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <1800000>;
178 reg_3p3v: regulator1 {
179 compatible = "regulator-fixed";
180 regulator-name = "fixed-3.3V";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
187 reg_12v: regulator2 {
188 compatible = "regulator-fixed";
189 regulator-name = "fixed-12V";
190 regulator-min-microvolt = <12000000>;
191 regulator-max-microvolt = <12000000>;
197 compatible = "audio-graph-card";
199 label = "rcar-sound";
201 dais = <&rsnd_port0>;
204 vbus0_usb2: regulator-vbus0-usb2 {
205 compatible = "regulator-fixed";
207 regulator-name = "USB20_VBUS0";
208 regulator-min-microvolt = <5000000>;
209 regulator-max-microvolt = <5000000>;
211 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
215 vcc_sdhi0: regulator-vcc-sdhi0 {
216 compatible = "regulator-fixed";
218 regulator-name = "SDHI0 Vcc";
219 regulator-min-microvolt = <3300000>;
220 regulator-max-microvolt = <3300000>;
222 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
226 vccq_sdhi0: regulator-vccq-sdhi0 {
227 compatible = "regulator-gpio";
229 regulator-name = "SDHI0 VccQ";
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <3300000>;
233 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
235 states = <3300000 1>, <1800000 0>;
238 vcc_sdhi3: regulator-vcc-sdhi3 {
239 compatible = "regulator-fixed";
241 regulator-name = "SDHI3 Vcc";
242 regulator-min-microvolt = <3300000>;
243 regulator-max-microvolt = <3300000>;
245 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
249 vccq_sdhi3: regulator-vccq-sdhi3 {
250 compatible = "regulator-gpio";
252 regulator-name = "SDHI3 VccQ";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <3300000>;
256 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
258 states = <3300000 1>, <1800000 0>;
262 compatible = "vga-connector";
266 remote-endpoint = <&adv7123_out>;
272 compatible = "adi,adv7123";
275 #address-cells = <1>;
280 adv7123_in: endpoint {
281 remote-endpoint = <&du_out_rgb>;
286 adv7123_out: endpoint {
287 remote-endpoint = <&vga_in>;
294 compatible = "fixed-clock";
296 clock-frequency = <24576000>;
299 /* External DU dot clocks */
301 compatible = "fixed-clock";
303 clock-frequency = <33000000>;
307 compatible = "fixed-clock";
309 clock-frequency = <33000000>;
313 compatible = "fixed-clock";
315 clock-frequency = <25000000>;
320 clock-frequency = <22579200>;
324 pinctrl-0 = <&avb_pins>;
325 pinctrl-names = "default";
326 phy-handle = <&phy0>;
327 tx-internal-delay-ps = <2000>;
330 phy0: ethernet-phy@0 {
331 rxc-skew-ps = <1500>;
333 interrupt-parent = <&gpio2>;
334 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
335 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
348 remote-endpoint = <&adv7482_txb>;
363 data-lanes = <1 2 3 4>;
364 remote-endpoint = <&adv7482_txa>;
371 pinctrl-0 = <&du_pins>;
372 pinctrl-names = "default";
378 remote-endpoint = <&adv7123_in>;
394 clock-frequency = <32768>;
398 pinctrl-0 = <&hscif1_pins>;
399 pinctrl-names = "default";
402 /* Please only enable hscif1 or scif1 */
412 pinctrl-0 = <&i2c2_pins>;
413 pinctrl-names = "default";
417 clock-frequency = <100000>;
420 compatible = "asahi-kasei,ak4613";
421 #sound-dai-cells = <0>;
423 clocks = <&rcar_sound 3>;
425 asahi-kasei,in1-single-end;
426 asahi-kasei,in2-single-end;
427 asahi-kasei,out1-single-end;
428 asahi-kasei,out2-single-end;
429 asahi-kasei,out3-single-end;
430 asahi-kasei,out4-single-end;
431 asahi-kasei,out5-single-end;
432 asahi-kasei,out6-single-end;
435 ak4613_endpoint: endpoint {
436 remote-endpoint = <&rsnd_endpoint0>;
441 cs2000: clk_multiplier@4f {
443 compatible = "cirrus,cs2000-cp";
445 clocks = <&audio_clkout>, <&x12_clk>;
446 clock-names = "clk_in", "ref_clk";
448 assigned-clocks = <&cs2000>;
449 assigned-clock-rates = <24576000>; /* 1/1 divide */
457 compatible = "onnn,pca9654";
464 compatible = "adi,adv7482";
465 reg = <0x70 0x71 0x72 0x73 0x74 0x75
466 0x60 0x61 0x62 0x63 0x64 0x65>;
467 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
468 "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
470 #address-cells = <1>;
473 interrupt-parent = <&gpio6>;
474 interrupt-names = "intrq1", "intrq2";
475 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
476 <31 IRQ_TYPE_LEVEL_LOW>;
481 adv7482_ain7: endpoint {
482 remote-endpoint = <&cvbs_con>;
489 adv7482_hdmi: endpoint {
490 remote-endpoint = <&hdmi_in_con>;
497 adv7482_txa: endpoint {
499 data-lanes = <1 2 3 4>;
500 remote-endpoint = <&csi40_in>;
507 adv7482_txb: endpoint {
510 remote-endpoint = <&csi20_in>;
516 compatible = "maxim,max9611";
519 shunt-resistor-micro-ohms = <5000>;
523 compatible = "maxim,max9611";
526 shunt-resistor-micro-ohms = <5000>;
533 clock-frequency = <400000>;
536 pinctrl-0 = <&irq0_pins>;
537 pinctrl-names = "default";
539 compatible = "rohm,bd9571mwv";
541 interrupt-parent = <&intc_ex>;
542 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
543 interrupt-controller;
544 #interrupt-cells = <2>;
547 rohm,ddr-backup-power = <0xf>;
552 regulator-name = "dvfs";
553 regulator-min-microvolt = <750000>;
554 regulator-max-microvolt = <1030000>;
562 compatible = "rohm,br24t01", "atmel,24c01";
578 clock-frequency = <100000000>;
590 pinctrl-0 = <&scif_clk_pins>;
591 pinctrl-names = "default";
595 groups = "avb_link", "avb_mdio", "avb_mii";
601 drive-strength = <24>;
605 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
606 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
607 drive-strength = <12>;
612 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
616 hscif1_pins: hscif1 {
617 groups = "hscif1_data_a", "hscif1_ctrl_a";
627 groups = "intc_ex_irq0";
628 function = "intc_ex";
632 pins = "GP_5_17", "GP_5_20", "GP_5_22";
642 groups = "scif1_data_a", "scif1_ctrl";
647 groups = "scif2_data_a";
651 scif_clk_pins: scif_clk {
652 groups = "scif_clk_a";
653 function = "scif_clk";
657 groups = "sdhi0_data4", "sdhi0_ctrl";
659 power-source = <3300>;
662 sdhi0_pins_uhs: sd0_uhs {
663 groups = "sdhi0_data4", "sdhi0_ctrl";
665 power-source = <1800>;
669 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
671 power-source = <1800>;
675 groups = "sdhi3_data4", "sdhi3_ctrl";
677 power-source = <3300>;
680 sdhi3_pins_uhs: sd3_uhs {
681 groups = "sdhi3_data4", "sdhi3_ctrl";
683 power-source = <1800>;
687 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
691 sound_clk_pins: sound_clk {
692 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
693 "audio_clkout_a", "audio_clkout3_a";
694 function = "audio_clk";
726 pinctrl-0 = <&pwm1_pins>;
727 pinctrl-names = "default";
733 pinctrl-0 = <&sound_pins &sound_clk_pins>;
734 pinctrl-names = "default";
737 #sound-dai-cells = <0>;
739 /* audio_clkout0/1/2/3 */
741 clock-frequency = <12288000 11289600>;
745 /* update <audio_clk_b> to <cs2000> */
746 clocks = <&cpg CPG_MOD 1005>,
747 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
748 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
749 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
750 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
751 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
752 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
753 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
754 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
755 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
756 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
757 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
758 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
759 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
760 <&audio_clk_a>, <&cs2000>,
762 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
765 #address-cells = <1>;
769 rsnd_endpoint0: endpoint {
770 remote-endpoint = <&ak4613_endpoint>;
772 dai-format = "left_j";
773 bitclock-master = <&rsnd_endpoint0>;
774 frame-master = <&rsnd_endpoint0>;
776 playback = <&ssi0 &src0 &dvc0>;
777 capture = <&ssi1 &src1 &dvc1>;
789 pinctrl-0 = <&scif1_pins>;
790 pinctrl-names = "default";
793 /* Please only enable hscif1 or scif1 */
794 /* status = "okay"; */
798 pinctrl-0 = <&scif2_pins>;
799 pinctrl-names = "default";
805 clock-frequency = <14745600>;
809 pinctrl-0 = <&sdhi0_pins>;
810 pinctrl-1 = <&sdhi0_pins_uhs>;
811 pinctrl-names = "default", "state_uhs";
813 vmmc-supply = <&vcc_sdhi0>;
814 vqmmc-supply = <&vccq_sdhi0>;
815 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
816 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
824 /* used for on-board 8bit eMMC */
825 pinctrl-0 = <&sdhi2_pins>;
826 pinctrl-1 = <&sdhi2_pins>;
827 pinctrl-names = "default", "state_uhs";
829 vmmc-supply = <®_3p3v>;
830 vqmmc-supply = <®_1p8v>;
835 fixed-emmc-driver-type = <1>;
836 full-pwr-cycle-in-suspend;
841 pinctrl-0 = <&sdhi3_pins>;
842 pinctrl-1 = <&sdhi3_pins_uhs>;
843 pinctrl-names = "default", "state_uhs";
845 vmmc-supply = <&vcc_sdhi3>;
846 vqmmc-supply = <&vccq_sdhi3>;
847 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
848 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
860 clock-frequency = <50000000>;
864 pinctrl-0 = <&usb0_pins>;
865 pinctrl-names = "default";
867 vbus-supply = <&vbus0_usb2>;
872 pinctrl-0 = <&usb1_pins>;
873 pinctrl-names = "default";
882 companion = <&xhci0>;
892 clock-frequency = <100000000>;
928 pinctrl-0 = <&usb30_pins>;
929 pinctrl-names = "default";