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@1 {
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@2 {
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@3 {
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@4 {
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 audio_clkout: audio_clkout {
115 * This is same as <&rcar_sound 0>
116 * but needed to avoid cs2000/rcar_sound probe dead-lock
118 compatible = "fixed-clock";
120 clock-frequency = <11289600>;
124 compatible = "simple-audio-card";
126 simple-audio-card,format = "left_j";
127 simple-audio-card,bitclock-master = <&sndcpu>;
128 simple-audio-card,frame-master = <&sndcpu>;
130 sndcpu: simple-audio-card,cpu {
131 sound-dai = <&rcar_sound>;
134 sndcodec: simple-audio-card,codec {
135 sound-dai = <&ak4613>;
141 clock-frequency = <16666666>;
145 clock-frequency = <32768>;
149 pinctrl-0 = <&scif_clk_pins>;
150 pinctrl-names = "default";
153 groups = "scif1_data_a", "scif1_ctrl";
157 groups = "scif2_data_a";
160 scif_clk_pins: scif_clk {
161 groups = "scif_clk_a";
162 function = "scif_clk";
176 groups = "sdhi0_data4", "sdhi0_ctrl";
181 groups = "sdhi3_data4", "sdhi3_ctrl";
186 groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
190 sound_clk_pins: sound_clk {
191 groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
192 "audio_clkout_a", "audio_clkout3_a";
193 function = "audio_clk";
208 pinctrl-0 = <&scif1_pins>;
209 pinctrl-names = "default";
215 pinctrl-0 = <&scif2_pins>;
216 pinctrl-names = "default";
222 clock-frequency = <14745600>;
227 pinctrl-0 = <&i2c2_pins>;
228 pinctrl-names = "default";
232 clock-frequency = <100000>;
235 compatible = "asahi-kasei,ak4613";
236 #sound-dai-cells = <0>;
238 clocks = <&rcar_sound 3>;
240 asahi-kasei,in1-single-end;
241 asahi-kasei,in2-single-end;
242 asahi-kasei,out1-single-end;
243 asahi-kasei,out2-single-end;
244 asahi-kasei,out3-single-end;
245 asahi-kasei,out4-single-end;
246 asahi-kasei,out5-single-end;
247 asahi-kasei,out6-single-end;
250 cs2000: clk_multiplier@4f {
252 compatible = "cirrus,cs2000-cp";
254 clocks = <&audio_clkout>, <&x12_clk>;
255 clock-names = "clk_in", "ref_clk";
257 assigned-clocks = <&cs2000>;
258 assigned-clock-rates = <24576000>; /* 1/1 divide */
263 pinctrl-0 = <&sound_pins &sound_clk_pins>;
264 pinctrl-names = "default";
267 #sound-dai-cells = <0>;
269 /* audio_clkout0/1/2/3 */
271 clock-frequency = <11289600>;
275 /* update <audio_clk_b> to <cs2000> */
276 clocks = <&cpg CPG_MOD 1005>,
277 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
278 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
279 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
280 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
281 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
282 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
283 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
284 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
285 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
286 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
287 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
288 <&audio_clk_a>, <&cs2000>,
290 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
294 playback = <&ssi0 &src0 &dvc0>;
295 capture = <&ssi1 &src1 &dvc1>;
305 pinctrl-0 = <&sdhi0_pins>;
306 pinctrl-names = "default";
308 vmmc-supply = <&vcc_sdhi0>;
309 vqmmc-supply = <&vccq_sdhi0>;
310 cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
311 wp-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
317 pinctrl-0 = <&sdhi3_pins>;
318 pinctrl-names = "default";
320 vmmc-supply = <&vcc_sdhi3>;
321 vqmmc-supply = <&vccq_sdhi3>;
322 cd-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
323 wp-gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>;
333 clock-frequency = <22579200>;
337 pinctrl-0 = <&avb_pins>;
338 pinctrl-names = "default";
339 renesas,no-ether-link;
340 phy-handle = <&phy0>;
343 phy0: ethernet-phy@0 {
357 interrupt-parent = <&gpio2>;
358 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
367 pinctrl-0 = <&usb1_pins>;
368 pinctrl-names = "default";
374 pinctrl-0 = <&usb2_pins>;
375 pinctrl-names = "default";
397 clock-frequency = <100000000>;