xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/qcom,sm8450-camcc.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1b97ee269SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2b97ee269SEmmanuel Vadot%YAML 1.2
3b97ee269SEmmanuel Vadot---
4b97ee269SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sm8450-camcc.yaml#
5b97ee269SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6b97ee269SEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Camera Clock & Reset Controller on SM8450
8b97ee269SEmmanuel Vadot
9b97ee269SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
110e8011faSEmmanuel Vadot  - Jagadeesh Kona <quic_jkona@quicinc.com>
12b97ee269SEmmanuel Vadot
13b97ee269SEmmanuel Vadotdescription: |
148bab661aSEmmanuel Vadot  Qualcomm camera clock control module provides the clocks, resets and power
158bab661aSEmmanuel Vadot  domains on SM8450.
16b97ee269SEmmanuel Vadot
170e8011faSEmmanuel Vadot  See also:
180e8011faSEmmanuel Vadot    include/dt-bindings/clock/qcom,sc8280xp-camcc.h
1984943d6fSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm8450-camcc.h
2084943d6fSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm8550-camcc.h
210e8011faSEmmanuel Vadot    include/dt-bindings/clock/qcom,sm8650-camcc.h
2201950c46SEmmanuel Vadot    include/dt-bindings/clock/qcom,x1e80100-camcc.h
238d13bc63SEmmanuel Vadot
24b97ee269SEmmanuel Vadotproperties:
25b97ee269SEmmanuel Vadot  compatible:
2684943d6fSEmmanuel Vadot    enum:
278d13bc63SEmmanuel Vadot      - qcom,sc8280xp-camcc
2884943d6fSEmmanuel Vadot      - qcom,sm8450-camcc
2984943d6fSEmmanuel Vadot      - qcom,sm8550-camcc
300e8011faSEmmanuel Vadot      - qcom,sm8650-camcc
3101950c46SEmmanuel Vadot      - qcom,x1e80100-camcc
32b97ee269SEmmanuel Vadot
33b97ee269SEmmanuel Vadot  clocks:
34b97ee269SEmmanuel Vadot    items:
35b97ee269SEmmanuel Vadot      - description: Camera AHB clock from GCC
36b97ee269SEmmanuel Vadot      - description: Board XO source
37b97ee269SEmmanuel Vadot      - description: Board active XO source
38b97ee269SEmmanuel Vadot      - description: Sleep clock source
39b97ee269SEmmanuel Vadot
40b97ee269SEmmanuel Vadot  power-domains:
41b97ee269SEmmanuel Vadot    maxItems: 1
42b97ee269SEmmanuel Vadot    description:
43b97ee269SEmmanuel Vadot      A phandle and PM domain specifier for the MMCX power domain.
44b97ee269SEmmanuel Vadot
45b97ee269SEmmanuel Vadot  required-opps:
46cb7aa33aSEmmanuel Vadot    maxItems: 1
47b97ee269SEmmanuel Vadot    description:
48b97ee269SEmmanuel Vadot      A phandle to an OPP node describing required MMCX performance point.
49b97ee269SEmmanuel Vadot
50b97ee269SEmmanuel Vadot  reg:
51b97ee269SEmmanuel Vadot    maxItems: 1
52b97ee269SEmmanuel Vadot
53b97ee269SEmmanuel Vadotrequired:
54b97ee269SEmmanuel Vadot  - compatible
55b97ee269SEmmanuel Vadot  - clocks
56b97ee269SEmmanuel Vadot  - power-domains
57*b2d2a78aSEmmanuel Vadot
58*b2d2a78aSEmmanuel VadotallOf:
59*b2d2a78aSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
60*b2d2a78aSEmmanuel Vadot  - if:
61*b2d2a78aSEmmanuel Vadot      properties:
62*b2d2a78aSEmmanuel Vadot        compatible:
63*b2d2a78aSEmmanuel Vadot          contains:
64*b2d2a78aSEmmanuel Vadot            enum:
65*b2d2a78aSEmmanuel Vadot              - qcom,sc8280xp-camcc
66*b2d2a78aSEmmanuel Vadot              - qcom,sm8450-camcc
67*b2d2a78aSEmmanuel Vadot              - qcom,sm8550-camcc
68*b2d2a78aSEmmanuel Vadot              - qcom,x1e80100-camcc
69*b2d2a78aSEmmanuel Vadot    then:
70*b2d2a78aSEmmanuel Vadot      required:
71b97ee269SEmmanuel Vadot        - required-opps
72b97ee269SEmmanuel Vadot
738d13bc63SEmmanuel VadotunevaluatedProperties: false
74b97ee269SEmmanuel Vadot
75b97ee269SEmmanuel Vadotexamples:
76b97ee269SEmmanuel Vadot  - |
77b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sm8450.h>
78b97ee269SEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
79aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/power/qcom,rpmhpd.h>
80b97ee269SEmmanuel Vadot    clock-controller@ade0000 {
81b97ee269SEmmanuel Vadot      compatible = "qcom,sm8450-camcc";
82b97ee269SEmmanuel Vadot      reg = <0xade0000 0x20000>;
83b97ee269SEmmanuel Vadot      clocks = <&gcc GCC_CAMERA_AHB_CLK>,
84b97ee269SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK>,
85b97ee269SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK_A>,
86b97ee269SEmmanuel Vadot               <&sleep_clk>;
87aa1a8ff2SEmmanuel Vadot      power-domains = <&rpmhpd RPMHPD_MMCX>;
88b97ee269SEmmanuel Vadot      required-opps = <&rpmhpd_opp_low_svs>;
89b97ee269SEmmanuel Vadot      #clock-cells = <1>;
90b97ee269SEmmanuel Vadot      #reset-cells = <1>;
91b97ee269SEmmanuel Vadot      #power-domain-cells = <1>;
92b97ee269SEmmanuel Vadot    };
93b97ee269SEmmanuel Vadot...
94