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>
41 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
42 stdout-path = "serial0:115200n8";
45 audio_clkout: audio-clkout {
47 * This is same as <&rcar_sound 0>
48 * but needed to avoid cs2000/rcar_sound probe dead-lock
50 compatible = "fixed-clock";
52 clock-frequency = <12288000>;
55 backlight: backlight {
56 compatible = "pwm-backlight";
57 pwms = <&pwm1 0 50000>;
59 brightness-levels = <256 128 64 16 8 4 0>;
60 default-brightness-level = <6>;
62 power-supply = <®_12v>;
63 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
67 compatible = "composite-video-connector";
72 remote-endpoint = <&adv7482_ain7>;
78 compatible = "hdmi-connector";
83 hdmi_in_con: endpoint {
84 remote-endpoint = <&adv7482_hdmi>;
89 reg_1p8v: regulator0 {
90 compatible = "regulator-fixed";
91 regulator-name = "fixed-1.8V";
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
98 reg_3p3v: regulator1 {
99 compatible = "regulator-fixed";
100 regulator-name = "fixed-3.3V";
101 regulator-min-microvolt = <3300000>;
102 regulator-max-microvolt = <3300000>;
107 reg_12v: regulator2 {
108 compatible = "regulator-fixed";
109 regulator-name = "fixed-12V";
110 regulator-min-microvolt = <12000000>;
111 regulator-max-microvolt = <12000000>;
117 compatible = "audio-graph-card";
119 label = "rcar-sound";
121 dais = <&rsnd_port0>;
124 vbus0_usb2: regulator-vbus0-usb2 {
125 compatible = "regulator-fixed";
127 regulator-name = "USB20_VBUS0";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
131 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
135 vcc_sdhi0: regulator-vcc-sdhi0 {
136 compatible = "regulator-fixed";
138 regulator-name = "SDHI0 Vcc";
139 regulator-min-microvolt = <3300000>;
140 regulator-max-microvolt = <3300000>;
142 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
146 vccq_sdhi0: regulator-vccq-sdhi0 {
147 compatible = "regulator-gpio";
149 regulator-name = "SDHI0 VccQ";
150 regulator-min-microvolt = <1800000>;
151 regulator-max-microvolt = <3300000>;
153 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
159 vcc_sdhi3: regulator-vcc-sdhi3 {
160 compatible = "regulator-fixed";
162 regulator-name = "SDHI3 Vcc";
163 regulator-min-microvolt = <3300000>;
164 regulator-max-microvolt = <3300000>;
166 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
170 vccq_sdhi3: regulator-vccq-sdhi3 {
171 compatible = "regulator-gpio";
173 regulator-name = "SDHI3 VccQ";
174 regulator-min-microvolt = <1800000>;
175 regulator-max-microvolt = <3300000>;
177 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
184 compatible = "hdmi-connector";
189 hdmi0_con: endpoint {
195 compatible = "hdmi-connector";
200 hdmi1_con: endpoint {
206 compatible = "vga-connector";
210 remote-endpoint = <&adv7123_out>;
216 compatible = "adi,adv7123";
219 #address-cells = <1>;
224 adv7123_in: endpoint {
225 remote-endpoint = <&du_out_rgb>;
230 adv7123_out: endpoint {
231 remote-endpoint = <&vga_in>;
238 compatible = "fixed-clock";
240 clock-frequency = <24576000>;
243 /* External DU dot clocks */
245 compatible = "fixed-clock";
247 clock-frequency = <33000000>;
251 compatible = "fixed-clock";
253 clock-frequency = <33000000>;
257 compatible = "fixed-clock";
259 clock-frequency = <25000000>;
264 clock-frequency = <22579200>;
268 pinctrl-0 = <&avb_pins>;
269 pinctrl-names = "default";
270 phy-handle = <&phy0>;
271 phy-mode = "rgmii-txid";
274 phy0: ethernet-phy@0 {
275 rxc-skew-ps = <1500>;
277 interrupt-parent = <&gpio2>;
278 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
279 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
292 remote-endpoint = <&adv7482_txb>;
307 data-lanes = <1 2 3 4>;
308 remote-endpoint = <&adv7482_txa>;
315 pinctrl-0 = <&du_pins>;
316 pinctrl-names = "default";
322 remote-endpoint = <&adv7123_in>;
338 clock-frequency = <32768>;
342 pinctrl-0 = <&hscif1_pins>;
343 pinctrl-names = "default";
346 /* Please only enable hscif1 or scif1 */
356 pinctrl-0 = <&i2c2_pins>;
357 pinctrl-names = "default";
361 clock-frequency = <100000>;
364 compatible = "asahi-kasei,ak4613";
365 #sound-dai-cells = <0>;
367 clocks = <&rcar_sound 3>;
369 asahi-kasei,in1-single-end;
370 asahi-kasei,in2-single-end;
371 asahi-kasei,out1-single-end;
372 asahi-kasei,out2-single-end;
373 asahi-kasei,out3-single-end;
374 asahi-kasei,out4-single-end;
375 asahi-kasei,out5-single-end;
376 asahi-kasei,out6-single-end;
379 ak4613_endpoint: endpoint {
380 remote-endpoint = <&rsnd_endpoint0>;
385 cs2000: clk_multiplier@4f {
387 compatible = "cirrus,cs2000-cp";
389 clocks = <&audio_clkout>, <&x12_clk>;
390 clock-names = "clk_in", "ref_clk";
392 assigned-clocks = <&cs2000>;
393 assigned-clock-rates = <24576000>; /* 1/1 divide */
401 compatible = "onnn,pca9654";
408 compatible = "maxim,max9611";
411 shunt-resistor-micro-ohms = <5000>;
415 compatible = "maxim,max9611";
418 shunt-resistor-micro-ohms = <5000>;
422 compatible = "adi,adv7482";
423 reg = <0x70 0x71 0x72 0x73 0x74 0x75
424 0x60 0x61 0x62 0x63 0x64 0x65>;
425 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
426 "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
428 #address-cells = <1>;
431 interrupt-parent = <&gpio6>;
432 interrupt-names = "intrq1", "intrq2";
433 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
434 <31 IRQ_TYPE_LEVEL_LOW>;
439 adv7482_ain7: endpoint {
440 remote-endpoint = <&cvbs_con>;
447 adv7482_hdmi: endpoint {
448 remote-endpoint = <&hdmi_in_con>;
455 adv7482_txa: endpoint {
457 data-lanes = <1 2 3 4>;
458 remote-endpoint = <&csi40_in>;
465 adv7482_txb: endpoint {
468 remote-endpoint = <&csi20_in>;
477 clock-frequency = <400000>;
480 pinctrl-0 = <&irq0_pins>;
481 pinctrl-names = "default";
483 compatible = "rohm,bd9571mwv";
485 interrupt-parent = <&intc_ex>;
486 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
487 interrupt-controller;
488 #interrupt-cells = <2>;
491 rohm,ddr-backup-power = <0xf>;
496 regulator-name = "dvfs";
497 regulator-min-microvolt = <750000>;
498 regulator-max-microvolt = <1030000>;
506 compatible = "rohm,br24t01", "atmel,24c01";
522 clock-frequency = <100000000>;
534 pinctrl-0 = <&scif_clk_pins>;
535 pinctrl-names = "default";
539 groups = "avb_link", "avb_mdio", "avb_mii";
545 drive-strength = <24>;
549 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
550 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
551 drive-strength = <12>;
556 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
560 hscif1_pins: hscif1 {
561 groups = "hscif1_data_a", "hscif1_ctrl_a";
571 groups = "intc_ex_irq0";
572 function = "intc_ex";
581 groups = "scif1_data_a", "scif1_ctrl";
586 groups = "scif2_data_a";
590 scif_clk_pins: scif_clk {
591 groups = "scif_clk_a";
592 function = "scif_clk";
596 groups = "sdhi0_data4", "sdhi0_ctrl";
598 power-source = <3300>;
601 sdhi0_pins_uhs: sd0_uhs {
602 groups = "sdhi0_data4", "sdhi0_ctrl";
604 power-source = <1800>;
608 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
610 power-source = <3300>;
613 sdhi2_pins_uhs: sd2_uhs {
614 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
616 power-source = <1800>;
620 groups = "sdhi3_data4", "sdhi3_ctrl";
622 power-source = <3300>;
625 sdhi3_pins_uhs: sd3_uhs {
626 groups = "sdhi3_data4", "sdhi3_ctrl";
628 power-source = <1800>;
632 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
636 sound_clk_pins: sound_clk {
637 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
638 "audio_clkout_a", "audio_clkout3_a";
639 function = "audio_clk";
671 pinctrl-0 = <&pwm1_pins>;
672 pinctrl-names = "default";
678 pinctrl-0 = <&sound_pins &sound_clk_pins>;
679 pinctrl-names = "default";
682 #sound-dai-cells = <0>;
684 /* audio_clkout0/1/2/3 */
686 clock-frequency = <12288000 11289600>;
690 /* update <audio_clk_b> to <cs2000> */
691 clocks = <&cpg CPG_MOD 1005>,
692 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
693 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
694 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
695 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
696 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
697 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
698 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
699 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
700 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
701 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
702 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
703 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
704 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
705 <&audio_clk_a>, <&cs2000>,
707 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
711 rsnd_endpoint0: endpoint {
712 remote-endpoint = <&ak4613_endpoint>;
714 dai-format = "left_j";
715 bitclock-master = <&rsnd_endpoint0>;
716 frame-master = <&rsnd_endpoint0>;
718 playback = <&ssi0 &src0 &dvc0>;
719 capture = <&ssi1 &src1 &dvc1>;
726 pinctrl-0 = <&scif1_pins>;
727 pinctrl-names = "default";
730 /* Please only enable hscif1 or scif1 */
731 /* status = "okay"; */
735 pinctrl-0 = <&scif2_pins>;
736 pinctrl-names = "default";
742 clock-frequency = <14745600>;
746 pinctrl-0 = <&sdhi0_pins>;
747 pinctrl-1 = <&sdhi0_pins_uhs>;
748 pinctrl-names = "default", "state_uhs";
750 vmmc-supply = <&vcc_sdhi0>;
751 vqmmc-supply = <&vccq_sdhi0>;
752 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
753 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
761 /* used for on-board 8bit eMMC */
762 pinctrl-0 = <&sdhi2_pins>;
763 pinctrl-1 = <&sdhi2_pins_uhs>;
764 pinctrl-names = "default", "state_uhs";
766 vmmc-supply = <®_3p3v>;
767 vqmmc-supply = <®_1p8v>;
771 fixed-emmc-driver-type = <1>;
776 pinctrl-0 = <&sdhi3_pins>;
777 pinctrl-1 = <&sdhi3_pins_uhs>;
778 pinctrl-names = "default", "state_uhs";
780 vmmc-supply = <&vcc_sdhi3>;
781 vqmmc-supply = <&vccq_sdhi3>;
782 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
783 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
795 clock-frequency = <50000000>;
799 pinctrl-0 = <&usb0_pins>;
800 pinctrl-names = "default";
802 vbus-supply = <&vbus0_usb2>;
807 pinctrl-0 = <&usb1_pins>;
808 pinctrl-names = "default";
825 clock-frequency = <100000000>;
866 pinctrl-0 = <&usb30_pins>;
867 pinctrl-names = "default";