xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gcc-msm8953.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,gcc-msm8953.yaml#
5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6f126890aSEmmanuel Vadot
7f126890aSEmmanuel Vadottitle: Qualcomm Global Clock & Reset Controller on MSM8953
8f126890aSEmmanuel Vadot
9f126890aSEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Adam Skladowski <a_skl39@protonmail.com>
11f126890aSEmmanuel Vadot  - Sireesh Kodali <sireeshkodali@protonmail.com>
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadotdescription: |
14f126890aSEmmanuel Vadot  Qualcomm global clock control module provides the clocks, resets and power
15f126890aSEmmanuel Vadot  domains on MSM8953.
16f126890aSEmmanuel Vadot
17f126890aSEmmanuel Vadot  See also: include/dt-bindings/clock/qcom,gcc-msm8953.h
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadotproperties:
20f126890aSEmmanuel Vadot  compatible:
21f126890aSEmmanuel Vadot    const: qcom,gcc-msm8953
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot  clocks:
24f126890aSEmmanuel Vadot    items:
25f126890aSEmmanuel Vadot      - description: Board XO source
26f126890aSEmmanuel Vadot      - description: Sleep clock source
27f126890aSEmmanuel Vadot      - description: Byte clock from DSI PHY0
28f126890aSEmmanuel Vadot      - description: Pixel clock from DSI PHY0
29f126890aSEmmanuel Vadot      - description: Byte clock from DSI PHY1
30f126890aSEmmanuel Vadot      - description: Pixel clock from DSI PHY1
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot  clock-names:
33f126890aSEmmanuel Vadot    items:
34f126890aSEmmanuel Vadot      - const: xo
35f126890aSEmmanuel Vadot      - const: sleep
36f126890aSEmmanuel Vadot      - const: dsi0pll
37f126890aSEmmanuel Vadot      - const: dsi0pllbyte
38f126890aSEmmanuel Vadot      - const: dsi1pll
39f126890aSEmmanuel Vadot      - const: dsi1pllbyte
40f126890aSEmmanuel Vadot
41f126890aSEmmanuel Vadotrequired:
42f126890aSEmmanuel Vadot  - compatible
43f126890aSEmmanuel Vadot  - clocks
44f126890aSEmmanuel Vadot  - clock-names
45*0e8011faSEmmanuel Vadot  - '#power-domain-cells'
46f126890aSEmmanuel Vadot
47f126890aSEmmanuel VadotallOf:
48f126890aSEmmanuel Vadot  - $ref: qcom,gcc.yaml#
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel VadotunevaluatedProperties: false
51f126890aSEmmanuel Vadot
52f126890aSEmmanuel Vadotexamples:
53f126890aSEmmanuel Vadot  - |
54f126890aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmcc.h>
55f126890aSEmmanuel Vadot
56f126890aSEmmanuel Vadot    clock-controller@1800000 {
57f126890aSEmmanuel Vadot        compatible = "qcom,gcc-msm8953";
58f126890aSEmmanuel Vadot        reg = <0x01800000 0x80000>;
59f126890aSEmmanuel Vadot        clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>,
60f126890aSEmmanuel Vadot                 <&sleep_clk>,
61f126890aSEmmanuel Vadot                 <&dsi0_phy 1>,
62f126890aSEmmanuel Vadot                 <&dsi0_phy 0>,
63f126890aSEmmanuel Vadot                 <&dsi1_phy 1>,
64f126890aSEmmanuel Vadot                 <&dsi1_phy 0>;
65f126890aSEmmanuel Vadot        clock-names = "xo",
66f126890aSEmmanuel Vadot                      "sleep",
67f126890aSEmmanuel Vadot                      "dsi0pll",
68f126890aSEmmanuel Vadot                      "dsi0pllbyte",
69f126890aSEmmanuel Vadot                      "dsi1pll",
70f126890aSEmmanuel Vadot                      "dsi1pllbyte";
71f126890aSEmmanuel Vadot        #clock-cells = <1>;
72f126890aSEmmanuel Vadot        #reset-cells = <1>;
73f126890aSEmmanuel Vadot        #power-domain-cells = <1>;
74f126890aSEmmanuel Vadot    };
75