blob: beeacfaf18d04b5b5bd61d12904bee3d8c72c68d [file] [log] [blame]
Kuninori Morimoto1950fab2015-10-02 11:56:12 +09001/*
2 * Device Tree Source for the Salvator-X board
3 *
4 * Copyright (C) 2015 Renesas Electronics Corp.
5 *
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.
9 */
10
Kuninori Morimoto672b7932015-11-25 06:39:13 +000011/*
12 * SSI-AK4613
13 *
14 * This command is required when Playback/Capture
15 *
16 * amixer set "DVC Out" 100%
17 * amixer set "DVC In" 100%
18 *
19 * You can use Mute
20 *
21 * amixer set "DVC Out Mute" on
22 * amixer set "DVC In Mute" on
23 *
24 * You can use Volume Ramp
25 *
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
29 * aplay xxx.wav &
30 * amixer set "DVC Out" 80% // Volume Down
31 * amixer set "DVC Out" 100% // Volume Up
32 */
33
Kuninori Morimoto1950fab2015-10-02 11:56:12 +090034/dts-v1/;
35#include "r8a7795.dtsi"
36
37/ {
38 model = "Renesas Salvator-X board based on r8a7795";
39 compatible = "renesas,salvator-x", "renesas,r8a7795";
40
41 aliases {
42 serial0 = &scif2;
43 serial1 = &scif1;
Geert Uytterhoeven10ca6db2015-11-02 13:31:48 +090044 ethernet0 = &avb;
Kuninori Morimoto1950fab2015-10-02 11:56:12 +090045 };
46
47 chosen {
Simon Hormanb2407c52015-11-02 13:31:46 +090048 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
Kuninori Morimoto1950fab2015-10-02 11:56:12 +090049 stdout-path = "serial0:115200n8";
50 };
51
52 memory@48000000 {
53 device_type = "memory";
54 /* first 128MB is reserved for secure area. */
55 reg = <0x0 0x48000000 0x0 0x38000000>;
56 };
Kuninori Morimoto994aadf2015-11-25 06:37:49 +000057
58 x12_clk: x12_clk {
59 compatible = "fixed-clock";
60 #clock-cells = <0>;
61 clock-frequency = <24576000>;
62 };
63
64 rsnd_ak4613: sound {
65 compatible = "simple-audio-card";
66
67 simple-audio-card,format = "left_j";
68 simple-audio-card,bitclock-master = <&sndcpu>;
69 simple-audio-card,frame-master = <&sndcpu>;
70
71 sndcpu: simple-audio-card,cpu {
72 sound-dai = <&rcar_sound>;
73 };
74
75 sndcodec: simple-audio-card,codec {
76 sound-dai = <&ak4613>;
77 };
78 };
Kuninori Morimoto1950fab2015-10-02 11:56:12 +090079};
80
81&extal_clk {
82 clock-frequency = <16666666>;
83};
84
85&pfc {
86 scif1_pins: scif1 {
87 renesas,groups = "scif1_data_a", "scif1_ctrl";
88 renesas,function = "scif1";
89 };
90 scif2_pins: scif2 {
91 renesas,groups = "scif2_data_a";
92 renesas,function = "scif2";
93 };
Kazuya Mizuguchi6fa501c2015-11-02 13:31:45 +090094
Kuninori Morimoto637d8012015-10-28 08:05:28 +090095 i2c2_pins: i2c2 {
96 renesas,groups = "i2c2_a";
97 renesas,function = "i2c2";
98 };
99
Kazuya Mizuguchi6fa501c2015-11-02 13:31:45 +0900100 avb_pins: avb {
101 renesas,groups = "avb_mdc";
102 renesas,function = "avb";
103 };
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000104
105 sound_pins: sound {
106 renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
107 renesas,function = "ssi";
108 };
109
110 sound_clk_pins: sound_clk {
111 renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
112 "audio_clkout_a", "audio_clkout3_a";
113 renesas,function = "audio_clk";
114 };
Kuninori Morimoto1950fab2015-10-02 11:56:12 +0900115};
116
117&scif1 {
118 pinctrl-0 = <&scif1_pins>;
119 pinctrl-names = "default";
120
121 status = "okay";
122};
123
124&scif2 {
125 pinctrl-0 = <&scif2_pins>;
126 pinctrl-names = "default";
127
128 status = "okay";
129};
Kazuya Mizuguchi6fa501c2015-11-02 13:31:45 +0900130
Kuninori Morimoto637d8012015-10-28 08:05:28 +0900131&i2c2 {
132 pinctrl-0 = <&i2c2_pins>;
133 pinctrl-names = "default";
134
135 status = "okay";
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000136
137 clock-frequency = <100000>;
138
139 ak4613: codec@10 {
140 compatible = "asahi-kasei,ak4613";
141 #sound-dai-cells = <0>;
142 reg = <0x10>;
143 clocks = <&rcar_sound 3>;
Kuninori Morimoto40fbe142015-11-27 01:04:41 +0000144
145 asahi-kasei,in1-single-end;
146 asahi-kasei,in2-single-end;
147 asahi-kasei,out1-single-end;
148 asahi-kasei,out2-single-end;
149 asahi-kasei,out3-single-end;
150 asahi-kasei,out4-single-end;
151 asahi-kasei,out5-single-end;
152 asahi-kasei,out6-single-end;
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000153 };
154};
155
156&rcar_sound {
157 pinctrl-0 = <&sound_pins &sound_clk_pins>;
158 pinctrl-names = "default";
159
160 /* Single DAI */
161 #sound-dai-cells = <0>;
162
163 /* audio_clkout0/1/2/3 */
164 #clock-cells = <1>;
165 clock-frequency = <11289600>;
166
167 status = "okay";
168
169 rcar_sound,dai {
170 dai0 {
Kuninori Morimoto672b7932015-11-25 06:39:13 +0000171 playback = <&ssi0 &src0 &dvc0>;
172 capture = <&ssi1 &src1 &dvc1>;
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000173 };
174 };
175};
176
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000177&ssi1 {
Kuninori Morimoto994aadf2015-11-25 06:37:49 +0000178 shared-pin;
179};
180
181&audio_clk_a {
182 clock-frequency = <22579200>;
Kuninori Morimoto637d8012015-10-28 08:05:28 +0900183};
184
Kazuya Mizuguchi6fa501c2015-11-02 13:31:45 +0900185&avb {
186 pinctrl-0 = <&avb_pins>;
187 pinctrl-names = "default";
188 renesas,no-ether-link;
189 phy-handle = <&phy0>;
190 status = "okay";
191
192 phy0: ethernet-phy@0 {
193 rxc-skew-ps = <900>;
194 rxdv-skew-ps = <0>;
195 rxd0-skew-ps = <0>;
196 rxd1-skew-ps = <0>;
197 rxd2-skew-ps = <0>;
198 rxd3-skew-ps = <0>;
199 txc-skew-ps = <900>;
200 txen-skew-ps = <0>;
201 txd0-skew-ps = <0>;
202 txd1-skew-ps = <0>;
203 txd2-skew-ps = <0>;
204 txd3-skew-ps = <0>;
205 reg = <0>;
206 interrupt-parent = <&gpio2>;
207 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
208 };
209};