xref: /linux/Documentation/devicetree/bindings/clock/qcom,camcc-sm8250.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1a3b82fa7SJonathan Marek# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2a3b82fa7SJonathan Marek%YAML 1.2
3a3b82fa7SJonathan Marek---
4a3b82fa7SJonathan Marek$id: http://devicetree.org/schemas/clock/qcom,camcc-sm8250.yaml#
5a3b82fa7SJonathan Marek$schema: http://devicetree.org/meta-schemas/core.yaml#
6a3b82fa7SJonathan Marek
7ece3c319SKrzysztof Kozlowskititle: Qualcomm Camera Clock & Reset Controller on SM8250
8a3b82fa7SJonathan Marek
9a3b82fa7SJonathan Marekmaintainers:
10a3b82fa7SJonathan Marek  - Jonathan Marek <jonathan@marek.ca>
11a3b82fa7SJonathan Marek
12a3b82fa7SJonathan Marekdescription: |
13ece3c319SKrzysztof Kozlowski  Qualcomm camera clock control module provides the clocks, resets and
14a3b82fa7SJonathan Marek  power domains on SM8250.
15a3b82fa7SJonathan Marek
16ece3c319SKrzysztof Kozlowski  See also:: include/dt-bindings/clock/qcom,camcc-sm8250.h
17a3b82fa7SJonathan Marek
18*4ab17216SBryan O'DonoghueallOf:
19*4ab17216SBryan O'Donoghue  - $ref: qcom,gcc.yaml#
20*4ab17216SBryan O'Donoghue
21a3b82fa7SJonathan Marekproperties:
22a3b82fa7SJonathan Marek  compatible:
23a3b82fa7SJonathan Marek    const: qcom,sm8250-camcc
24a3b82fa7SJonathan Marek
25a3b82fa7SJonathan Marek  clocks:
26a3b82fa7SJonathan Marek    items:
27f6f10b4aSKrzysztof Kozlowski      - description: AHB
28a3b82fa7SJonathan Marek      - description: Board XO source
29f6f10b4aSKrzysztof Kozlowski      - description: Board active XO source
30a3b82fa7SJonathan Marek      - description: Sleep clock source
31a3b82fa7SJonathan Marek
32a3b82fa7SJonathan Marek  clock-names:
33a3b82fa7SJonathan Marek    items:
34f6f10b4aSKrzysztof Kozlowski      - const: iface
35a3b82fa7SJonathan Marek      - const: bi_tcxo
36f6f10b4aSKrzysztof Kozlowski      - const: bi_tcxo_ao
37a3b82fa7SJonathan Marek      - const: sleep_clk
38a3b82fa7SJonathan Marek
39f6f10b4aSKrzysztof Kozlowski  power-domains:
40f6f10b4aSKrzysztof Kozlowski    items:
41f6f10b4aSKrzysztof Kozlowski      - description: MMCX power domain
42f6f10b4aSKrzysztof Kozlowski
43a3b82fa7SJonathan Marek  reg:
44a3b82fa7SJonathan Marek    maxItems: 1
45a3b82fa7SJonathan Marek
46f6f10b4aSKrzysztof Kozlowski  required-opps:
47f6f10b4aSKrzysztof Kozlowski    maxItems: 1
48f6f10b4aSKrzysztof Kozlowski    description:
49f6f10b4aSKrzysztof Kozlowski      OPP node describing required MMCX performance point.
50f6f10b4aSKrzysztof Kozlowski
51a3b82fa7SJonathan Marekrequired:
52a3b82fa7SJonathan Marek  - compatible
53a3b82fa7SJonathan Marek  - clocks
54a3b82fa7SJonathan Marek  - clock-names
55a3b82fa7SJonathan Marek
56*4ab17216SBryan O'DonoghueunevaluatedProperties: false
57a3b82fa7SJonathan Marek
58a3b82fa7SJonathan Marekexamples:
59a3b82fa7SJonathan Marek  - |
60f6f10b4aSKrzysztof Kozlowski    #include <dt-bindings/clock/qcom,gcc-sm8250.h>
61a3b82fa7SJonathan Marek    #include <dt-bindings/clock/qcom,rpmh.h>
62a3b82fa7SJonathan Marek    clock-controller@ad00000 {
63a3b82fa7SJonathan Marek      compatible = "qcom,sm8250-camcc";
64a3b82fa7SJonathan Marek      reg = <0x0ad00000 0x10000>;
65f6f10b4aSKrzysztof Kozlowski      clocks = <&gcc GCC_CAMERA_AHB_CLK>,
66f6f10b4aSKrzysztof Kozlowski               <&rpmhcc RPMH_CXO_CLK>,
67f6f10b4aSKrzysztof Kozlowski               <&rpmhcc RPMH_CXO_CLK_A>,
68a3b82fa7SJonathan Marek               <&sleep_clk>;
69f6f10b4aSKrzysztof Kozlowski      clock-names = "iface", "bi_tcxo", "bi_tcxo_ao", "sleep_clk";
70a3b82fa7SJonathan Marek      #clock-cells = <1>;
71a3b82fa7SJonathan Marek      #reset-cells = <1>;
72a3b82fa7SJonathan Marek      #power-domain-cells = <1>;
73a3b82fa7SJonathan Marek    };
74a3b82fa7SJonathan Marek...
75