lkml.org 
[lkml]   [2015]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 13/13] ASoC: qcom: document apq8016 sbc machine driver bindings
    Date
    This patch adds bindings for apq8016 sbc machine driver.
    On APQ8016 4 MI2S can be configured to different sinks like internal
    codec/external codec, this connection is controlled via 2 iomux
    registers.

    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
    ---
    .../devicetree/bindings/sound/qcom,apq8016-sbc.txt | 61 ++++++++++++++++++++++
    1 file changed, 61 insertions(+)
    create mode 100644 Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt

    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 0000000..01d62be
    --- /dev/null
    +++ b/Documentation/devicetree/bindings/sound/qcom,apq8016-sbc.txt
    @@ -0,0 +1,61 @@
    +* Qualcomm Technologies APQ8016 SBC ASoC machine driver
    +
    +This node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver
    +
    +Required properties:
    +
    +- compatible : "qcom,apq8016-sbc-sndcard"
    +
    +- pinctrl-N : One property must exist for each entry in
    + pinctrl-names. See ../pinctrl/pinctrl-bindings.txt
    + for details of the property values.
    +- pinctrl-names : Must contain a "default" entry.
    +- reg : Must contain an address for each entry in reg-names.
    +- reg-names : A list which must include the following entries:
    + * "mic-iomux"
    + * "spkr-iomux"
    +- qcom,model : Name of the sound card.
    +
    +Dai-link subnode properties and subnodes:
    +
    +Required dai-link subnodes:
    +
    +- cpu : CPU sub-node
    +- codec : CODEC sub-node
    +
    +Required CPU/CODEC subnodes properties:
    +
    +-sound-dai : phandle and port of CPU/CODEC
    +-capture-dai : phandle and port of CPU/CODEC
    +
    +Optional CPU/CODEC subnodes properties:
    +- external : flag to indicate if the I2S is connected to external codec
    +Example:
    +
    +sound: sound {
    + compatible = "qcom,apq8016-sbc-sndcard";
    + reg = <0x07702000 0x4>, <0x07702004 0x4>;
    + reg-names = "mic-iomux", "spkr-iomux";
    + qcom,model = "DB410c";
    +
    + /* I2S - Internal codec */
    + internal-dai-link@0 {
    + cpu { /* PRIMARY */
    + sound-dai = <&lpass MI2S_PRIMARY>;
    + };
    + codec {
    + sound-dai = <&wcd_codec 0>;
    + };
    + };
    +
    + /* External Primary or External Secondary -ADV7533 HDMI */
    + external-dai-link@0 {
    + external;
    + cpu { /* QUAT */
    + sound-dai = <&lpass MI2S_QUATERNARY>;
    + };
    + codec {
    + sound-dai = <&adv_bridge 0>;
    + };
    + };
    +};
    --
    1.9.1


    \
     
     \ /
      Last update: 2015-05-13 14:21    [W:4.822 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site