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 = "gpio-keys";
93 pinctrl-0 = <&keys_pins>;
94 pinctrl-names = "default";
97 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
101 debounce-interval = <20>;
104 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_2>;
108 debounce-interval = <20>;
111 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
112 linux,code = <KEY_3>;
115 debounce-interval = <20>;
118 gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_4>;
122 debounce-interval = <20>;
125 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_A>;
129 debounce-interval = <20>;
132 gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_B>;
136 debounce-interval = <20>;
139 gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
140 linux,code = <KEY_C>;
143 debounce-interval = <20>;
147 reg_1p8v: regulator0 {
148 compatible = "regulator-fixed";
149 regulator-name = "fixed-1.8V";
150 regulator-min-microvolt = <1800000>;
151 regulator-max-microvolt = <1800000>;
156 reg_3p3v: regulator1 {
157 compatible = "regulator-fixed";
158 regulator-name = "fixed-3.3V";
159 regulator-min-microvolt = <3300000>;
160 regulator-max-microvolt = <3300000>;
165 reg_12v: regulator2 {
166 compatible = "regulator-fixed";
167 regulator-name = "fixed-12V";
168 regulator-min-microvolt = <12000000>;
169 regulator-max-microvolt = <12000000>;
175 compatible = "audio-graph-card";
177 label = "rcar-sound";
179 dais = <&rsnd_port0>;
182 vbus0_usb2: regulator-vbus0-usb2 {
183 compatible = "regulator-fixed";
185 regulator-name = "USB20_VBUS0";
186 regulator-min-microvolt = <5000000>;
187 regulator-max-microvolt = <5000000>;
189 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
193 vcc_sdhi0: regulator-vcc-sdhi0 {
194 compatible = "regulator-fixed";
196 regulator-name = "SDHI0 Vcc";
197 regulator-min-microvolt = <3300000>;
198 regulator-max-microvolt = <3300000>;
200 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
204 vccq_sdhi0: regulator-vccq-sdhi0 {
205 compatible = "regulator-gpio";
207 regulator-name = "SDHI0 VccQ";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <3300000>;
211 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
217 vcc_sdhi3: regulator-vcc-sdhi3 {
218 compatible = "regulator-fixed";
220 regulator-name = "SDHI3 Vcc";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
224 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
228 vccq_sdhi3: regulator-vccq-sdhi3 {
229 compatible = "regulator-gpio";
231 regulator-name = "SDHI3 VccQ";
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <3300000>;
235 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
242 compatible = "hdmi-connector";
247 hdmi0_con: endpoint {
253 compatible = "hdmi-connector";
258 hdmi1_con: endpoint {
264 compatible = "vga-connector";
268 remote-endpoint = <&adv7123_out>;
274 compatible = "adi,adv7123";
277 #address-cells = <1>;
282 adv7123_in: endpoint {
283 remote-endpoint = <&du_out_rgb>;
288 adv7123_out: endpoint {
289 remote-endpoint = <&vga_in>;
296 compatible = "fixed-clock";
298 clock-frequency = <24576000>;
301 /* External DU dot clocks */
303 compatible = "fixed-clock";
305 clock-frequency = <33000000>;
309 compatible = "fixed-clock";
311 clock-frequency = <33000000>;
315 compatible = "fixed-clock";
317 clock-frequency = <25000000>;
322 clock-frequency = <22579200>;
326 pinctrl-0 = <&avb_pins>;
327 pinctrl-names = "default";
328 phy-handle = <&phy0>;
329 phy-mode = "rgmii-txid";
332 phy0: ethernet-phy@0 {
333 rxc-skew-ps = <1500>;
335 interrupt-parent = <&gpio2>;
336 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
337 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
350 remote-endpoint = <&adv7482_txb>;
365 data-lanes = <1 2 3 4>;
366 remote-endpoint = <&adv7482_txa>;
373 pinctrl-0 = <&du_pins>;
374 pinctrl-names = "default";
380 remote-endpoint = <&adv7123_in>;
396 clock-frequency = <32768>;
400 pinctrl-0 = <&hscif1_pins>;
401 pinctrl-names = "default";
404 /* Please only enable hscif1 or scif1 */
414 pinctrl-0 = <&i2c2_pins>;
415 pinctrl-names = "default";
419 clock-frequency = <100000>;
422 compatible = "asahi-kasei,ak4613";
423 #sound-dai-cells = <0>;
425 clocks = <&rcar_sound 3>;
427 asahi-kasei,in1-single-end;
428 asahi-kasei,in2-single-end;
429 asahi-kasei,out1-single-end;
430 asahi-kasei,out2-single-end;
431 asahi-kasei,out3-single-end;
432 asahi-kasei,out4-single-end;
433 asahi-kasei,out5-single-end;
434 asahi-kasei,out6-single-end;
437 ak4613_endpoint: endpoint {
438 remote-endpoint = <&rsnd_endpoint0>;
443 cs2000: clk_multiplier@4f {
445 compatible = "cirrus,cs2000-cp";
447 clocks = <&audio_clkout>, <&x12_clk>;
448 clock-names = "clk_in", "ref_clk";
450 assigned-clocks = <&cs2000>;
451 assigned-clock-rates = <24576000>; /* 1/1 divide */
459 compatible = "onnn,pca9654";
466 compatible = "maxim,max9611";
469 shunt-resistor-micro-ohms = <5000>;
473 compatible = "maxim,max9611";
476 shunt-resistor-micro-ohms = <5000>;
480 compatible = "adi,adv7482";
481 reg = <0x70 0x71 0x72 0x73 0x74 0x75
482 0x60 0x61 0x62 0x63 0x64 0x65>;
483 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
484 "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
486 #address-cells = <1>;
489 interrupt-parent = <&gpio6>;
490 interrupt-names = "intrq1", "intrq2";
491 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
492 <31 IRQ_TYPE_LEVEL_LOW>;
497 adv7482_ain7: endpoint {
498 remote-endpoint = <&cvbs_con>;
505 adv7482_hdmi: endpoint {
506 remote-endpoint = <&hdmi_in_con>;
513 adv7482_txa: endpoint {
515 data-lanes = <1 2 3 4>;
516 remote-endpoint = <&csi40_in>;
523 adv7482_txb: endpoint {
526 remote-endpoint = <&csi20_in>;
535 clock-frequency = <400000>;
538 pinctrl-0 = <&irq0_pins>;
539 pinctrl-names = "default";
541 compatible = "rohm,bd9571mwv";
543 interrupt-parent = <&intc_ex>;
544 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
545 interrupt-controller;
546 #interrupt-cells = <2>;
549 rohm,ddr-backup-power = <0xf>;
554 regulator-name = "dvfs";
555 regulator-min-microvolt = <750000>;
556 regulator-max-microvolt = <1030000>;
564 compatible = "rohm,br24t01", "atmel,24c01";
580 clock-frequency = <100000000>;
592 pinctrl-0 = <&scif_clk_pins>;
593 pinctrl-names = "default";
597 groups = "avb_link", "avb_mdio", "avb_mii";
603 drive-strength = <24>;
607 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
608 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
609 drive-strength = <12>;
614 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
618 hscif1_pins: hscif1 {
619 groups = "hscif1_data_a", "hscif1_ctrl_a";
629 groups = "intc_ex_irq0";
630 function = "intc_ex";
634 pins = "GP_5_17", "GP_5_20", "GP_5_22";
644 groups = "scif1_data_a", "scif1_ctrl";
649 groups = "scif2_data_a";
653 scif_clk_pins: scif_clk {
654 groups = "scif_clk_a";
655 function = "scif_clk";
659 groups = "sdhi0_data4", "sdhi0_ctrl";
661 power-source = <3300>;
664 sdhi0_pins_uhs: sd0_uhs {
665 groups = "sdhi0_data4", "sdhi0_ctrl";
667 power-source = <1800>;
671 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
673 power-source = <1800>;
677 groups = "sdhi3_data4", "sdhi3_ctrl";
679 power-source = <3300>;
682 sdhi3_pins_uhs: sd3_uhs {
683 groups = "sdhi3_data4", "sdhi3_ctrl";
685 power-source = <1800>;
689 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
693 sound_clk_pins: sound_clk {
694 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
695 "audio_clkout_a", "audio_clkout3_a";
696 function = "audio_clk";
728 pinctrl-0 = <&pwm1_pins>;
729 pinctrl-names = "default";
735 pinctrl-0 = <&sound_pins &sound_clk_pins>;
736 pinctrl-names = "default";
739 #sound-dai-cells = <0>;
741 /* audio_clkout0/1/2/3 */
743 clock-frequency = <12288000 11289600>;
747 /* update <audio_clk_b> to <cs2000> */
748 clocks = <&cpg CPG_MOD 1005>,
749 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
750 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
751 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
752 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
753 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
754 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
755 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
756 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
757 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
758 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
759 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
760 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
761 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
762 <&audio_clk_a>, <&cs2000>,
764 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
767 #address-cells = <1>;
771 rsnd_endpoint0: endpoint {
772 remote-endpoint = <&ak4613_endpoint>;
774 dai-format = "left_j";
775 bitclock-master = <&rsnd_endpoint0>;
776 frame-master = <&rsnd_endpoint0>;
778 playback = <&ssi0 &src0 &dvc0>;
779 capture = <&ssi1 &src1 &dvc1>;
791 pinctrl-0 = <&scif1_pins>;
792 pinctrl-names = "default";
795 /* Please only enable hscif1 or scif1 */
796 /* status = "okay"; */
800 pinctrl-0 = <&scif2_pins>;
801 pinctrl-names = "default";
807 clock-frequency = <14745600>;
811 pinctrl-0 = <&sdhi0_pins>;
812 pinctrl-1 = <&sdhi0_pins_uhs>;
813 pinctrl-names = "default", "state_uhs";
815 vmmc-supply = <&vcc_sdhi0>;
816 vqmmc-supply = <&vccq_sdhi0>;
817 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
818 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
826 /* used for on-board 8bit eMMC */
827 pinctrl-0 = <&sdhi2_pins>;
828 pinctrl-1 = <&sdhi2_pins>;
829 pinctrl-names = "default", "state_uhs";
831 vmmc-supply = <®_3p3v>;
832 vqmmc-supply = <®_1p8v>;
837 fixed-emmc-driver-type = <1>;
842 pinctrl-0 = <&sdhi3_pins>;
843 pinctrl-1 = <&sdhi3_pins_uhs>;
844 pinctrl-names = "default", "state_uhs";
846 vmmc-supply = <&vcc_sdhi3>;
847 vqmmc-supply = <&vccq_sdhi3>;
848 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
849 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
861 clock-frequency = <50000000>;
865 pinctrl-0 = <&usb0_pins>;
866 pinctrl-names = "default";
868 vbus-supply = <&vbus0_usb2>;
873 pinctrl-0 = <&usb1_pins>;
874 pinctrl-names = "default";
883 companion = <&xhci0>;
893 clock-frequency = <100000000>;
929 pinctrl-0 = <&usb30_pins>;
930 pinctrl-names = "default";