diff mbox series

[v3,12/20] ASoC: dt-bindings: q6dsp-clocks: add q6prm clocks compatible

Message ID 20210803125411.28066-13-srinivas.kandagatla@linaro.org
State New
Headers show
Series ASoC: qcom: Add AudioReach support | expand

Commit Message

Srinivas Kandagatla Aug. 3, 2021, 12:54 p.m. UTC
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 .../sound/qcom,q6dsp-audio-clocks.yaml        | 21 ++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

Comments

Mark Brown Aug. 4, 2021, 6:02 p.m. UTC | #1
On Tue, Aug 03, 2021 at 01:54:03PM +0100, Srinivas Kandagatla wrote:

> +    enum:
> +      - qcom,q6afe-clocks
> +      - qcom,q6prm-clocks

Again, what do these mean?  One of the goals with DT bindings
documentation is to be able to relate hardware to bindings.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/qcom,q6dsp-audio-clocks.yaml b/Documentation/devicetree/bindings/sound/qcom,q6dsp-audio-clocks.yaml
index 03ab7451eb1c..c4814ae00712 100644
--- a/Documentation/devicetree/bindings/sound/qcom,q6dsp-audio-clocks.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,q6dsp-audio-clocks.yaml
@@ -14,7 +14,9 @@  description: |
 
 properties:
   compatible:
-    const: qcom,q6afe-clocks
+    enum:
+      - qcom,q6afe-clocks
+      - qcom,q6prm-clocks
 
   reg:
     maxItems: 1
@@ -53,3 +55,20 @@  examples:
             };
         };
       };
+
+  - |
+    #include <dt-bindings/soc/qcom,gpr.h>
+    gpr {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        gpr-service@2 {
+            reg = <GPR_PRM_MODULE_IID>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+            q6prmcc@2 {
+              compatible = "qcom,q6prm-clocks";
+              reg = <2>;
+              #clock-cells = <2>;
+            };
+        };
+      };