xref: /freebsd-src/sys/contrib/device-tree/Bindings/clock/qcom,sm8350-videocc.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f126890aSEmmanuel Vadot%YAML 1.2
3f126890aSEmmanuel Vadot---
4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/clock/qcom,sm8350-videocc.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Qualcomm SM8350 Video Clock & Reset Controller
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Konrad Dybcio <konradybcio@kernel.org>
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadotdescription: |
13f126890aSEmmanuel Vadot  Qualcomm video clock control module provides the clocks, resets and power
14f126890aSEmmanuel Vadot  domains on Qualcomm SoCs.
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot  See also::
17f126890aSEmmanuel Vadot    include/dt-bindings/clock/qcom,videocc-sm8350.h
18f126890aSEmmanuel Vadot    include/dt-bindings/reset/qcom,videocc-sm8350.h
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadotproperties:
21f126890aSEmmanuel Vadot  compatible:
22aa1a8ff2SEmmanuel Vadot    enum:
23aa1a8ff2SEmmanuel Vadot      - qcom,sc8280xp-videocc
24aa1a8ff2SEmmanuel Vadot      - qcom,sm8350-videocc
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot  clocks:
27f126890aSEmmanuel Vadot    items:
28f126890aSEmmanuel Vadot      - description: Board XO source
29f126890aSEmmanuel Vadot      - description: Board active XO source
30f126890aSEmmanuel Vadot      - description: Board sleep clock
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot  power-domains:
33f126890aSEmmanuel Vadot    description:
34f126890aSEmmanuel Vadot      A phandle and PM domain specifier for the MMCX power domain.
35f126890aSEmmanuel Vadot    maxItems: 1
36f126890aSEmmanuel Vadot
37f126890aSEmmanuel Vadot  required-opps:
38f126890aSEmmanuel Vadot    description:
39f126890aSEmmanuel Vadot      A phandle to an OPP node describing required MMCX performance point.
40f126890aSEmmanuel Vadot    maxItems: 1
41f126890aSEmmanuel Vadot
42f126890aSEmmanuel Vadotrequired:
43f126890aSEmmanuel Vadot  - compatible
44f126890aSEmmanuel Vadot  - clocks
45f126890aSEmmanuel Vadot  - power-domains
46f126890aSEmmanuel Vadot  - required-opps
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel VadotallOf:
49f126890aSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
50f126890aSEmmanuel Vadot
51f126890aSEmmanuel VadotunevaluatedProperties: false
52f126890aSEmmanuel Vadot
53f126890aSEmmanuel Vadotexamples:
54f126890aSEmmanuel Vadot  - |
55f126890aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
56aa1a8ff2SEmmanuel Vadot    #include <dt-bindings/power/qcom,rpmhpd.h>
57f126890aSEmmanuel Vadot
58f126890aSEmmanuel Vadot    clock-controller@abf0000 {
59f126890aSEmmanuel Vadot      compatible = "qcom,sm8350-videocc";
60f126890aSEmmanuel Vadot      reg = <0x0abf0000 0x10000>;
61f126890aSEmmanuel Vadot      clocks = <&rpmhcc RPMH_CXO_CLK>,
62f126890aSEmmanuel Vadot               <&rpmhcc RPMH_CXO_CLK_A>,
63f126890aSEmmanuel Vadot               <&sleep_clk>;
64aa1a8ff2SEmmanuel Vadot      power-domains = <&rpmhpd RPMHPD_MMCX>;
65f126890aSEmmanuel Vadot      required-opps = <&rpmhpd_opp_low_svs>;
66f126890aSEmmanuel Vadot      #clock-cells = <1>;
67f126890aSEmmanuel Vadot      #reset-cells = <1>;
68f126890aSEmmanuel Vadot      #power-domain-cells = <1>;
69f126890aSEmmanuel Vadot    };
70f126890aSEmmanuel Vadot...
71