xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,sa8775p-gcc.yaml (revision 02e9120893770924227138ba49df1edb3896112a)
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,sa8775p-gcc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Global Clock & Reset Controller on sa8775p
8
9maintainers:
10  - Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
11
12description: |
13  Qualcomm global clock control module provides the clocks, resets and
14  power domains on sa8775p.
15
16  See also:: include/dt-bindings/clock/qcom,sa8775p-gcc.h
17
18properties:
19  compatible:
20    const: qcom,sa8775p-gcc
21
22  clocks:
23    items:
24      - description: XO reference clock
25      - description: Sleep clock
26      - description: UFS memory first RX symbol clock
27      - description: UFS memory second RX symbol clock
28      - description: UFS memory first TX symbol clock
29      - description: UFS card first RX symbol clock
30      - description: UFS card second RX symbol clock
31      - description: UFS card first TX symbol clock
32      - description: Primary USB3 PHY wrapper pipe clock
33      - description: Secondary USB3 PHY wrapper pipe clock
34      - description: PCIe 0 pipe clock
35      - description: PCIe 1 pipe clock
36      - description: PCIe PHY clock
37      - description: First EMAC controller reference clock
38      - description: Second EMAC controller reference clock
39
40  protected-clocks:
41    maxItems: 240
42
43  power-domains:
44    maxItems: 1
45
46required:
47  - compatible
48  - clocks
49
50allOf:
51  - $ref: qcom,gcc.yaml#
52
53unevaluatedProperties: false
54
55examples:
56  - |
57    #include <dt-bindings/clock/qcom,rpmh.h>
58    #include <dt-bindings/power/qcom-rpmpd.h>
59
60    gcc: clock-controller@100000 {
61        compatible = "qcom,sa8775p-gcc";
62        reg = <0x100000 0xc7018>;
63        clocks = <&rpmhcc RPMH_CXO_CLK>,
64                 <&sleep_clk>,
65                 <&ufs_phy_rx_symbol_0_clk>,
66                 <&ufs_phy_rx_symbol_1_clk>,
67                 <&ufs_phy_tx_symbol_0_clk>,
68                 <&ufs_card_rx_symbol_0_clk>,
69                 <&ufs_card_rx_symbol_1_clk>,
70                 <&ufs_card_tx_symbol_0_clk>,
71                 <&usb_0_ssphy>,
72                 <&usb_1_ssphy>,
73                 <&pcie_0_pipe_clk>,
74                 <&pcie_1_pipe_clk>,
75                 <&pcie_phy_pipe_clk>,
76                 <&rxc0_ref_clk>,
77                 <&rxc1_ref_clk>;
78        power-domains = <&rpmhpd SA8775P_CX>;
79
80        #clock-cells = <1>;
81        #reset-cells = <1>;
82        #power-domain-cells = <1>;
83    };
84...
85