GNU Linux-libre 4.14.266-gnu1
[releases.git] / Documentation / devicetree / bindings / sound / sirf-audio.txt
1 * SiRF atlas6 and prima2 internal audio codec and port based audio setups
2
3 Required properties:
4 - compatible: "sirf,sirf-audio-card"
5 - sirf,audio-platform: phandle for the platform node
6 - sirf,audio-codec: phandle for the SiRF internal codec node
7
8 Optional properties:
9 - hp-pa-gpios: Need to be present if the board need control external
10   headphone amplifier.
11 - spk-pa-gpios: Need to be present if the board need control external
12   speaker amplifier.
13 - hp-switch-gpios: Need to be present if the board capable to detect jack
14   insertion, removal.
15
16 Available audio endpoints for the audio-routing table:
17
18 Board connectors:
19  * Headset Stereophone
20  * Ext Spk
21  * Line In
22  * Mic
23
24 SiRF internal audio codec pins:
25  * HPOUTL
26  * HPOUTR
27  * SPKOUT
28  * Ext Mic
29  * Mic Bias
30
31 Example:
32
33 sound {
34                 compatible = "sirf,sirf-audio-card";
35                 sirf,audio-codec = <&audiocodec>;
36                 sirf,audio-platform = <&audioport>;
37                 hp-pa-gpios = <&gpio 44 0>;
38                 spk-pa-gpios = <&gpio 46 0>;
39                 hp-switch-gpios = <&gpio 45 0>;
40 };
41