xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gcc-msm8976.yaml (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/clock/qcom,gcc-msm8976.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Global Clock & Reset Controller Binding for MSM8976
8
9maintainers:
10  - Stephen Boyd <sboyd@kernel.org>
11  - Taniya Das <tdas@codeaurora.org>
12
13description: |
14  Qualcomm global clock control module which supports the clocks, resets and
15  power domains on MSM8976.
16
17  See also:
18  - dt-bindings/clock/qcom,gcc-msm8976.h
19
20properties:
21  compatible:
22    enum:
23      - qcom,gcc-msm8976
24      - qcom,gcc-msm8976-v1.1
25
26  clocks:
27    items:
28      - description: XO source
29      - description: Always-on XO source
30      - description: Pixel clock from DSI PHY0
31      - description: Byte clock from DSI PHY0
32      - description: Pixel clock from DSI PHY1
33      - description: Byte clock from DSI PHY1
34
35  clock-names:
36    items:
37      - const: xo
38      - const: xo_a
39      - const: dsi0pll
40      - const: dsi0pllbyte
41      - const: dsi1pll
42      - const: dsi1pllbyte
43
44  vdd_gfx-supply:
45    description:
46      Phandle to voltage regulator providing power to the GX domain.
47
48  '#clock-cells':
49    const: 1
50
51  '#reset-cells':
52    const: 1
53
54  '#power-domain-cells':
55    const: 1
56
57  reg:
58    maxItems: 1
59
60required:
61  - compatible
62  - reg
63  - clocks
64  - clock-names
65  - vdd_gfx-supply
66  - '#clock-cells'
67  - '#reset-cells'
68  - '#power-domain-cells'
69
70additionalProperties: false
71
72examples:
73  - |
74    clock-controller@1800000 {
75      compatible = "qcom,gcc-msm8976";
76      #clock-cells = <1>;
77      #reset-cells = <1>;
78      #power-domain-cells = <1>;
79      reg = <0x1800000 0x80000>;
80
81      clocks = <&xo_board>,
82               <&xo_board>,
83               <&dsi0_phy 1>,
84               <&dsi0_phy 0>,
85               <&dsi1_phy 1>,
86               <&dsi1_phy 0>;
87
88      clock-names = "xo",
89                    "xo_a",
90                    "dsi0pll",
91                    "dsi0pllbyte",
92                    "dsi1pll",
93                    "dsi1pllbyte";
94
95      vdd_gfx-supply = <&pm8004_s5>;
96    };
97...
98