arm64: renesas: salvator-x: Sound SSI DMA support via BUSIF
[deliverable/linux.git] / arch / arm64 / boot / dts / renesas / r8a7795-salvator-x.dts
1 /*
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
11 /dts-v1/;
12 #include "r8a7795.dtsi"
13
14 / {
15 model = "Renesas Salvator-X board based on r8a7795";
16 compatible = "renesas,salvator-x", "renesas,r8a7795";
17
18 aliases {
19 serial0 = &scif2;
20 serial1 = &scif1;
21 ethernet0 = &avb;
22 };
23
24 chosen {
25 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
26 stdout-path = "serial0:115200n8";
27 };
28
29 memory@48000000 {
30 device_type = "memory";
31 /* first 128MB is reserved for secure area. */
32 reg = <0x0 0x48000000 0x0 0x38000000>;
33 };
34
35 x12_clk: x12_clk {
36 compatible = "fixed-clock";
37 #clock-cells = <0>;
38 clock-frequency = <24576000>;
39 };
40
41 rsnd_ak4613: sound {
42 compatible = "simple-audio-card";
43
44 simple-audio-card,format = "left_j";
45 simple-audio-card,bitclock-master = <&sndcpu>;
46 simple-audio-card,frame-master = <&sndcpu>;
47
48 sndcpu: simple-audio-card,cpu {
49 sound-dai = <&rcar_sound>;
50 };
51
52 sndcodec: simple-audio-card,codec {
53 sound-dai = <&ak4613>;
54 };
55 };
56 };
57
58 &extal_clk {
59 clock-frequency = <16666666>;
60 };
61
62 &pfc {
63 scif1_pins: scif1 {
64 renesas,groups = "scif1_data_a", "scif1_ctrl";
65 renesas,function = "scif1";
66 };
67 scif2_pins: scif2 {
68 renesas,groups = "scif2_data_a";
69 renesas,function = "scif2";
70 };
71
72 i2c2_pins: i2c2 {
73 renesas,groups = "i2c2_a";
74 renesas,function = "i2c2";
75 };
76
77 avb_pins: avb {
78 renesas,groups = "avb_mdc";
79 renesas,function = "avb";
80 };
81
82 sound_pins: sound {
83 renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
84 renesas,function = "ssi";
85 };
86
87 sound_clk_pins: sound_clk {
88 renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
89 "audio_clkout_a", "audio_clkout3_a";
90 renesas,function = "audio_clk";
91 };
92 };
93
94 &scif1 {
95 pinctrl-0 = <&scif1_pins>;
96 pinctrl-names = "default";
97
98 status = "okay";
99 };
100
101 &scif2 {
102 pinctrl-0 = <&scif2_pins>;
103 pinctrl-names = "default";
104
105 status = "okay";
106 };
107
108 &i2c2 {
109 pinctrl-0 = <&i2c2_pins>;
110 pinctrl-names = "default";
111
112 status = "okay";
113
114 clock-frequency = <100000>;
115
116 ak4613: codec@10 {
117 compatible = "asahi-kasei,ak4613";
118 #sound-dai-cells = <0>;
119 reg = <0x10>;
120 clocks = <&rcar_sound 3>;
121 };
122 };
123
124 &rcar_sound {
125 pinctrl-0 = <&sound_pins &sound_clk_pins>;
126 pinctrl-names = "default";
127
128 /* Single DAI */
129 #sound-dai-cells = <0>;
130
131 /* audio_clkout0/1/2/3 */
132 #clock-cells = <1>;
133 clock-frequency = <11289600>;
134
135 status = "okay";
136
137 rcar_sound,dai {
138 dai0 {
139 playback = <&ssi0>;
140 capture = <&ssi1>;
141 };
142 };
143 };
144
145 &ssi1 {
146 shared-pin;
147 };
148
149 &audio_clk_a {
150 clock-frequency = <22579200>;
151 };
152
153 &avb {
154 pinctrl-0 = <&avb_pins>;
155 pinctrl-names = "default";
156 renesas,no-ether-link;
157 phy-handle = <&phy0>;
158 status = "okay";
159
160 phy0: ethernet-phy@0 {
161 rxc-skew-ps = <900>;
162 rxdv-skew-ps = <0>;
163 rxd0-skew-ps = <0>;
164 rxd1-skew-ps = <0>;
165 rxd2-skew-ps = <0>;
166 rxd3-skew-ps = <0>;
167 txc-skew-ps = <900>;
168 txen-skew-ps = <0>;
169 txd0-skew-ps = <0>;
170 txd1-skew-ps = <0>;
171 txd2-skew-ps = <0>;
172 txd3-skew-ps = <0>;
173 reg = <0>;
174 interrupt-parent = <&gpio2>;
175 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
176 };
177 };
This page took 0.035676 seconds and 5 git commands to generate.