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>;
189 remote-endpoint = <&adv7123_in>;
196 clock-frequency = <16666666>;
200 clock-frequency = <32768>;
204 pinctrl-0 = <&scif_clk_pins>;
205 pinctrl-names = "default";
208 groups = "scif1_data_a", "scif1_ctrl";
212 groups = "scif2_data_a";
215 scif_clk_pins: scif_clk {
216 groups = "scif_clk_a";
217 function = "scif_clk";
231 groups = "sdhi0_data4", "sdhi0_ctrl";
236 groups = "sdhi3_data4", "sdhi3_ctrl";
241 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
245 sound_clk_pins: sound_clk {
246 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
247 "audio_clkout_a", "audio_clkout3_a";
248 function = "audio_clk";
268 pinctrl-0 = <&scif1_pins>;
269 pinctrl-names = "default";
276 pinctrl-0 = <&scif2_pins>;
277 pinctrl-names = "default";
283 clock-frequency = <14745600>;
288 pinctrl-0 = <&i2c2_pins>;
289 pinctrl-names = "default";
293 clock-frequency = <100000>;
296 compatible = "asahi-kasei,ak4613";
297 #sound-dai-cells = <0>;
299 clocks = <&rcar_sound 3>;
301 asahi-kasei,in1-single-end;
302 asahi-kasei,in2-single-end;
303 asahi-kasei,out1-single-end;
304 asahi-kasei,out2-single-end;
305 asahi-kasei,out3-single-end;
306 asahi-kasei,out4-single-end;
307 asahi-kasei,out5-single-end;
308 asahi-kasei,out6-single-end;
311 cs2000: clk_multiplier@4f {
313 compatible = "cirrus,cs2000-cp";
315 clocks = <&audio_clkout>, <&x12_clk>;
316 clock-names = "clk_in", "ref_clk";
318 assigned-clocks = <&cs2000>;
319 assigned-clock-rates = <24576000>; /* 1/1 divide */
324 pinctrl-0 = <&sound_pins &sound_clk_pins>;
325 pinctrl-names = "default";
328 #sound-dai-cells = <0>;
330 /* audio_clkout0/1/2/3 */
332 clock-frequency = <11289600>;
336 /* update <audio_clk_b> to <cs2000> */
337 clocks = <&cpg CPG_MOD 1005>,
338 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
339 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
340 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
341 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
342 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
343 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
344 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
345 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
346 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
347 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
348 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
349 <&audio_clk_a>, <&cs2000>,
351 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
355 playback = <&ssi0 &src0 &dvc0>;
356 capture = <&ssi1 &src1 &dvc1>;
366 pinctrl-0 = <&sdhi0_pins>;
367 pinctrl-names = "default";
369 vmmc-supply = <&vcc_sdhi0>;
370 vqmmc-supply = <&vccq_sdhi0>;
371 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
372 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
378 pinctrl-0 = <&sdhi3_pins>;
379 pinctrl-names = "default";
381 vmmc-supply = <&vcc_sdhi3>;
382 vqmmc-supply = <&vccq_sdhi3>;
383 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
384 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
399 clock-frequency = <22579200>;
403 pinctrl-0 = <&avb_pins>;
404 pinctrl-names = "default";
405 renesas,no-ether-link;
406 phy-handle = <&phy0>;
409 phy0: ethernet-phy@0 {
423 interrupt-parent = <&gpio2>;
424 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
433 pinctrl-0 = <&usb0_pins>;
434 pinctrl-names = "default";
436 vbus-supply = <&vbus0_usb2>;
441 pinctrl-0 = <&usb1_pins>;
442 pinctrl-names = "default";
448 pinctrl-0 = <&usb2_pins>;
449 pinctrl-names = "default";
483 clock-frequency = <100000000>;