diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-10-28 12:08:43 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-11-06 22:13:26 -0500 |
commit | a6b334514be27aec1bf31c7673c2f55bd6fbd3e6 (patch) | |
tree | cebc8c90968b089b3bd832a5bdc56c84f22a1f05 | |
parent | b4607572ef86b288a856b9df410ea593c5371dec (diff) |
ARM: mvebu: use simple-card DT binding for audio on Armada 370 DB
This commit modifies the Armada 370 and Armada 370 DB Device Tree
descriptions to use the simple-card DT binding to describe the audio
complex of the Armada 370 DB instead of a custom audio machine driver.
To do so, it:
- Adds the sound-dai-cells properties to the CS42L51 node, the audio
controller node and the SPDIF in/out nodes.
- Completely changes the description of the sound complex to use the
"simple-audio-card" DT binding instead of the
"marvell,a370db-audio" DT binding.
- Fixes the indentation to properly use tabs instead of spaces.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1414512524-24466-6-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r-- | arch/arm/boot/dts/armada-370-db.dts | 56 | ||||
-rw-r--r-- | arch/arm/boot/dts/armada-370.dtsi | 1 |
2 files changed, 51 insertions, 6 deletions
diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts index d5051358fb1b..0b7bf5ea7bd5 100644 --- a/arch/arm/boot/dts/armada-370-db.dts +++ b/arch/arm/boot/dts/armada-370-db.dts | |||
@@ -75,6 +75,7 @@ | |||
75 | clock-frequency = <100000>; | 75 | clock-frequency = <100000>; |
76 | status = "okay"; | 76 | status = "okay"; |
77 | audio_codec: audio-codec@4a { | 77 | audio_codec: audio-codec@4a { |
78 | #sound-dai-cells = <0>; | ||
78 | compatible = "cirrus,cs42l51"; | 79 | compatible = "cirrus,cs42l51"; |
79 | reg = <0x4a>; | 80 | reg = <0x4a>; |
80 | }; | 81 | }; |
@@ -143,17 +144,60 @@ | |||
143 | }; | 144 | }; |
144 | 145 | ||
145 | sound { | 146 | sound { |
146 | compatible = "marvell,a370db-audio"; | 147 | compatible = "simple-audio-card"; |
147 | marvell,audio-controller = <&audio_controller>; | 148 | simple-audio-card,name = "Armada 370 DB Audio"; |
148 | marvell,audio-codec = <&audio_codec &spdif_out &spdif_in>; | 149 | simple-audio-card,mclk-fs = <256>; |
149 | status = "okay"; | 150 | simple-audio-card,widgets = |
151 | "Headphone", "Out Jack", | ||
152 | "Line", "In Jack"; | ||
153 | simple-audio-card,routing = | ||
154 | "Out Jack", "HPL", | ||
155 | "Out Jack", "HPR", | ||
156 | "AIN1L", "In Jack", | ||
157 | "AIN1L", "In Jack"; | ||
158 | status = "okay"; | ||
159 | |||
160 | simple-audio-card,dai-link@0 { | ||
161 | format = "i2s"; | ||
162 | cpu { | ||
163 | sound-dai = <&audio_controller 0>; | ||
164 | }; | ||
165 | |||
166 | codec { | ||
167 | sound-dai = <&audio_codec>; | ||
168 | }; | ||
169 | }; | ||
170 | |||
171 | simple-audio-card,dai-link@1 { | ||
172 | format = "i2s"; | ||
173 | cpu { | ||
174 | sound-dai = <&audio_controller 1>; | ||
175 | }; | ||
176 | |||
177 | codec { | ||
178 | sound-dai = <&spdif_out>; | ||
179 | }; | ||
180 | }; | ||
181 | |||
182 | simple-audio-card,dai-link@2 { | ||
183 | format = "i2s"; | ||
184 | cpu { | ||
185 | sound-dai = <&audio_controller 1>; | ||
186 | }; | ||
187 | |||
188 | codec { | ||
189 | sound-dai = <&spdif_in>; | ||
190 | }; | ||
191 | }; | ||
150 | }; | 192 | }; |
151 | 193 | ||
152 | spdif_out: spdif-out { | 194 | spdif_out: spdif-out { |
153 | compatible = "linux,spdif-dit"; | 195 | #sound-dai-cells = <0>; |
196 | compatible = "linux,spdif-dit"; | ||
154 | }; | 197 | }; |
155 | 198 | ||
156 | spdif_in: spdif-in { | 199 | spdif_in: spdif-in { |
157 | compatible = "linux,spdif-dir"; | 200 | #sound-dai-cells = <0>; |
201 | compatible = "linux,spdif-dir"; | ||
158 | }; | 202 | }; |
159 | }; | 203 | }; |
diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi index 7851942e244a..86d33dbe52c6 100644 --- a/arch/arm/boot/dts/armada-370.dtsi +++ b/arch/arm/boot/dts/armada-370.dtsi | |||
@@ -250,6 +250,7 @@ | |||
250 | }; | 250 | }; |
251 | 251 | ||
252 | audio_controller: audio-controller@30000 { | 252 | audio_controller: audio-controller@30000 { |
253 | #sound-dai-cells = <1>; | ||
253 | compatible = "marvell,armada370-audio"; | 254 | compatible = "marvell,armada370-audio"; |
254 | reg = <0x30000 0x4000>; | 255 | reg = <0x30000 0x4000>; |
255 | interrupts = <93>; | 256 | interrupts = <93>; |