summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-06-10 08:15:44 -0400
committerMark Brown <broonie@kernel.org>2015-06-10 13:29:33 -0400
commit4acf6d7f6837c12551c37e8c9bfc129d686a18c6 (patch)
tree53b9bb2558bb40487160cfeb5c87daee188eb322
parent2682c7c72e947bab2aa7f61d83eb6fb87a64d742 (diff)
ASoC: qcom: document apq8016 sbc machine driver bindings
This patch adds bindings for apq8016 sbc machine driver. APQ8016 has 4 MI2S which can be configured to different sinks like internal codec/external codec, this connection and various parameters are controlled via 2 iomux registers. Acked-by: Kenneth Westfield <kwestfie@codeaurora.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt60
1 files changed, 60 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt
new file mode 100644
index 000000000000..48129368d4d9
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt
@@ -0,0 +1,60 @@
1* Qualcomm Technologies APQ8016 SBC ASoC machine driver
2
3This node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver
4
5Required properties:
6
7- compatible : "qcom,apq8016-sbc-sndcard"
8
9- pinctrl-N : One property must exist for each entry in
10 pinctrl-names. See ../pinctrl/pinctrl-bindings.txt
11 for details of the property values.
12- pinctrl-names : Must contain a "default" entry.
13- reg : Must contain an address for each entry in reg-names.
14- reg-names : A list which must include the following entries:
15 * "mic-iomux"
16 * "spkr-iomux"
17- qcom,model : Name of the sound card.
18
19Dai-link subnode properties and subnodes:
20
21Required dai-link subnodes:
22
23- cpu : CPU sub-node
24- codec : CODEC sub-node
25
26Required CPU/CODEC subnodes properties:
27
28-link-name : Name of the dai link.
29-sound-dai : phandle and port of CPU/CODEC
30-capture-dai : phandle and port of CPU/CODEC
31
32Example:
33
34sound: sound {
35 compatible = "qcom,apq8016-sbc-sndcard";
36 reg = <0x07702000 0x4>, <0x07702004 0x4>;
37 reg-names = "mic-iomux", "spkr-iomux";
38 qcom,model = "DB410c";
39
40 /* I2S - Internal codec */
41 internal-dai-link@0 {
42 cpu { /* PRIMARY */
43 sound-dai = <&lpass MI2S_PRIMARY>;
44 };
45 codec {
46 sound-dai = <&wcd_codec 0>;
47 };
48 };
49
50 /* External Primary or External Secondary -ADV7533 HDMI */
51 external-dai-link@0 {
52 link-name = "ADV7533";
53 cpu { /* QUAT */
54 sound-dai = <&lpass MI2S_QUATERNARY>;
55 };
56 codec {
57 sound-dai = <&adv_bridge 0>;
58 };
59 };
60};