2 * Device Tree Source for common parts of Salvator-X board variants
4 * Copyright (C) 2015-2016 Renesas Electronics Corp.
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.
14 * This command is required when Playback/Capture
16 * amixer set "DVC Out" 100%
17 * amixer set "DVC In" 100%
21 * amixer set "DVC Out Mute" on
22 * amixer set "DVC In Mute" on
24 * You can use Volume Ramp
26 * amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
27 * amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
28 * amixer set "DVC Out Ramp" on
30 * amixer set "DVC Out" 80% // Volume Down
31 * amixer set "DVC Out" 100% // Volume Up
34 #include <dt-bindings/gpio/gpio.h>
44 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
45 stdout-path = "serial0:115200n8";
48 audio_clkout: audio-clkout {
50 * This is same as <&rcar_sound 0>
51 * but needed to avoid cs2000/rcar_sound probe dead-lock
53 compatible = "fixed-clock";
55 clock-frequency = <12288000>;
58 backlight: backlight {
59 compatible = "pwm-backlight";
60 pwms = <&pwm1 0 50000>;
62 brightness-levels = <256 128 64 16 8 4 0>;
63 default-brightness-level = <6>;
65 power-supply = <®_12v>;
66 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
70 compatible = "composite-video-connector";
75 remote-endpoint = <&adv7482_ain7>;
81 compatible = "hdmi-connector";
86 hdmi_in_con: endpoint {
87 remote-endpoint = <&adv7482_hdmi>;
92 reg_1p8v: regulator0 {
93 compatible = "regulator-fixed";
94 regulator-name = "fixed-1.8V";
95 regulator-min-microvolt = <1800000>;
96 regulator-max-microvolt = <1800000>;
101 reg_3p3v: regulator1 {
102 compatible = "regulator-fixed";
103 regulator-name = "fixed-3.3V";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
110 reg_12v: regulator2 {
111 compatible = "regulator-fixed";
112 regulator-name = "fixed-12V";
113 regulator-min-microvolt = <12000000>;
114 regulator-max-microvolt = <12000000>;
120 compatible = "audio-graph-card";
122 label = "rcar-sound";
124 dais = <&rsnd_port0>;
127 vbus0_usb2: regulator-vbus0-usb2 {
128 compatible = "regulator-fixed";
130 regulator-name = "USB20_VBUS0";
131 regulator-min-microvolt = <5000000>;
132 regulator-max-microvolt = <5000000>;
134 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
138 vcc_sdhi0: regulator-vcc-sdhi0 {
139 compatible = "regulator-fixed";
141 regulator-name = "SDHI0 Vcc";
142 regulator-min-microvolt = <3300000>;
143 regulator-max-microvolt = <3300000>;
145 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
149 vccq_sdhi0: regulator-vccq-sdhi0 {
150 compatible = "regulator-gpio";
152 regulator-name = "SDHI0 VccQ";
153 regulator-min-microvolt = <1800000>;
154 regulator-max-microvolt = <3300000>;
156 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
162 vcc_sdhi3: regulator-vcc-sdhi3 {
163 compatible = "regulator-fixed";
165 regulator-name = "SDHI3 Vcc";
166 regulator-min-microvolt = <3300000>;
167 regulator-max-microvolt = <3300000>;
169 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
173 vccq_sdhi3: regulator-vccq-sdhi3 {
174 compatible = "regulator-gpio";
176 regulator-name = "SDHI3 VccQ";
177 regulator-min-microvolt = <1800000>;
178 regulator-max-microvolt = <3300000>;
180 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
187 compatible = "hdmi-connector";
192 hdmi0_con: endpoint {
198 compatible = "hdmi-connector";
203 hdmi1_con: endpoint {
209 compatible = "vga-connector";
213 remote-endpoint = <&adv7123_out>;
219 compatible = "adi,adv7123";
222 #address-cells = <1>;
227 adv7123_in: endpoint {
228 remote-endpoint = <&du_out_rgb>;
233 adv7123_out: endpoint {
234 remote-endpoint = <&vga_in>;
241 compatible = "fixed-clock";
243 clock-frequency = <24576000>;
246 /* External DU dot clocks */
248 compatible = "fixed-clock";
250 clock-frequency = <33000000>;
254 compatible = "fixed-clock";
256 clock-frequency = <33000000>;
260 compatible = "fixed-clock";
262 clock-frequency = <25000000>;
267 clock-frequency = <22579200>;
271 pinctrl-0 = <&avb_pins>;
272 pinctrl-names = "default";
273 phy-handle = <&phy0>;
274 phy-mode = "rgmii-txid";
277 phy0: ethernet-phy@0 {
278 rxc-skew-ps = <1500>;
280 interrupt-parent = <&gpio2>;
281 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
282 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
295 remote-endpoint = <&adv7482_txb>;
310 data-lanes = <1 2 3 4>;
311 remote-endpoint = <&adv7482_txa>;
318 pinctrl-0 = <&du_pins>;
319 pinctrl-names = "default";
325 remote-endpoint = <&adv7123_in>;
341 clock-frequency = <32768>;
350 pinctrl-0 = <&i2c2_pins>;
351 pinctrl-names = "default";
355 clock-frequency = <100000>;
358 compatible = "asahi-kasei,ak4613";
359 #sound-dai-cells = <0>;
361 clocks = <&rcar_sound 3>;
363 asahi-kasei,in1-single-end;
364 asahi-kasei,in2-single-end;
365 asahi-kasei,out1-single-end;
366 asahi-kasei,out2-single-end;
367 asahi-kasei,out3-single-end;
368 asahi-kasei,out4-single-end;
369 asahi-kasei,out5-single-end;
370 asahi-kasei,out6-single-end;
373 ak4613_endpoint: endpoint {
374 remote-endpoint = <&rsnd_endpoint0>;
379 cs2000: clk_multiplier@4f {
381 compatible = "cirrus,cs2000-cp";
383 clocks = <&audio_clkout>, <&x12_clk>;
384 clock-names = "clk_in", "ref_clk";
386 assigned-clocks = <&cs2000>;
387 assigned-clock-rates = <24576000>; /* 1/1 divide */
395 compatible = "onnn,pca9654";
402 compatible = "maxim,max9611";
405 shunt-resistor-micro-ohms = <5000>;
409 compatible = "maxim,max9611";
412 shunt-resistor-micro-ohms = <5000>;
416 compatible = "adi,adv7482";
419 #address-cells = <1>;
422 interrupt-parent = <&gpio6>;
423 interrupt-names = "intrq1", "intrq2";
424 interrupts = <30 IRQ_TYPE_LEVEL_LOW>,
425 <31 IRQ_TYPE_LEVEL_LOW>;
430 adv7482_ain7: endpoint {
431 remote-endpoint = <&cvbs_con>;
438 adv7482_hdmi: endpoint {
439 remote-endpoint = <&hdmi_in_con>;
446 adv7482_txa: endpoint {
448 data-lanes = <1 2 3 4>;
449 remote-endpoint = <&csi40_in>;
456 adv7482_txb: endpoint {
459 remote-endpoint = <&csi20_in>;
469 pinctrl-0 = <&irq0_pins>;
470 pinctrl-names = "default";
472 compatible = "rohm,bd9571mwv";
474 interrupt-parent = <&intc_ex>;
475 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
476 interrupt-controller;
477 #interrupt-cells = <2>;
480 rohm,ddr-backup-power = <0xf>;
485 regulator-name = "dvfs";
486 regulator-min-microvolt = <750000>;
487 regulator-max-microvolt = <1030000>;
495 compatible = "rohm,br24t01", "atmel,24c01";
511 clock-frequency = <100000000>;
523 pinctrl-0 = <&scif_clk_pins>;
524 pinctrl-names = "default";
528 groups = "avb_link", "avb_mdio", "avb_mii";
534 drive-strength = <24>;
538 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
539 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
540 drive-strength = <12>;
545 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
555 groups = "intc_ex_irq0";
556 function = "intc_ex";
565 groups = "scif1_data_a", "scif1_ctrl";
570 groups = "scif2_data_a";
574 scif_clk_pins: scif_clk {
575 groups = "scif_clk_a";
576 function = "scif_clk";
580 groups = "sdhi0_data4", "sdhi0_ctrl";
582 power-source = <3300>;
585 sdhi0_pins_uhs: sd0_uhs {
586 groups = "sdhi0_data4", "sdhi0_ctrl";
588 power-source = <1800>;
592 groups = "sdhi2_data8", "sdhi2_ctrl";
594 power-source = <3300>;
597 sdhi2_pins_uhs: sd2_uhs {
598 groups = "sdhi2_data8", "sdhi2_ctrl";
600 power-source = <1800>;
604 groups = "sdhi3_data4", "sdhi3_ctrl";
606 power-source = <3300>;
609 sdhi3_pins_uhs: sd3_uhs {
610 groups = "sdhi3_data4", "sdhi3_ctrl";
612 power-source = <1800>;
616 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
620 sound_clk_pins: sound_clk {
621 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
622 "audio_clkout_a", "audio_clkout3_a";
623 function = "audio_clk";
655 pinctrl-0 = <&pwm1_pins>;
656 pinctrl-names = "default";
662 pinctrl-0 = <&sound_pins &sound_clk_pins>;
663 pinctrl-names = "default";
666 #sound-dai-cells = <0>;
668 /* audio_clkout0/1/2/3 */
670 clock-frequency = <12288000 11289600>;
674 /* update <audio_clk_b> to <cs2000> */
675 clocks = <&cpg CPG_MOD 1005>,
676 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
677 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
678 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
679 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
680 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
681 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
682 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
683 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
684 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
685 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
686 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
687 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
688 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
689 <&audio_clk_a>, <&cs2000>,
691 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
695 rsnd_endpoint0: endpoint {
696 remote-endpoint = <&ak4613_endpoint>;
698 dai-format = "left_j";
699 bitclock-master = <&rsnd_endpoint0>;
700 frame-master = <&rsnd_endpoint0>;
702 playback = <&ssi0 &src0 &dvc0>;
703 capture = <&ssi1 &src1 &dvc1>;
710 pinctrl-0 = <&scif1_pins>;
711 pinctrl-names = "default";
718 pinctrl-0 = <&scif2_pins>;
719 pinctrl-names = "default";
725 clock-frequency = <14745600>;
729 pinctrl-0 = <&sdhi0_pins>;
730 pinctrl-1 = <&sdhi0_pins_uhs>;
731 pinctrl-names = "default", "state_uhs";
733 vmmc-supply = <&vcc_sdhi0>;
734 vqmmc-supply = <&vccq_sdhi0>;
735 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
736 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
743 /* used for on-board 8bit eMMC */
744 pinctrl-0 = <&sdhi2_pins>;
745 pinctrl-1 = <&sdhi2_pins_uhs>;
746 pinctrl-names = "default", "state_uhs";
748 vmmc-supply = <®_3p3v>;
749 vqmmc-supply = <®_1p8v>;
753 fixed-emmc-driver-type = <1>;
758 pinctrl-0 = <&sdhi3_pins>;
759 pinctrl-1 = <&sdhi3_pins_uhs>;
760 pinctrl-names = "default", "state_uhs";
762 vmmc-supply = <&vcc_sdhi3>;
763 vqmmc-supply = <&vccq_sdhi3>;
764 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
765 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
776 clock-frequency = <50000000>;
780 pinctrl-0 = <&usb0_pins>;
781 pinctrl-names = "default";
783 vbus-supply = <&vbus0_usb2>;
788 pinctrl-0 = <&usb1_pins>;
789 pinctrl-names = "default";
806 clock-frequency = <100000000>;
847 pinctrl-0 = <&usb30_pins>;
848 pinctrl-names = "default";