xref: /freebsd/sys/contrib/device-tree/Bindings/clock/qcom,gcc-sc8280xp.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
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-sc8280xp.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Global Clock & Reset Controller on SC8280xp
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description: |
13  Qualcomm global clock control module provides the clocks, resets and
14  power domains on SC8280xp.
15
16  See also:: include/dt-bindings/clock/qcom,gcc-sc8280xp.h
17
18properties:
19  compatible:
20    const: qcom,gcc-sc8280xp
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 USB SuperSpeed pipe clock
33      - description: USB4 PHY pipegmux clock source
34      - description: USB4 PHY DP gmux clock source
35      - description: USB4 PHY sys pipegmux clock source
36      - description: USB4 PHY PCIe pipe clock
37      - description: USB4 PHY router max pipe clock
38      - description: Primary USB4 RX0 clock
39      - description: Primary USB4 RX1 clock
40      - description: Secondary USB SuperSpeed pipe clock
41      - description: Second USB4 PHY pipegmux clock source
42      - description: Second USB4 PHY DP gmux clock source
43      - description: Second USB4 PHY sys pipegmux clock source
44      - description: Second USB4 PHY PCIe pipe clock
45      - description: Second USB4 PHY router max pipe clock
46      - description: Secondary USB4 RX0 clock
47      - description: Secondary USB4 RX1 clock
48      - description: Multiport USB first SuperSpeed pipe clock
49      - description: Multiport USB second SuperSpeed pipe clock
50      - description: PCIe 2a pipe clock
51      - description: PCIe 2b pipe clock
52      - description: PCIe 3a pipe clock
53      - description: PCIe 3b pipe clock
54      - description: PCIe 4 pipe clock
55      - description: First EMAC controller reference clock
56      - description: Second EMAC controller reference clock
57
58  power-domains:
59    items:
60      - description: CX domain
61
62  protected-clocks:
63    maxItems: 389
64
65required:
66  - compatible
67  - clocks
68
69allOf:
70  - $ref: qcom,gcc.yaml#
71
72unevaluatedProperties: false
73
74examples:
75  - |
76    #include <dt-bindings/clock/qcom,rpmh.h>
77    #include <dt-bindings/power/qcom-rpmpd.h>
78
79    clock-controller@100000 {
80      compatible = "qcom,gcc-sc8280xp";
81      reg = <0x00100000 0x1f0000>;
82      clocks = <&rpmhcc RPMH_CXO_CLK>,
83               <&sleep_clk>,
84               <&ufs_phy_rx_symbol_0_clk>,
85               <&ufs_phy_rx_symbol_1_clk>,
86               <&ufs_phy_tx_symbol_0_clk>,
87               <&ufs_card_rx_symbol_0_clk>,
88               <&ufs_card_rx_symbol_1_clk>,
89               <&ufs_card_tx_symbol_0_clk>,
90               <&usb_0_ssphy>,
91               <&gcc_usb4_phy_pipegmux_clk_src>,
92               <&gcc_usb4_phy_dp_gmux_clk_src>,
93               <&gcc_usb4_phy_sys_pipegmux_clk_src>,
94               <&usb4_phy_gcc_usb4_pcie_pipe_clk>,
95               <&usb4_phy_gcc_usb4rtr_max_pipe_clk>,
96               <&qusb4phy_gcc_usb4_rx0_clk>,
97               <&qusb4phy_gcc_usb4_rx1_clk>,
98               <&usb_1_ssphy>,
99               <&gcc_usb4_1_phy_pipegmux_clk_src>,
100               <&gcc_usb4_1_phy_dp_gmux_clk_src>,
101               <&gcc_usb4_1_phy_sys_pipegmux_clk_src>,
102               <&usb4_1_phy_gcc_usb4_pcie_pipe_clk>,
103               <&usb4_1_phy_gcc_usb4rtr_max_pipe_clk>,
104               <&qusb4phy_1_gcc_usb4_rx0_clk>,
105               <&qusb4phy_1_gcc_usb4_rx1_clk>,
106               <&usb_2_ssphy>,
107               <&usb_3_ssphy>,
108               <&pcie2a_lane>,
109               <&pcie2b_lane>,
110               <&pcie3a_lane>,
111               <&pcie3b_lane>,
112               <&pcie4_lane>,
113               <&rxc0_ref_clk>,
114               <&rxc1_ref_clk>;
115      power-domains = <&rpmhpd SC8280XP_CX>;
116
117      #clock-cells = <1>;
118      #reset-cells = <1>;
119      #power-domain-cells = <1>;
120    };
121...
122