2 * Device Tree Source for the Salvator-X board
4 * Copyright (C) 2015 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
35 #include "r8a7795.dtsi"
36 #include <dt-bindings/gpio/gpio.h>
39 model = "Renesas Salvator-X board based on r8a7795";
40 compatible = "renesas,salvator-x", "renesas,r8a7795";
49 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
50 stdout-path = "serial0:115200n8";
54 device_type = "memory";
55 /* first 128MB is reserved for secure area. */
56 reg = <0x0 0x48000000 0x0 0x38000000>;
60 compatible = "fixed-clock";
62 clock-frequency = <24576000>;
65 vcc_sdhi0: regulator-vcc-sdhi0 {
66 compatible = "regulator-fixed";
68 regulator-name = "SDHI0 Vcc";
69 regulator-min-microvolt = <3300000>;
70 regulator-max-microvolt = <3300000>;
72 gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>;
76 vccq_sdhi0: regulator-vccq-sdhi0 {
77 compatible = "regulator-gpio";
79 regulator-name = "SDHI0 VccQ";
80 regulator-min-microvolt = <1800000>;
81 regulator-max-microvolt = <3300000>;
83 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
89 vcc_sdhi3: regulator-vcc-sdhi3 {
90 compatible = "regulator-fixed";
92 regulator-name = "SDHI3 Vcc";
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
96 gpio = <&gpio3 15 GPIO_ACTIVE_HIGH>;
100 vccq_sdhi3: regulator-vccq-sdhi3 {
101 compatible = "regulator-gpio";
103 regulator-name = "SDHI3 VccQ";
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <3300000>;
107 gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
113 vbus0_usb2: regulator-vbus0-usb2 {
114 compatible = "regulator-fixed";
116 regulator-name = "USB20_VBUS0";
117 regulator-min-microvolt = <5000000>;
118 regulator-max-microvolt = <5000000>;
120 gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>;
124 audio_clkout: audio_clkout {
126 * This is same as <&rcar_sound 0>
127 * but needed to avoid cs2000/rcar_sound probe dead-lock
129 compatible = "fixed-clock";
131 clock-frequency = <11289600>;
135 compatible = "simple-audio-card";
137 simple-audio-card,format = "left_j";
138 simple-audio-card,bitclock-master = <&sndcpu>;
139 simple-audio-card,frame-master = <&sndcpu>;
141 sndcpu: simple-audio-card,cpu {
142 sound-dai = <&rcar_sound>;
145 sndcodec: simple-audio-card,codec {
146 sound-dai = <&ak4613>;
151 compatible = "adi,adv7123";
154 #address-cells = <1>;
159 adv7123_in: endpoint {
160 remote-endpoint = <&du_out_rgb>;
165 adv7123_out: endpoint {
166 remote-endpoint = <&vga_in>;
173 compatible = "vga-connector";
177 remote-endpoint = <&adv7123_out>;
184 pinctrl-0 = <&du_pins>;
185 pinctrl-names = "default";
191 remote-endpoint = <&adv7123_in>;
198 clock-frequency = <16666666>;
202 clock-frequency = <32768>;
206 pinctrl-0 = <&scif_clk_pins>;
207 pinctrl-names = "default";
210 groups = "scif1_data_a", "scif1_ctrl";
214 groups = "scif2_data_a";
217 scif_clk_pins: scif_clk {
218 groups = "scif_clk_a";
219 function = "scif_clk";
233 groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
238 groups = "sdhi0_data4", "sdhi0_ctrl";
243 groups = "sdhi3_data4", "sdhi3_ctrl";
248 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
252 sound_clk_pins: sound_clk {
253 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
254 "audio_clkout_a", "audio_clkout3_a";
255 function = "audio_clk";
275 pinctrl-0 = <&scif1_pins>;
276 pinctrl-names = "default";
283 pinctrl-0 = <&scif2_pins>;
284 pinctrl-names = "default";
290 clock-frequency = <14745600>;
295 pinctrl-0 = <&i2c2_pins>;
296 pinctrl-names = "default";
300 clock-frequency = <100000>;
303 compatible = "asahi-kasei,ak4613";
304 #sound-dai-cells = <0>;
306 clocks = <&rcar_sound 3>;
308 asahi-kasei,in1-single-end;
309 asahi-kasei,in2-single-end;
310 asahi-kasei,out1-single-end;
311 asahi-kasei,out2-single-end;
312 asahi-kasei,out3-single-end;
313 asahi-kasei,out4-single-end;
314 asahi-kasei,out5-single-end;
315 asahi-kasei,out6-single-end;
318 cs2000: clk_multiplier@4f {
320 compatible = "cirrus,cs2000-cp";
322 clocks = <&audio_clkout>, <&x12_clk>;
323 clock-names = "clk_in", "ref_clk";
325 assigned-clocks = <&cs2000>;
326 assigned-clock-rates = <24576000>; /* 1/1 divide */
331 pinctrl-0 = <&sound_pins &sound_clk_pins>;
332 pinctrl-names = "default";
335 #sound-dai-cells = <0>;
337 /* audio_clkout0/1/2/3 */
339 clock-frequency = <11289600>;
343 /* update <audio_clk_b> to <cs2000> */
344 clocks = <&cpg CPG_MOD 1005>,
345 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
346 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
347 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
348 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
349 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
350 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
351 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
352 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
353 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
354 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
355 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
356 <&audio_clk_a>, <&cs2000>,
358 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
362 playback = <&ssi0 &src0 &dvc0>;
363 capture = <&ssi1 &src1 &dvc1>;
373 pinctrl-0 = <&sdhi0_pins>;
374 pinctrl-names = "default";
376 vmmc-supply = <&vcc_sdhi0>;
377 vqmmc-supply = <&vccq_sdhi0>;
378 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
379 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
385 pinctrl-0 = <&sdhi3_pins>;
386 pinctrl-names = "default";
388 vmmc-supply = <&vcc_sdhi3>;
389 vqmmc-supply = <&vccq_sdhi3>;
390 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
391 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
406 clock-frequency = <22579200>;
410 pinctrl-0 = <&avb_pins>;
411 pinctrl-names = "default";
412 renesas,no-ether-link;
413 phy-handle = <&phy0>;
416 phy0: ethernet-phy@0 {
430 interrupt-parent = <&gpio2>;
431 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
440 pinctrl-0 = <&usb0_pins>;
441 pinctrl-names = "default";
443 vbus-supply = <&vbus0_usb2>;
448 pinctrl-0 = <&usb1_pins>;
449 pinctrl-names = "default";
455 pinctrl-0 = <&usb2_pins>;
456 pinctrl-names = "default";
490 clock-frequency = <100000000>;