arm64: renesas: salvator-x: Sound SSI DMA support
[deliverable/linux.git] / arch / arm64 / boot / dts / renesas / r8a7795-salvator-x.dts
CommitLineData
1950fab0
KM
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;
10ca6db7 21 ethernet0 = &avb;
1950fab0
KM
22 };
23
24 chosen {
b2407c56 25 bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
1950fab0
KM
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 };
994aadf0
KM
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 };
1950fab0
KM
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 };
6fa501c5 71
637d801e
KM
72 i2c2_pins: i2c2 {
73 renesas,groups = "i2c2_a";
74 renesas,function = "i2c2";
75 };
76
6fa501c5
KM
77 avb_pins: avb {
78 renesas,groups = "avb_mdc";
79 renesas,function = "avb";
80 };
994aadf0
KM
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 };
1950fab0
KM
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};
6fa501c5 107
637d801e
KM
108&i2c2 {
109 pinctrl-0 = <&i2c2_pins>;
110 pinctrl-names = "default";
111
112 status = "okay";
994aadf0
KM
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&ssi0 {
d70726f4 146 no-busif;
994aadf0
KM
147};
148
149&ssi1 {
d70726f4 150 no-busif;
994aadf0
KM
151 shared-pin;
152};
153
154&audio_clk_a {
155 clock-frequency = <22579200>;
637d801e
KM
156};
157
6fa501c5
KM
158&avb {
159 pinctrl-0 = <&avb_pins>;
160 pinctrl-names = "default";
161 renesas,no-ether-link;
162 phy-handle = <&phy0>;
163 status = "okay";
164
165 phy0: ethernet-phy@0 {
166 rxc-skew-ps = <900>;
167 rxdv-skew-ps = <0>;
168 rxd0-skew-ps = <0>;
169 rxd1-skew-ps = <0>;
170 rxd2-skew-ps = <0>;
171 rxd3-skew-ps = <0>;
172 txc-skew-ps = <900>;
173 txen-skew-ps = <0>;
174 txd0-skew-ps = <0>;
175 txd1-skew-ps = <0>;
176 txd2-skew-ps = <0>;
177 txd3-skew-ps = <0>;
178 reg = <0>;
179 interrupt-parent = <&gpio2>;
180 interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
181 };
182};
This page took 0.032802 seconds and 5 git commands to generate.