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"
38 model = "Renesas Salvator-X board based on r8a7795";
39 compatible = "renesas,salvator-x", "renesas,r8a7795";
48 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
49 stdout-path = "serial0:115200n8";
53 device_type = "memory";
54 /* first 128MB is reserved for secure area. */
55 reg = <0x0 0x48000000 0x0 0x38000000>;
59 compatible = "fixed-clock";
61 clock-frequency = <24576000>;
64 audio_clkout: audio_clkout {
66 * This is same as <&rcar_sound 0>
67 * but needed to avoid cs2000/rcar_sound probe dead-lock
69 compatible = "fixed-clock";
71 clock-frequency = <11289600>;
75 compatible = "simple-audio-card";
77 simple-audio-card,format = "left_j";
78 simple-audio-card,bitclock-master = <&sndcpu>;
79 simple-audio-card,frame-master = <&sndcpu>;
81 sndcpu: simple-audio-card,cpu {
82 sound-dai = <&rcar_sound>;
85 sndcodec: simple-audio-card,codec {
86 sound-dai = <&ak4613>;
92 clock-frequency = <16666666>;
96 pinctrl-0 = <&scif_clk_pins>;
97 pinctrl-names = "default";
100 renesas,groups = "scif1_data_a", "scif1_ctrl";
101 renesas,function = "scif1";
104 renesas,groups = "scif2_data_a";
105 renesas,function = "scif2";
107 scif_clk_pins: scif_clk {
108 renesas,groups = "scif_clk_a";
109 renesas,function = "scif_clk";
113 renesas,groups = "i2c2_a";
114 renesas,function = "i2c2";
118 renesas,groups = "avb_mdc";
119 renesas,function = "avb";
123 renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
124 renesas,function = "ssi";
127 sound_clk_pins: sound_clk {
128 renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
129 "audio_clkout_a", "audio_clkout3_a";
130 renesas,function = "audio_clk";
135 pinctrl-0 = <&scif1_pins>;
136 pinctrl-names = "default";
142 pinctrl-0 = <&scif2_pins>;
143 pinctrl-names = "default";
149 clock-frequency = <14745600>;
154 pinctrl-0 = <&i2c2_pins>;
155 pinctrl-names = "default";
159 clock-frequency = <100000>;
162 compatible = "asahi-kasei,ak4613";
163 #sound-dai-cells = <0>;
165 clocks = <&rcar_sound 3>;
167 asahi-kasei,in1-single-end;
168 asahi-kasei,in2-single-end;
169 asahi-kasei,out1-single-end;
170 asahi-kasei,out2-single-end;
171 asahi-kasei,out3-single-end;
172 asahi-kasei,out4-single-end;
173 asahi-kasei,out5-single-end;
174 asahi-kasei,out6-single-end;
177 cs2000: clk_multiplier@4f {
179 compatible = "cirrus,cs2000-cp";
181 clocks = <&audio_clkout>, <&x12_clk>;
182 clock-names = "clk_in", "ref_clk";
184 assigned-clocks = <&cs2000>;
185 assigned-clock-rates = <24576000>; /* 1/1 divide */
190 pinctrl-0 = <&sound_pins &sound_clk_pins>;
191 pinctrl-names = "default";
194 #sound-dai-cells = <0>;
196 /* audio_clkout0/1/2/3 */
198 clock-frequency = <11289600>;
202 /* update <audio_clk_b> to <cs2000> */
203 clocks = <&cpg CPG_MOD 1005>,
204 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
205 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
206 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
207 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
208 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
209 <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
210 <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
211 <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
212 <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
213 <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
214 <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
215 <&audio_clk_a>, <&cs2000>,
217 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
221 playback = <&ssi0 &src0 &dvc0>;
222 capture = <&ssi1 &src1 &dvc1>;
236 clock-frequency = <22579200>;
240 pinctrl-0 = <&avb_pins>;
241 pinctrl-names = "default";
242 renesas,no-ether-link;
243 phy-handle = <&phy0>;
246 phy0: ethernet-phy@0 {
260 interrupt-parent = <&gpio2>;
261 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;