xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,sa8775p-camcc.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
15f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25f62a964SEmmanuel Vadot%YAML 1.2
35f62a964SEmmanuel Vadot---
45f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sa8775p-camcc.yaml#
55f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65f62a964SEmmanuel Vadot
75f62a964SEmmanuel Vadottitle: Qualcomm Camera Clock & Reset Controller on SA8775P
85f62a964SEmmanuel Vadot
95f62a964SEmmanuel Vadotmaintainers:
105f62a964SEmmanuel Vadot  - Taniya Das <quic_tdas@quicinc.com>
112846c905SEmmanuel Vadot  - Imran Shaik <quic_imrashai@quicinc.com>
125f62a964SEmmanuel Vadot
135f62a964SEmmanuel Vadotdescription: |
145f62a964SEmmanuel Vadot  Qualcomm camera clock control module provides the clocks, resets and power
155f62a964SEmmanuel Vadot  domains on SA8775p.
165f62a964SEmmanuel Vadot
172846c905SEmmanuel Vadot  See also:
182846c905SEmmanuel Vadot    include/dt-bindings/clock/qcom,qcs8300-camcc.h
192846c905SEmmanuel Vadot    include/dt-bindings/clock/qcom,sa8775p-camcc.h
20*833e5d42SEmmanuel Vadot    include/dt-bindings/clock/qcom,sc8280xp-camcc.h
215f62a964SEmmanuel Vadot
225f62a964SEmmanuel Vadotproperties:
235f62a964SEmmanuel Vadot  compatible:
245f62a964SEmmanuel Vadot    enum:
252846c905SEmmanuel Vadot      - qcom,qcs8300-camcc
265f62a964SEmmanuel Vadot      - qcom,sa8775p-camcc
27*833e5d42SEmmanuel Vadot      - qcom,sc8280xp-camcc
285f62a964SEmmanuel Vadot
295f62a964SEmmanuel Vadot  clocks:
305f62a964SEmmanuel Vadot    items:
315f62a964SEmmanuel Vadot      - description: Camera AHB clock from GCC
325f62a964SEmmanuel Vadot      - description: Board XO source
335f62a964SEmmanuel Vadot      - description: Board active XO source
345f62a964SEmmanuel Vadot      - description: Sleep clock source
355f62a964SEmmanuel Vadot
365f62a964SEmmanuel Vadot  power-domains:
375f62a964SEmmanuel Vadot    maxItems: 1
385f62a964SEmmanuel Vadot    description: MMCX power domain
395f62a964SEmmanuel Vadot
40*833e5d42SEmmanuel Vadot  required-opps:
41*833e5d42SEmmanuel Vadot    description:
42*833e5d42SEmmanuel Vadot      OPP node describing required MMCX performance point.
43*833e5d42SEmmanuel Vadot    maxItems: 1
44*833e5d42SEmmanuel Vadot
455f62a964SEmmanuel Vadotrequired:
465f62a964SEmmanuel Vadot  - compatible
475f62a964SEmmanuel Vadot  - clocks
485f62a964SEmmanuel Vadot  - power-domains
495f62a964SEmmanuel Vadot  - '#power-domain-cells'
505f62a964SEmmanuel Vadot
515f62a964SEmmanuel VadotallOf:
525f62a964SEmmanuel Vadot  - $ref: qcom,gcc.yaml#
53*833e5d42SEmmanuel Vadot  - if:
54*833e5d42SEmmanuel Vadot      properties:
55*833e5d42SEmmanuel Vadot        compatible:
56*833e5d42SEmmanuel Vadot          contains:
57*833e5d42SEmmanuel Vadot            const: qcom,sc8280xp-camcc
58*833e5d42SEmmanuel Vadot    then:
59*833e5d42SEmmanuel Vadot      required:
60*833e5d42SEmmanuel Vadot        - required-opps
615f62a964SEmmanuel Vadot
625f62a964SEmmanuel VadotunevaluatedProperties: false
635f62a964SEmmanuel Vadot
645f62a964SEmmanuel Vadotexamples:
655f62a964SEmmanuel Vadot  - |
665f62a964SEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
675f62a964SEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
685f62a964SEmmanuel Vadot    #include <dt-bindings/clock/qcom,sa8775p-gcc.h>
695f62a964SEmmanuel Vadot    clock-controller@ade0000 {
705f62a964SEmmanuel Vadot      compatible = "qcom,sa8775p-camcc";
715f62a964SEmmanuel Vadot      reg = <0x0ade0000 0x20000>;
725f62a964SEmmanuel Vadot      clocks = <&gcc GCC_CAMERA_AHB_CLK>,
735f62a964SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK>,
745f62a964SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK_A>,
755f62a964SEmmanuel Vadot               <&sleep_clk>;
765f62a964SEmmanuel Vadot      power-domains = <&rpmhpd SA8775P_MMCX>;
775f62a964SEmmanuel Vadot      #clock-cells = <1>;
785f62a964SEmmanuel Vadot      #reset-cells = <1>;
795f62a964SEmmanuel Vadot      #power-domain-cells = <1>;
805f62a964SEmmanuel Vadot    };
815f62a964SEmmanuel Vadot...
82