xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,sm8150-camcc.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sm8150-camcc.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: Qualcomm Camera Clock & Reset Controller on SM8150
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Satya Priya Kakitapalli <quic_skakitap@quicinc.com>
11*b2d2a78aSEmmanuel Vadot
12*b2d2a78aSEmmanuel Vadotdescription: |
13*b2d2a78aSEmmanuel Vadot  Qualcomm camera clock control module provides the clocks, resets and
14*b2d2a78aSEmmanuel Vadot  power domains on SM8150.
15*b2d2a78aSEmmanuel Vadot
16*b2d2a78aSEmmanuel Vadot  See also:: include/dt-bindings/clock/qcom,sm8150-camcc.h
17*b2d2a78aSEmmanuel Vadot
18*b2d2a78aSEmmanuel Vadotproperties:
19*b2d2a78aSEmmanuel Vadot  compatible:
20*b2d2a78aSEmmanuel Vadot    const: qcom,sm8150-camcc
21*b2d2a78aSEmmanuel Vadot
22*b2d2a78aSEmmanuel Vadot  reg:
23*b2d2a78aSEmmanuel Vadot    maxItems: 1
24*b2d2a78aSEmmanuel Vadot
25*b2d2a78aSEmmanuel Vadot  clocks:
26*b2d2a78aSEmmanuel Vadot    items:
27*b2d2a78aSEmmanuel Vadot      - description: Board XO source
28*b2d2a78aSEmmanuel Vadot      - description: Camera AHB clock from GCC
29*b2d2a78aSEmmanuel Vadot
30*b2d2a78aSEmmanuel Vadot  power-domains:
31*b2d2a78aSEmmanuel Vadot    maxItems: 1
32*b2d2a78aSEmmanuel Vadot    description:
33*b2d2a78aSEmmanuel Vadot      A phandle and PM domain specifier for the MMCX power domain.
34*b2d2a78aSEmmanuel Vadot
35*b2d2a78aSEmmanuel Vadot  required-opps:
36*b2d2a78aSEmmanuel Vadot    maxItems: 1
37*b2d2a78aSEmmanuel Vadot    description:
38*b2d2a78aSEmmanuel Vadot      A phandle to an OPP node describing required MMCX performance point.
39*b2d2a78aSEmmanuel Vadot
40*b2d2a78aSEmmanuel Vadot  '#clock-cells':
41*b2d2a78aSEmmanuel Vadot    const: 1
42*b2d2a78aSEmmanuel Vadot
43*b2d2a78aSEmmanuel Vadot  '#reset-cells':
44*b2d2a78aSEmmanuel Vadot    const: 1
45*b2d2a78aSEmmanuel Vadot
46*b2d2a78aSEmmanuel Vadot  '#power-domain-cells':
47*b2d2a78aSEmmanuel Vadot    const: 1
48*b2d2a78aSEmmanuel Vadot
49*b2d2a78aSEmmanuel Vadotrequired:
50*b2d2a78aSEmmanuel Vadot  - compatible
51*b2d2a78aSEmmanuel Vadot  - reg
52*b2d2a78aSEmmanuel Vadot  - clocks
53*b2d2a78aSEmmanuel Vadot  - power-domains
54*b2d2a78aSEmmanuel Vadot  - required-opps
55*b2d2a78aSEmmanuel Vadot  - '#clock-cells'
56*b2d2a78aSEmmanuel Vadot  - '#reset-cells'
57*b2d2a78aSEmmanuel Vadot  - '#power-domain-cells'
58*b2d2a78aSEmmanuel Vadot
59*b2d2a78aSEmmanuel VadotadditionalProperties: false
60*b2d2a78aSEmmanuel Vadot
61*b2d2a78aSEmmanuel Vadotexamples:
62*b2d2a78aSEmmanuel Vadot  - |
63*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sm8150.h>
64*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
65*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
66*b2d2a78aSEmmanuel Vadot    clock-controller@ad00000 {
67*b2d2a78aSEmmanuel Vadot      compatible = "qcom,sm8150-camcc";
68*b2d2a78aSEmmanuel Vadot      reg = <0x0ad00000 0x10000>;
69*b2d2a78aSEmmanuel Vadot      clocks = <&rpmhcc RPMH_CXO_CLK>,
70*b2d2a78aSEmmanuel Vadot               <&gcc GCC_CAMERA_AHB_CLK>;
71*b2d2a78aSEmmanuel Vadot      power-domains = <&rpmhpd SM8150_MMCX>;
72*b2d2a78aSEmmanuel Vadot      required-opps = <&rpmhpd_opp_low_svs>;
73*b2d2a78aSEmmanuel Vadot      #clock-cells = <1>;
74*b2d2a78aSEmmanuel Vadot      #reset-cells = <1>;
75*b2d2a78aSEmmanuel Vadot      #power-domain-cells = <1>;
76*b2d2a78aSEmmanuel Vadot    };
77*b2d2a78aSEmmanuel Vadot...
78