| 1 | * Qualcomm Technologies APQ8016 SBC ASoC machine driver |
| 2 | |
| 3 | This node models the Qualcomm Technologies APQ8016 SBC ASoC machine driver |
| 4 | |
| 5 | Required 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 | |
| 19 | Dai-link subnode properties and subnodes: |
| 20 | |
| 21 | Required dai-link subnodes: |
| 22 | |
| 23 | - cpu : CPU sub-node |
| 24 | - codec : CODEC sub-node |
| 25 | |
| 26 | Required 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 | |
| 32 | Example: |
| 33 | |
| 34 | sound: 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 | }; |