diff mbox series

[v5,13/21] ASoC: dt-bindings: add q6apm digital audio stream bindings

Message ID 20210903112032.25834-14-srinivas.kandagatla@linaro.org
State Superseded
Headers show
Series ASoC: qcom: Add AudioReach support | expand

Commit Message

Srinivas Kandagatla Sept. 3, 2021, 11:20 a.m. UTC
On AudioReach audio Framework, Audio Streams (PCM/Compressed) are managed by
Q6APM(Audio Process Manager) service. This patch adds bindings for this DAIs
exposed by the DSP.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

---
 .../bindings/sound/qcom,q6apm-dai.yaml        | 50 +++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml

-- 
2.21.0

Comments

Rob Herring (Arm) Sept. 8, 2021, 11:58 a.m. UTC | #1
On Fri, Sep 03, 2021 at 12:20:24PM +0100, Srinivas Kandagatla wrote:
> On AudioReach audio Framework, Audio Streams (PCM/Compressed) are managed by

> Q6APM(Audio Process Manager) service. This patch adds bindings for this DAIs

> exposed by the DSP.

> 

> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> ---

>  .../bindings/sound/qcom,q6apm-dai.yaml        | 50 +++++++++++++++++++

>  1 file changed, 50 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml

> 

> diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml

> new file mode 100644

> index 000000000000..75431d1c0b2a

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml

> @@ -0,0 +1,50 @@

> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

> +%YAML 1.2

> +---

> +$id: "http://devicetree.org/schemas/sound/qcom,q6apm-dai.yaml#"

> +$schema: "http://devicetree.org/meta-schemas/core.yaml#"

> +

> +title: Qualcomm Audio Process Manager Digital Audio Interfaces binding

> +

> +maintainers:

> +  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> +

> +description: |

> +  This binding describes the Qualcomm APM DAIs in DSP

> +

> +properties:

> +  compatible:

> +    const: qcom,q6apm-dais

> +

> +  reg:

> +    maxItems: 1

> +

> +  iommus:

> +    maxItems: 1

> +

> +required:

> +  - compatible

> +  - iommus

> +  - reg

> +

> +additionalProperties: false

> +

> +examples:

> +  - |

> +    gpr {

> +        #address-cells = <1>;

> +        #size-cells = <0>;

> +        gprservice@1 {


service@1

Might want to put a compatible in the gpr node so this is checked.

> +          compatible = "qcom,q6apm";

> +          reg = <1>;

> +

> +          #address-cells = <1>;

> +          #size-cells = <0>;

> +

> +          apm@1 {

> +            compatible = "qcom,q6apm-dais";

> +            iommus = <&apps_smmu 0x1801 0x0>;

> +            reg = <1>;

> +          };

> +        };

> +    };

> -- 

> 2.21.0

> 

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml
new file mode 100644
index 000000000000..75431d1c0b2a
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml
@@ -0,0 +1,50 @@ 
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/sound/qcom,q6apm-dai.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Qualcomm Audio Process Manager Digital Audio Interfaces binding
+
+maintainers:
+  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+description: |
+  This binding describes the Qualcomm APM DAIs in DSP
+
+properties:
+  compatible:
+    const: qcom,q6apm-dais
+
+  reg:
+    maxItems: 1
+
+  iommus:
+    maxItems: 1
+
+required:
+  - compatible
+  - iommus
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    gpr {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        gprservice@1 {
+          compatible = "qcom,q6apm";
+          reg = <1>;
+
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          apm@1 {
+            compatible = "qcom,q6apm-dais";
+            iommus = <&apps_smmu 0x1801 0x0>;
+            reg = <1>;
+          };
+        };
+    };