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>
53 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
54 stdout-path = "serial0:115200n8";
57 audio_clkout: audio-clkout {
59 * This is same as <&rcar_sound 0>
60 * but needed to avoid cs2000/rcar_sound probe dead-lock
62 compatible = "fixed-clock";
64 clock-frequency = <12288000>;
67 backlight: backlight {
68 compatible = "pwm-backlight";
69 pwms = <&pwm1 0 50000>;
71 brightness-levels = <256 128 64 16 8 4 0>;
72 default-brightness-level = <6>;
74 power-supply = <®_12v>;
75 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
79 compatible = "composite-video-connector";
84 remote-endpoint = <&adv7482_ain7>;
90 compatible = "hdmi-connector";
95 hdmi_in_con: endpoint {
96 remote-endpoint = <&adv7482_hdmi>;
102 compatible = "hdmi-connector";
107 hdmi0_con: endpoint {
108 remote-endpoint = <&rcar_dw_hdmi0_out>;
114 compatible = "hdmi-connector";
119 hdmi1_con: endpoint {
125 compatible = "gpio-keys";
127 pinctrl-0 = <&keys_pins>;
128 pinctrl-names = "default";
131 gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
132 linux,code = <KEY_1>;
135 debounce-interval = <20>;
138 gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
139 linux,code = <KEY_2>;
142 debounce-interval = <20>;
145 gpios = <&gpio5 22 GPIO_ACTIVE_LOW>;
146 linux,code = <KEY_3>;
149 debounce-interval = <20>;
152 gpios = <&gpio5 23 GPIO_ACTIVE_LOW>;
153 linux,code = <KEY_4>;
156 debounce-interval = <20>;
159 gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_A>;
163 debounce-interval = <20>;
166 gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
167 linux,code = <KEY_B>;
170 debounce-interval = <20>;
173 gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
174 linux,code = <KEY_C>;
177 debounce-interval = <20>;
181 reg_1p8v: regulator-1p8v {
182 compatible = "regulator-fixed";
183 regulator-name = "fixed-1.8V";
184 regulator-min-microvolt = <1800000>;
185 regulator-max-microvolt = <1800000>;
190 reg_3p3v: regulator-3p3v {
191 compatible = "regulator-fixed";
192 regulator-name = "fixed-3.3V";
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
199 reg_12v: regulator-12v {
200 compatible = "regulator-fixed";
201 regulator-name = "fixed-12V";
202 regulator-min-microvolt = <12000000>;
203 regulator-max-microvolt = <12000000>;
209 compatible = "audio-graph-card";
211 label = "rcar-sound";
213 dais = <&rsnd_port0 /* ak4613 */
214 &rsnd_port1 /* HDMI0 */
216 &rsnd_port2 /* HDMI1 */
221 vbus0_usb2: regulator-vbus0-usb2 {
222 compatible = "regulator-fixed";
224 regulator-name = "USB20_VBUS0";
225 regulator-min-microvolt = <5000000>;
226 regulator-max-microvolt = <5000000>;
228 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
232 vcc_sdhi0: regulator-vcc-sdhi0 {
233 compatible = "regulator-fixed";
235 regulator-name = "SDHI0 Vcc";
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
239 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
243 vccq_sdhi0: regulator-vccq-sdhi0 {
244 compatible = "regulator-gpio";
246 regulator-name = "SDHI0 VccQ";
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <3300000>;
250 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
252 states = <3300000 1>, <1800000 0>;
255 vcc_sdhi3: regulator-vcc-sdhi3 {
256 compatible = "regulator-fixed";
258 regulator-name = "SDHI3 Vcc";
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
262 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
266 vccq_sdhi3: regulator-vccq-sdhi3 {
267 compatible = "regulator-gpio";
269 regulator-name = "SDHI3 VccQ";
270 regulator-min-microvolt = <1800000>;
271 regulator-max-microvolt = <3300000>;
273 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
275 states = <3300000 1>, <1800000 0>;
279 compatible = "vga-connector";
283 remote-endpoint = <&adv7123_out>;
289 compatible = "adi,adv7123";
292 #address-cells = <1>;
297 adv7123_in: endpoint {
298 remote-endpoint = <&du_out_rgb>;
303 adv7123_out: endpoint {
304 remote-endpoint = <&vga_in>;
311 compatible = "fixed-clock";
313 clock-frequency = <24576000>;
316 /* External DU dot clocks */
318 compatible = "fixed-clock";
320 clock-frequency = <33000000>;
324 compatible = "fixed-clock";
326 clock-frequency = <33000000>;
330 compatible = "fixed-clock";
332 clock-frequency = <25000000>;
337 cpu-supply = <&dvfs>;
341 clock-frequency = <22579200>;
345 pinctrl-0 = <&avb_pins>;
346 pinctrl-names = "default";
347 phy-handle = <&phy0>;
348 tx-internal-delay-ps = <2000>;
351 phy0: ethernet-phy@0 {
352 compatible = "ethernet-phy-id0022.1622",
353 "ethernet-phy-ieee802.3-c22";
354 rxc-skew-ps = <1500>;
356 interrupt-parent = <&gpio2>;
357 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
358 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
370 remote-endpoint = <&adv7482_txb>;
383 data-lanes = <1 2 3 4>;
384 remote-endpoint = <&adv7482_txa>;
391 pinctrl-0 = <&du_pins>;
392 pinctrl-names = "default";
397 du_out_rgb: endpoint {
398 remote-endpoint = <&adv7123_in>;
414 clock-frequency = <32768>;
423 rcar_dw_hdmi0_out: endpoint {
424 remote-endpoint = <&hdmi0_con>;
429 dw_hdmi0_snd_in: endpoint {
430 remote-endpoint = <&rsnd_endpoint1>;
443 rcar_dw_hdmi1_out: endpoint {
444 remote-endpoint = <&hdmi1_con>;
449 dw_hdmi1_snd_in: endpoint {
450 remote-endpoint = <&rsnd_endpoint2>;
457 remote-endpoint = <&rcar_dw_hdmi1_out>;
459 #endif /* SOC_HAS_HDMI1 */
462 pinctrl-0 = <&hscif1_pins>;
463 pinctrl-names = "default";
466 /* Please only enable hscif1 or scif1 */
476 pinctrl-0 = <&i2c2_pins>;
477 pinctrl-names = "default";
481 clock-frequency = <100000>;
484 compatible = "asahi-kasei,ak4613";
485 #sound-dai-cells = <0>;
487 clocks = <&rcar_sound 3>;
489 asahi-kasei,in1-single-end;
490 asahi-kasei,in2-single-end;
491 asahi-kasei,out1-single-end;
492 asahi-kasei,out2-single-end;
493 asahi-kasei,out3-single-end;
494 asahi-kasei,out4-single-end;
495 asahi-kasei,out5-single-end;
496 asahi-kasei,out6-single-end;
499 ak4613_endpoint: endpoint {
500 remote-endpoint = <&rsnd_endpoint0>;
505 cs2000: clk_multiplier@4f {
507 compatible = "cirrus,cs2000-cp";
509 clocks = <&audio_clkout>, <&x12_clk>;
510 clock-names = "clk_in", "ref_clk";
512 assigned-clocks = <&cs2000>;
513 assigned-clock-rates = <24576000>; /* 1/1 divide */
521 compatible = "onnn,pca9654";
528 compatible = "adi,adv7482";
529 reg = <0x70 0x71 0x72 0x73 0x74 0x75
530 0x60 0x61 0x62 0x63 0x64 0x65>;
531 reg-names = "main", "dpll", "cp", "hdmi", "edid", "repeater",
532 "infoframe", "cbus", "cec", "sdp", "txa", "txb" ;
534 interrupt-parent = <&gpio6>;
535 interrupt-names = "intrq1", "intrq2";
536 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
537 <31 IRQ_TYPE_LEVEL_LOW>;
540 #address-cells = <1>;
546 adv7482_ain7: endpoint {
547 remote-endpoint = <&cvbs_con>;
554 adv7482_hdmi: endpoint {
555 remote-endpoint = <&hdmi_in_con>;
562 adv7482_txa: endpoint {
564 data-lanes = <1 2 3 4>;
565 remote-endpoint = <&csi40_in>;
572 adv7482_txb: endpoint {
575 remote-endpoint = <&csi20_in>;
582 compatible = "maxim,max9611";
585 shunt-resistor-micro-ohms = <5000>;
589 compatible = "maxim,max9611";
592 shunt-resistor-micro-ohms = <5000>;
599 clock-frequency = <400000>;
602 pinctrl-0 = <&irq0_pins>;
603 pinctrl-names = "default";
605 compatible = "rohm,bd9571mwv";
607 interrupt-parent = <&intc_ex>;
608 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
609 interrupt-controller;
610 #interrupt-cells = <2>;
613 rohm,ddr-backup-power = <0xf>;
618 regulator-name = "dvfs";
619 regulator-min-microvolt = <750000>;
620 regulator-max-microvolt = <1030000>;
628 compatible = "rohm,br24t01", "atmel,24c01";
644 clock-frequency = <100000000>;
656 pinctrl-0 = <&scif_clk_pins>;
657 pinctrl-names = "default";
661 groups = "avb_link", "avb_mdio", "avb_mii";
667 drive-strength = <24>;
671 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
672 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
673 drive-strength = <12>;
678 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
682 hscif1_pins: hscif1 {
683 groups = "hscif1_data_a", "hscif1_ctrl_a";
693 groups = "intc_ex_irq0";
694 function = "intc_ex";
698 pins = "GP_5_17", "GP_5_20", "GP_5_22";
708 groups = "scif1_data_a", "scif1_ctrl";
713 groups = "scif2_data_a";
717 scif_clk_pins: scif_clk {
718 groups = "scif_clk_a";
719 function = "scif_clk";
723 groups = "sdhi0_data4", "sdhi0_ctrl";
725 power-source = <3300>;
728 sdhi0_pins_uhs: sd0_uhs {
729 groups = "sdhi0_data4", "sdhi0_ctrl";
731 power-source = <1800>;
735 groups = "sdhi2_data8", "sdhi2_ctrl", "sdhi2_ds";
737 power-source = <1800>;
741 groups = "sdhi3_data4", "sdhi3_ctrl";
743 power-source = <3300>;
746 sdhi3_pins_uhs: sd3_uhs {
747 groups = "sdhi3_data4", "sdhi3_ctrl";
749 power-source = <1800>;
753 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
757 sound_clk_pins: sound_clk {
758 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
759 "audio_clkout_a", "audio_clkout3_a";
760 function = "audio_clk";
792 pinctrl-0 = <&pwm1_pins>;
793 pinctrl-names = "default";
799 pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
800 pinctrl-names = "default";
802 /* audio_clkout0/1/2/3 */
804 clock-frequency = <12288000 11289600>;
808 /* update <audio_clk_b> to <cs2000> */
809 clocks = <&cpg CPG_MOD 1005>,
810 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
811 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
812 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
813 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
814 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
815 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
816 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
817 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
818 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
819 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
820 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
821 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
822 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
823 <&audio_clk_a>, <&cs2000>,
828 #address-cells = <1>;
832 rsnd_endpoint0: endpoint {
833 remote-endpoint = <&ak4613_endpoint>;
835 dai-format = "left_j";
836 bitclock-master = <&rsnd_endpoint0>;
837 frame-master = <&rsnd_endpoint0>;
839 playback = <&ssi0>, <&src0>, <&dvc0>;
840 capture = <&ssi1>, <&src1>, <&dvc1>;
846 rsnd_endpoint1: endpoint {
847 remote-endpoint = <&dw_hdmi0_snd_in>;
850 bitclock-master = <&rsnd_endpoint1>;
851 frame-master = <&rsnd_endpoint1>;
860 rsnd_endpoint2: endpoint {
861 remote-endpoint = <&dw_hdmi1_snd_in>;
864 bitclock-master = <&rsnd_endpoint2>;
865 frame-master = <&rsnd_endpoint2>;
870 #endif /* SOC_HAS_HDMI1 */
875 /* Left disabled. To be enabled by firmware when unlocked. */
878 compatible = "cypress,hyperflash", "cfi-flash";
882 compatible = "fixed-partitions";
883 #address-cells = <1>;
887 reg = <0x00000000 0x040000>;
891 reg = <0x00040000 0x140000>;
894 cert_header_sa6@180000 {
895 reg = <0x00180000 0x040000>;
899 reg = <0x001c0000 0x040000>;
903 reg = <0x00200000 0x440000>;
907 reg = <0x00640000 0x100000>;
911 reg = <0x00740000 0x080000>;
914 reg = <0x007c0000 0x1400000>;
917 reg = <0x01bc0000 0x2440000>;
932 #endif /* SOC_HAS_SATA */
935 pinctrl-0 = <&scif1_pins>;
936 pinctrl-names = "default";
939 /* Please only enable hscif1 or scif1 */
940 /* status = "okay"; */
944 pinctrl-0 = <&scif2_pins>;
945 pinctrl-names = "default";
951 clock-frequency = <14745600>;
955 pinctrl-0 = <&sdhi0_pins>;
956 pinctrl-1 = <&sdhi0_pins_uhs>;
957 pinctrl-names = "default", "state_uhs";
959 vmmc-supply = <&vcc_sdhi0>;
960 vqmmc-supply = <&vccq_sdhi0>;
961 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
962 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
970 /* used for on-board 8bit eMMC */
971 pinctrl-0 = <&sdhi2_pins>;
972 pinctrl-1 = <&sdhi2_pins>;
973 pinctrl-names = "default", "state_uhs";
975 vmmc-supply = <®_3p3v>;
976 vqmmc-supply = <®_1p8v>;
983 fixed-emmc-driver-type = <1>;
984 full-pwr-cycle-in-suspend;
989 pinctrl-0 = <&sdhi3_pins>;
990 pinctrl-1 = <&sdhi3_pins_uhs>;
991 pinctrl-names = "default", "state_uhs";
993 vmmc-supply = <&vcc_sdhi3>;
994 vqmmc-supply = <&vccq_sdhi3>;
995 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
996 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
1008 clock-frequency = <50000000>;
1012 pinctrl-0 = <&usb0_pins>;
1013 pinctrl-names = "default";
1015 vbus-supply = <&vbus0_usb2>;
1020 pinctrl-0 = <&usb1_pins>;
1021 pinctrl-names = "default";
1027 phys = <&usb3_phy0>;
1030 companion = <&xhci0>;
1040 clock-frequency = <100000000>;
1076 pinctrl-0 = <&usb30_pins>;
1077 pinctrl-names = "default";
1082 #ifdef SOC_HAS_USB2_CH2
1099 pinctrl-0 = <&usb2_pins>;
1100 pinctrl-names = "default";
1104 #endif /* SOC_HAS_USB2_CH2 */