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 power-supply = <®_12v>;
66 enable-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
69 reg_1p8v: regulator0 {
70 compatible = "regulator-fixed";
71 regulator-name = "fixed-1.8V";
72 regulator-min-microvolt = <1800000>;
73 regulator-max-microvolt = <1800000>;
78 reg_3p3v: regulator1 {
79 compatible = "regulator-fixed";
80 regulator-name = "fixed-3.3V";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
88 compatible = "regulator-fixed";
89 regulator-name = "fixed-12V";
90 regulator-min-microvolt = <12000000>;
91 regulator-max-microvolt = <12000000>;
97 compatible = "audio-graph-card";
101 dais = <&rsnd_port0>;
104 vbus0_usb2: regulator-vbus0-usb2 {
105 compatible = "regulator-fixed";
107 regulator-name = "USB20_VBUS0";
108 regulator-min-microvolt = <5000000>;
109 regulator-max-microvolt = <5000000>;
111 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
115 vcc_sdhi0: regulator-vcc-sdhi0 {
116 compatible = "regulator-fixed";
118 regulator-name = "SDHI0 Vcc";
119 regulator-min-microvolt = <3300000>;
120 regulator-max-microvolt = <3300000>;
122 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
126 vccq_sdhi0: regulator-vccq-sdhi0 {
127 compatible = "regulator-gpio";
129 regulator-name = "SDHI0 VccQ";
130 regulator-min-microvolt = <1800000>;
131 regulator-max-microvolt = <3300000>;
133 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
139 vcc_sdhi3: regulator-vcc-sdhi3 {
140 compatible = "regulator-fixed";
142 regulator-name = "SDHI3 Vcc";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
146 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
150 vccq_sdhi3: regulator-vccq-sdhi3 {
151 compatible = "regulator-gpio";
153 regulator-name = "SDHI3 VccQ";
154 regulator-min-microvolt = <1800000>;
155 regulator-max-microvolt = <3300000>;
157 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
164 compatible = "hdmi-connector";
169 hdmi0_con: endpoint {
175 compatible = "hdmi-connector";
180 hdmi1_con: endpoint {
186 compatible = "vga-connector";
190 remote-endpoint = <&adv7123_out>;
196 compatible = "adi,adv7123";
199 #address-cells = <1>;
204 adv7123_in: endpoint {
205 remote-endpoint = <&du_out_rgb>;
210 adv7123_out: endpoint {
211 remote-endpoint = <&vga_in>;
218 compatible = "fixed-clock";
220 clock-frequency = <24576000>;
223 /* External DU dot clocks */
225 compatible = "fixed-clock";
227 clock-frequency = <33000000>;
231 compatible = "fixed-clock";
233 clock-frequency = <33000000>;
237 compatible = "fixed-clock";
239 clock-frequency = <25000000>;
244 clock-frequency = <22579200>;
248 pinctrl-0 = <&avb_pins>;
249 pinctrl-names = "default";
250 renesas,no-ether-link;
251 phy-handle = <&phy0>;
254 phy0: ethernet-phy@0 {
255 rxc-skew-ps = <1500>;
257 interrupt-parent = <&gpio2>;
258 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
259 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
264 pinctrl-0 = <&du_pins>;
265 pinctrl-names = "default";
271 remote-endpoint = <&adv7123_in>;
286 clock-frequency = <32768>;
294 pinctrl-0 = <&i2c2_pins>;
295 pinctrl-names = "default";
299 clock-frequency = <100000>;
302 compatible = "asahi-kasei,ak4613";
303 #sound-dai-cells = <0>;
305 clocks = <&rcar_sound 3>;
307 asahi-kasei,in1-single-end;
308 asahi-kasei,in2-single-end;
309 asahi-kasei,out1-single-end;
310 asahi-kasei,out2-single-end;
311 asahi-kasei,out3-single-end;
312 asahi-kasei,out4-single-end;
313 asahi-kasei,out5-single-end;
314 asahi-kasei,out6-single-end;
317 ak4613_endpoint: endpoint {
318 remote-endpoint = <&rsnd_endpoint0>;
323 cs2000: clk_multiplier@4f {
325 compatible = "cirrus,cs2000-cp";
327 clocks = <&audio_clkout>, <&x12_clk>;
328 clock-names = "clk_in", "ref_clk";
330 assigned-clocks = <&cs2000>;
331 assigned-clock-rates = <24576000>; /* 1/1 divide */
339 compatible = "maxim,max9611";
342 shunt-resistor-micro-ohms = <5000>;
346 compatible = "maxim,max9611";
349 shunt-resistor-micro-ohms = <5000>;
366 clock-frequency = <100000000>;
378 pinctrl-0 = <&scif_clk_pins>;
379 pinctrl-names = "default";
383 groups = "avb_link", "avb_phy_int", "avb_mdc",
390 drive-strength = <24>;
394 pins = "PIN_AVB_TX_CTL", "PIN_AVB_TXC", "PIN_AVB_TD0",
395 "PIN_AVB_TD1", "PIN_AVB_TD2", "PIN_AVB_TD3";
396 drive-strength = <12>;
401 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
416 groups = "scif1_data_a", "scif1_ctrl";
421 groups = "scif2_data_a";
425 scif_clk_pins: scif_clk {
426 groups = "scif_clk_a";
427 function = "scif_clk";
431 groups = "sdhi0_data4", "sdhi0_ctrl";
433 power-source = <3300>;
436 sdhi0_pins_uhs: sd0_uhs {
437 groups = "sdhi0_data4", "sdhi0_ctrl";
439 power-source = <1800>;
443 groups = "sdhi2_data8", "sdhi2_ctrl";
445 power-source = <3300>;
448 sdhi2_pins_uhs: sd2_uhs {
449 groups = "sdhi2_data8", "sdhi2_ctrl";
451 power-source = <1800>;
455 groups = "sdhi3_data4", "sdhi3_ctrl";
457 power-source = <3300>;
460 sdhi3_pins_uhs: sd3_uhs {
461 groups = "sdhi3_data4", "sdhi3_ctrl";
463 power-source = <1800>;
467 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
471 sound_clk_pins: sound_clk {
472 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
473 "audio_clkout_a", "audio_clkout3_a";
474 function = "audio_clk";
501 pinctrl-0 = <&pwm1_pins>;
502 pinctrl-names = "default";
508 pinctrl-0 = <&sound_pins &sound_clk_pins>;
509 pinctrl-names = "default";
512 #sound-dai-cells = <0>;
514 /* audio_clkout0/1/2/3 */
516 clock-frequency = <12288000 11289600>;
520 /* update <audio_clk_b> to <cs2000> */
521 clocks = <&cpg CPG_MOD 1005>,
522 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
523 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
524 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
525 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
526 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
527 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
528 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
529 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
530 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
531 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
532 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
533 <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
534 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
535 <&audio_clk_a>, <&cs2000>,
537 <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
541 rsnd_endpoint0: endpoint {
542 remote-endpoint = <&ak4613_endpoint>;
544 dai-format = "left_j";
545 bitclock-master = <&rsnd_endpoint0>;
546 frame-master = <&rsnd_endpoint0>;
548 playback = <&ssi0 &src0 &dvc0>;
549 capture = <&ssi1 &src1 &dvc1>;
556 pinctrl-0 = <&scif1_pins>;
557 pinctrl-names = "default";
564 pinctrl-0 = <&scif2_pins>;
565 pinctrl-names = "default";
571 clock-frequency = <14745600>;
575 pinctrl-0 = <&sdhi0_pins>;
576 pinctrl-1 = <&sdhi0_pins_uhs>;
577 pinctrl-names = "default", "state_uhs";
579 vmmc-supply = <&vcc_sdhi0>;
580 vqmmc-supply = <&vccq_sdhi0>;
581 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
582 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
589 /* used for on-board 8bit eMMC */
590 pinctrl-0 = <&sdhi2_pins>;
591 pinctrl-1 = <&sdhi2_pins_uhs>;
592 pinctrl-names = "default", "state_uhs";
594 vmmc-supply = <®_3p3v>;
595 vqmmc-supply = <®_1p8v>;
603 pinctrl-0 = <&sdhi3_pins>;
604 pinctrl-1 = <&sdhi3_pins_uhs>;
605 pinctrl-names = "default", "state_uhs";
607 vmmc-supply = <&vcc_sdhi3>;
608 vqmmc-supply = <&vccq_sdhi3>;
609 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
610 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
621 pinctrl-0 = <&usb0_pins>;
622 pinctrl-names = "default";
624 vbus-supply = <&vbus0_usb2>;
629 pinctrl-0 = <&usb1_pins>;
630 pinctrl-names = "default";