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>;
252 phy0: ethernet-phy@0 {
253 rxc-skew-ps = <1500>;
255 interrupt-parent = <&gpio2>;
256 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
261 pinctrl-0 = <&du_pins>;
262 pinctrl-names = "default";
268 remote-endpoint = <&adv7123_in>;
283 clock-frequency = <32768>;
291 pinctrl-0 = <&i2c2_pins>;
292 pinctrl-names = "default";
296 clock-frequency = <100000>;
299 compatible = "asahi-kasei,ak4613";
300 #sound-dai-cells = <0>;
302 clocks = <&rcar_sound 3>;
304 asahi-kasei,in1-single-end;
305 asahi-kasei,in2-single-end;
306 asahi-kasei,out1-single-end;
307 asahi-kasei,out2-single-end;
308 asahi-kasei,out3-single-end;
309 asahi-kasei,out4-single-end;
310 asahi-kasei,out5-single-end;
311 asahi-kasei,out6-single-end;
314 cs2000: clk_multiplier@4f {
316 compatible = "cirrus,cs2000-cp";
318 clocks = <&audio_clkout>, <&x12_clk>;
319 clock-names = "clk_in", "ref_clk";
321 assigned-clocks = <&cs2000>;
322 assigned-clock-rates = <24576000>; /* 1/1 divide */
330 compatible = "maxim,max9611";
333 shunt-resistor-micro-ohms = <5000>;
337 compatible = "maxim,max9611";
340 shunt-resistor-micro-ohms = <5000>;
357 clock-frequency = <100000000>;
369 pinctrl-0 = <&scif_clk_pins>;
370 pinctrl-names = "default";
374 groups = "avb_link", "avb_phy_int", "avb_mdc",
381 drive-strength = <24>;
385 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
386 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
387 drive-strength = <12>;
392 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
407 groups = "scif1_data_a", "scif1_ctrl";
412 groups = "scif2_data_a";
416 scif_clk_pins: scif_clk {
417 groups = "scif_clk_a";
418 function = "scif_clk";
422 groups = "sdhi0_data4", "sdhi0_ctrl";
424 power-source = <3300>;
427 sdhi0_pins_uhs: sd0_uhs {
428 groups = "sdhi0_data4", "sdhi0_ctrl";
430 power-source = <1800>;
434 groups = "sdhi2_data8", "sdhi2_ctrl";
436 power-source = <3300>;
439 sdhi2_pins_uhs: sd2_uhs {
440 groups = "sdhi2_data8", "sdhi2_ctrl";
442 power-source = <1800>;
446 groups = "sdhi3_data4", "sdhi3_ctrl";
448 power-source = <3300>;
451 sdhi3_pins_uhs: sd3_uhs {
452 groups = "sdhi3_data4", "sdhi3_ctrl";
454 power-source = <1800>;
458 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
462 sound_clk_pins: sound_clk {
463 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
464 "audio_clkout_a", "audio_clkout3_a";
465 function = "audio_clk";
492 pinctrl-0 = <&pwm1_pins>;
493 pinctrl-names = "default";
499 pinctrl-0 = <&sound_pins &sound_clk_pins>;
500 pinctrl-names = "default";
503 #sound-dai-cells = <0>;
505 /* audio_clkout0/1/2/3 */
507 clock-frequency = <12288000 11289600>;
511 /* update <audio_clk_b> to <cs2000> */
512 clocks = <&cpg CPG_MOD 1005>,
513 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
514 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
515 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
516 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
517 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
518 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
519 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
520 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
521 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
522 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
523 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
524 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
525 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
526 <&audio_clk_a>, <&cs2000>,
528 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
532 playback = <&ssi0 &src0 &dvc0>;
533 capture = <&ssi1 &src1 &dvc1>;
539 pinctrl-0 = <&scif1_pins>;
540 pinctrl-names = "default";
547 pinctrl-0 = <&scif2_pins>;
548 pinctrl-names = "default";
554 clock-frequency = <14745600>;
558 pinctrl-0 = <&sdhi0_pins>;
559 pinctrl-1 = <&sdhi0_pins_uhs>;
560 pinctrl-names = "default", "state_uhs";
562 vmmc-supply = <&vcc_sdhi0>;
563 vqmmc-supply = <&vccq_sdhi0>;
564 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
565 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
572 /* used for on-board 8bit eMMC */
573 pinctrl-0 = <&sdhi2_pins>;
574 pinctrl-1 = <&sdhi2_pins_uhs>;
575 pinctrl-names = "default", "state_uhs";
577 vmmc-supply = <®_3p3v>;
578 vqmmc-supply = <®_1p8v>;
586 pinctrl-0 = <&sdhi3_pins>;
587 pinctrl-1 = <&sdhi3_pins_uhs>;
588 pinctrl-names = "default", "state_uhs";
590 vmmc-supply = <&vcc_sdhi3>;
591 vqmmc-supply = <&vccq_sdhi3>;
592 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
593 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
604 pinctrl-0 = <&usb0_pins>;
605 pinctrl-names = "default";
607 vbus-supply = <&vbus0_usb2>;
612 pinctrl-0 = <&usb1_pins>;
613 pinctrl-names = "default";