xref: /linux/Documentation/devicetree/bindings/clock/qcom,audiocc-sm8250.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1a6dee2feSSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2a6dee2feSSrinivas Kandagatla%YAML 1.2
3a6dee2feSSrinivas Kandagatla---
4a6dee2feSSrinivas Kandagatla$id: http://devicetree.org/schemas/clock/qcom,audiocc-sm8250.yaml#
5a6dee2feSSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml#
6a6dee2feSSrinivas Kandagatla
7*ece3c319SKrzysztof Kozlowskititle: LPASS Audio Clock Controller on SM8250 SoCs
8a6dee2feSSrinivas Kandagatla
9a6dee2feSSrinivas Kandagatlamaintainers:
10a6dee2feSSrinivas Kandagatla  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11a6dee2feSSrinivas Kandagatla
12a6dee2feSSrinivas Kandagatladescription: |
13a6dee2feSSrinivas Kandagatla  The clock consumer should specify the desired clock by having the clock
14a6dee2feSSrinivas Kandagatla  ID in its "clocks" phandle cell.
15a6dee2feSSrinivas Kandagatla  See include/dt-bindings/clock/qcom,sm8250-lpass-audiocc.h for the full list
16a6dee2feSSrinivas Kandagatla  of Audio Clock controller clock IDs.
17a6dee2feSSrinivas Kandagatla
18a6dee2feSSrinivas Kandagatlaproperties:
19a6dee2feSSrinivas Kandagatla  compatible:
20a6dee2feSSrinivas Kandagatla    const: qcom,sm8250-lpass-audiocc
21a6dee2feSSrinivas Kandagatla
22a6dee2feSSrinivas Kandagatla  reg:
23a6dee2feSSrinivas Kandagatla    maxItems: 1
24a6dee2feSSrinivas Kandagatla
25a6dee2feSSrinivas Kandagatla  '#clock-cells':
26a6dee2feSSrinivas Kandagatla    const: 1
27a6dee2feSSrinivas Kandagatla
28a6dee2feSSrinivas Kandagatla  clocks:
29a6dee2feSSrinivas Kandagatla    items:
30a6dee2feSSrinivas Kandagatla      - description: LPASS Core voting clock
31618c01c3SKrzysztof Kozlowski      - description: LPASS Audio codec voting clock
32a6dee2feSSrinivas Kandagatla      - description: Glitch Free Mux register clock
33a6dee2feSSrinivas Kandagatla
34a6dee2feSSrinivas Kandagatla  clock-names:
35a6dee2feSSrinivas Kandagatla    items:
36a6dee2feSSrinivas Kandagatla      - const: core
37618c01c3SKrzysztof Kozlowski      - const: audio
38a6dee2feSSrinivas Kandagatla      - const: bus
39a6dee2feSSrinivas Kandagatla
40a6dee2feSSrinivas Kandagatlarequired:
41a6dee2feSSrinivas Kandagatla  - compatible
42a6dee2feSSrinivas Kandagatla  - reg
43a6dee2feSSrinivas Kandagatla  - '#clock-cells'
44a6dee2feSSrinivas Kandagatla  - clocks
45a6dee2feSSrinivas Kandagatla  - clock-names
46a6dee2feSSrinivas Kandagatla
47a6dee2feSSrinivas KandagatlaadditionalProperties: false
48a6dee2feSSrinivas Kandagatla
49a6dee2feSSrinivas Kandagatlaexamples:
50a6dee2feSSrinivas Kandagatla  - |
51a6dee2feSSrinivas Kandagatla    #include <dt-bindings/clock/qcom,sm8250-lpass-audiocc.h>
52a6dee2feSSrinivas Kandagatla    #include <dt-bindings/sound/qcom,q6afe.h>
53a6dee2feSSrinivas Kandagatla    clock-controller@3300000 {
54a6dee2feSSrinivas Kandagatla      #clock-cells = <1>;
55a6dee2feSSrinivas Kandagatla      compatible = "qcom,sm8250-lpass-audiocc";
56a6dee2feSSrinivas Kandagatla      reg = <0x03300000 0x30000>;
57a6dee2feSSrinivas Kandagatla      clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
58618c01c3SKrzysztof Kozlowski               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
59a6dee2feSSrinivas Kandagatla               <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
60618c01c3SKrzysztof Kozlowski      clock-names = "core", "audio", "bus";
61a6dee2feSSrinivas Kandagatla    };
62