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