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 = <11289600>;
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 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
68 reg_1p8v: regulator0 {
69 compatible = "regulator-fixed";
70 regulator-name = "fixed-1.8V";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <1800000>;
77 reg_3p3v: regulator1 {
78 compatible = "regulator-fixed";
79 regulator-name = "fixed-3.3V";
80 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>;
87 compatible = "simple-audio-card";
89 simple-audio-card,format = "left_j";
90 simple-audio-card,bitclock-master = <&sndcpu>;
91 simple-audio-card,frame-master = <&sndcpu>;
93 sndcpu: simple-audio-card,cpu {
94 sound-dai = <&rcar_sound>;
97 sndcodec: simple-audio-card,codec {
98 sound-dai = <&ak4613>;
102 vbus0_usb2: regulator-vbus0-usb2 {
103 compatible = "regulator-fixed";
105 regulator-name = "USB20_VBUS0";
106 regulator-min-microvolt = <5000000>;
107 regulator-max-microvolt = <5000000>;
109 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
113 vcc_sdhi0: regulator-vcc-sdhi0 {
114 compatible = "regulator-fixed";
116 regulator-name = "SDHI0 Vcc";
117 regulator-min-microvolt = <3300000>;
118 regulator-max-microvolt = <3300000>;
120 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
124 vccq_sdhi0: regulator-vccq-sdhi0 {
125 compatible = "regulator-gpio";
127 regulator-name = "SDHI0 VccQ";
128 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <3300000>;
131 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
137 vcc_sdhi3: regulator-vcc-sdhi3 {
138 compatible = "regulator-fixed";
140 regulator-name = "SDHI3 Vcc";
141 regulator-min-microvolt = <3300000>;
142 regulator-max-microvolt = <3300000>;
144 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
148 vccq_sdhi3: regulator-vccq-sdhi3 {
149 compatible = "regulator-gpio";
151 regulator-name = "SDHI3 VccQ";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <3300000>;
155 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
162 compatible = "hdmi-connector";
167 hdmi0_con: endpoint {
173 compatible = "hdmi-connector";
178 hdmi1_con: endpoint {
184 compatible = "vga-connector";
188 remote-endpoint = <&adv7123_out>;
194 compatible = "adi,adv7123";
197 #address-cells = <1>;
202 adv7123_in: endpoint {
203 remote-endpoint = <&du_out_rgb>;
208 adv7123_out: endpoint {
209 remote-endpoint = <&vga_in>;
216 compatible = "fixed-clock";
218 clock-frequency = <24576000>;
221 /* External DU dot clocks */
223 compatible = "fixed-clock";
225 clock-frequency = <33000000>;
229 compatible = "fixed-clock";
231 clock-frequency = <33000000>;
235 compatible = "fixed-clock";
237 clock-frequency = <25000000>;
242 clock-frequency = <22579200>;
246 pinctrl-0 = <&avb_pins>;
247 pinctrl-names = "default";
248 renesas,no-ether-link;
249 phy-handle = <&phy0>;
250 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
253 phy0: ethernet-phy@0 {
254 rxc-skew-ps = <1500>;
256 interrupt-parent = <&gpio2>;
257 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
262 pinctrl-0 = <&du_pins>;
263 pinctrl-names = "default";
269 remote-endpoint = <&adv7123_in>;
273 lvds_connector: endpoint {
288 clock-frequency = <32768>;
296 pinctrl-0 = <&i2c2_pins>;
297 pinctrl-names = "default";
301 clock-frequency = <100000>;
304 compatible = "asahi-kasei,ak4613";
305 #sound-dai-cells = <0>;
307 clocks = <&rcar_sound 3>;
309 asahi-kasei,in1-single-end;
310 asahi-kasei,in2-single-end;
311 asahi-kasei,out1-single-end;
312 asahi-kasei,out2-single-end;
313 asahi-kasei,out3-single-end;
314 asahi-kasei,out4-single-end;
315 asahi-kasei,out5-single-end;
316 asahi-kasei,out6-single-end;
319 cs2000: clk_multiplier@4f {
321 compatible = "cirrus,cs2000-cp";
323 clocks = <&audio_clkout>, <&x12_clk>;
324 clock-names = "clk_in", "ref_clk";
326 assigned-clocks = <&cs2000>;
327 assigned-clock-rates = <24576000>; /* 1/1 divide */
335 compatible = "maxim,max9611";
338 shunt-resistor-micro-ohms = <5000>;
342 compatible = "maxim,max9611";
345 shunt-resistor-micro-ohms = <5000>;
362 clock-frequency = <100000000>;
374 pinctrl-0 = <&scif_clk_pins>;
375 pinctrl-names = "default";
379 groups = "avb_link", "avb_phy_int", "avb_mdc",
386 drive-strength = <24>;
390 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
391 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
392 drive-strength = <12>;
397 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
412 groups = "scif1_data_a", "scif1_ctrl";
417 groups = "scif2_data_a";
421 scif_clk_pins: scif_clk {
422 groups = "scif_clk_a";
423 function = "scif_clk";
427 groups = "sdhi0_data4", "sdhi0_ctrl";
429 power-source = <3300>;
432 sdhi0_pins_uhs: sd0_uhs {
433 groups = "sdhi0_data4", "sdhi0_ctrl";
435 power-source = <1800>;
439 groups = "sdhi2_data8", "sdhi2_ctrl";
441 power-source = <3300>;
444 sdhi2_pins_uhs: sd2_uhs {
445 groups = "sdhi2_data8", "sdhi2_ctrl";
447 power-source = <1800>;
451 groups = "sdhi3_data4", "sdhi3_ctrl";
453 power-source = <3300>;
456 sdhi3_pins_uhs: sd3_uhs {
457 groups = "sdhi3_data4", "sdhi3_ctrl";
459 power-source = <1800>;
463 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
467 sound_clk_pins: sound_clk {
468 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
469 "audio_clkout_a", "audio_clkout3_a";
470 function = "audio_clk";
497 pinctrl-0 = <&pwm1_pins>;
498 pinctrl-names = "default";
504 pinctrl-0 = <&sound_pins &sound_clk_pins>;
505 pinctrl-names = "default";
508 #sound-dai-cells = <0>;
510 /* audio_clkout0/1/2/3 */
512 clock-frequency = <12288000 11289600>;
516 /* update <audio_clk_b> to <cs2000> */
517 clocks = <&cpg CPG_MOD 1005>,
518 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
519 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
520 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
521 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
522 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
523 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
524 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
525 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
526 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
527 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
528 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
529 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
530 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
531 <&audio_clk_a>, <&cs2000>,
533 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
537 playback = <&ssi0 &src0 &dvc0>;
538 capture = <&ssi1 &src1 &dvc1>;
544 pinctrl-0 = <&scif1_pins>;
545 pinctrl-names = "default";
552 pinctrl-0 = <&scif2_pins>;
553 pinctrl-names = "default";
559 clock-frequency = <14745600>;
563 pinctrl-0 = <&sdhi0_pins>;
564 pinctrl-1 = <&sdhi0_pins_uhs>;
565 pinctrl-names = "default", "state_uhs";
567 vmmc-supply = <&vcc_sdhi0>;
568 vqmmc-supply = <&vccq_sdhi0>;
569 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
570 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
577 /* used for on-board 8bit eMMC */
578 pinctrl-0 = <&sdhi2_pins>;
579 pinctrl-1 = <&sdhi2_pins_uhs>;
580 pinctrl-names = "default", "state_uhs";
582 vmmc-supply = <®_3p3v>;
583 vqmmc-supply = <®_1p8v>;
591 pinctrl-0 = <&sdhi3_pins>;
592 pinctrl-1 = <&sdhi3_pins_uhs>;
593 pinctrl-names = "default", "state_uhs";
595 vmmc-supply = <&vcc_sdhi3>;
596 vqmmc-supply = <&vccq_sdhi3>;
597 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
598 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
609 pinctrl-0 = <&usb0_pins>;
610 pinctrl-names = "default";
612 vbus-supply = <&vbus0_usb2>;
617 pinctrl-0 = <&usb1_pins>;
618 pinctrl-names = "default";