xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,x1e80100-camcc.yaml (revision 8ccc0d235c226d84112561d453c49904398d085c)
12846c905SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22846c905SEmmanuel Vadot%YAML 1.2
32846c905SEmmanuel Vadot---
42846c905SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,x1e80100-camcc.yaml#
52846c905SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
62846c905SEmmanuel Vadot
72846c905SEmmanuel Vadottitle: Qualcomm Camera Clock & Reset Controller on x1e80100
82846c905SEmmanuel Vadot
92846c905SEmmanuel Vadotmaintainers:
102846c905SEmmanuel Vadot  - Bryan O'Donoghue <bryan.odonoghue@linaro.org>
112846c905SEmmanuel Vadot
122846c905SEmmanuel Vadotdescription: |
132846c905SEmmanuel Vadot  Qualcomm camera clock control module provides the clocks, resets and power
142846c905SEmmanuel Vadot  domains on x1e80100.
152846c905SEmmanuel Vadot
162846c905SEmmanuel Vadot  See also:
172846c905SEmmanuel Vadot    include/dt-bindings/clock/qcom,x1e80100-camcc.h
182846c905SEmmanuel Vadot
192846c905SEmmanuel VadotallOf:
202846c905SEmmanuel Vadot  - $ref: qcom,gcc.yaml#
212846c905SEmmanuel Vadot
222846c905SEmmanuel Vadotproperties:
232846c905SEmmanuel Vadot  compatible:
242846c905SEmmanuel Vadot    enum:
252846c905SEmmanuel Vadot      - qcom,x1e80100-camcc
262846c905SEmmanuel Vadot
272846c905SEmmanuel Vadot  reg:
282846c905SEmmanuel Vadot    maxItems: 1
292846c905SEmmanuel Vadot
302846c905SEmmanuel Vadot  clocks:
312846c905SEmmanuel Vadot    items:
322846c905SEmmanuel Vadot      - description: Camera AHB clock from GCC
332846c905SEmmanuel Vadot      - description: Board XO source
342846c905SEmmanuel Vadot      - description: Board active XO source
352846c905SEmmanuel Vadot      - description: Sleep clock source
362846c905SEmmanuel Vadot
372846c905SEmmanuel Vadot  power-domains:
382846c905SEmmanuel Vadot    items:
392846c905SEmmanuel Vadot      - description: A phandle to the MXC power-domain
402846c905SEmmanuel Vadot      - description: A phandle to the MMCX power-domain
412846c905SEmmanuel Vadot
422846c905SEmmanuel Vadot  required-opps:
43*8ccc0d23SEmmanuel Vadot    items:
44*8ccc0d23SEmmanuel Vadot      - description: A phandle to an OPP node describing MXC performance points
45*8ccc0d23SEmmanuel Vadot      - description: A phandle to an OPP node describing MMCX performance points
462846c905SEmmanuel Vadot
472846c905SEmmanuel Vadotrequired:
482846c905SEmmanuel Vadot  - compatible
492846c905SEmmanuel Vadot  - clocks
502846c905SEmmanuel Vadot  - power-domains
512846c905SEmmanuel Vadot  - required-opps
522846c905SEmmanuel Vadot
532846c905SEmmanuel VadotunevaluatedProperties: false
542846c905SEmmanuel Vadot
552846c905SEmmanuel Vadotexamples:
562846c905SEmmanuel Vadot  - |
572846c905SEmmanuel Vadot    #include <dt-bindings/clock/qcom,x1e80100-gcc.h>
582846c905SEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
592846c905SEmmanuel Vadot    #include <dt-bindings/power/qcom,rpmhpd.h>
602846c905SEmmanuel Vadot    clock-controller@ade0000 {
612846c905SEmmanuel Vadot      compatible = "qcom,x1e80100-camcc";
622846c905SEmmanuel Vadot      reg = <0xade0000 0x20000>;
632846c905SEmmanuel Vadot      clocks = <&gcc GCC_CAMERA_AHB_CLK>,
642846c905SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK>,
652846c905SEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK_A>,
662846c905SEmmanuel Vadot               <&sleep_clk>;
672846c905SEmmanuel Vadot      power-domains = <&rpmhpd RPMHPD_MXC>,
682846c905SEmmanuel Vadot                      <&rpmhpd RPMHPD_MMCX>;
69*8ccc0d23SEmmanuel Vadot      required-opps = <&rpmhpd_opp_low_svs>,
70*8ccc0d23SEmmanuel Vadot                      <&rpmhpd_opp_low_svs>;
712846c905SEmmanuel Vadot      #clock-cells = <1>;
722846c905SEmmanuel Vadot      #reset-cells = <1>;
732846c905SEmmanuel Vadot      #power-domain-cells = <1>;
742846c905SEmmanuel Vadot    };
752846c905SEmmanuel Vadot...
76