xref: /freebsd/sys/contrib/device-tree/Bindings/phy/qcom,pcie2-phy.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/qcom,pcie2-phy.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Qualcomm PCIe2 PHY controller
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Vinod Koul <vkoul@kernel.org>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel Vadotdescription:
13*cb7aa33aSEmmanuel Vadot  The Qualcomm PCIe2 PHY is a Synopsys based phy found in a number of Qualcomm
14*cb7aa33aSEmmanuel Vadot  platforms.
15*cb7aa33aSEmmanuel Vadot
16*cb7aa33aSEmmanuel Vadotproperties:
17*cb7aa33aSEmmanuel Vadot  compatible:
18*cb7aa33aSEmmanuel Vadot    items:
19*cb7aa33aSEmmanuel Vadot      - const: qcom,qcs404-pcie2-phy
20*cb7aa33aSEmmanuel Vadot      - const: qcom,pcie2-phy
21*cb7aa33aSEmmanuel Vadot
22*cb7aa33aSEmmanuel Vadot  reg:
23*cb7aa33aSEmmanuel Vadot    items:
24*cb7aa33aSEmmanuel Vadot      - description: PHY register set
25*cb7aa33aSEmmanuel Vadot
26*cb7aa33aSEmmanuel Vadot  clocks:
27*cb7aa33aSEmmanuel Vadot    items:
28*cb7aa33aSEmmanuel Vadot      - description: a clock-specifier pair for the "pipe" clock
29*cb7aa33aSEmmanuel Vadot
30*cb7aa33aSEmmanuel Vadot  clock-output-names:
31*cb7aa33aSEmmanuel Vadot    maxItems: 1
32*cb7aa33aSEmmanuel Vadot
33*cb7aa33aSEmmanuel Vadot  "#clock-cells":
34*cb7aa33aSEmmanuel Vadot    const: 0
35*cb7aa33aSEmmanuel Vadot
36*cb7aa33aSEmmanuel Vadot  "#phy-cells":
37*cb7aa33aSEmmanuel Vadot    const: 0
38*cb7aa33aSEmmanuel Vadot
39*cb7aa33aSEmmanuel Vadot  vdda-vp-supply:
40*cb7aa33aSEmmanuel Vadot    description: low voltage regulator
41*cb7aa33aSEmmanuel Vadot
42*cb7aa33aSEmmanuel Vadot  vdda-vph-supply:
43*cb7aa33aSEmmanuel Vadot    description: high voltage regulator
44*cb7aa33aSEmmanuel Vadot
45*cb7aa33aSEmmanuel Vadot  resets:
46*cb7aa33aSEmmanuel Vadot    maxItems: 2
47*cb7aa33aSEmmanuel Vadot
48*cb7aa33aSEmmanuel Vadot  reset-names:
49*cb7aa33aSEmmanuel Vadot    items:
50*cb7aa33aSEmmanuel Vadot      - const: phy
51*cb7aa33aSEmmanuel Vadot      - const: pipe
52*cb7aa33aSEmmanuel Vadot
53*cb7aa33aSEmmanuel Vadotrequired:
54*cb7aa33aSEmmanuel Vadot  - compatible
55*cb7aa33aSEmmanuel Vadot  - reg
56*cb7aa33aSEmmanuel Vadot  - clocks
57*cb7aa33aSEmmanuel Vadot  - clock-output-names
58*cb7aa33aSEmmanuel Vadot  - "#clock-cells"
59*cb7aa33aSEmmanuel Vadot  - "#phy-cells"
60*cb7aa33aSEmmanuel Vadot  - vdda-vp-supply
61*cb7aa33aSEmmanuel Vadot  - vdda-vph-supply
62*cb7aa33aSEmmanuel Vadot  - resets
63*cb7aa33aSEmmanuel Vadot  - reset-names
64*cb7aa33aSEmmanuel Vadot
65*cb7aa33aSEmmanuel VadotadditionalProperties: false
66*cb7aa33aSEmmanuel Vadot
67*cb7aa33aSEmmanuel Vadotexamples:
68*cb7aa33aSEmmanuel Vadot  - |
69*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-qcs404.h>
70*cb7aa33aSEmmanuel Vadot    phy@7786000 {
71*cb7aa33aSEmmanuel Vadot      compatible = "qcom,qcs404-pcie2-phy", "qcom,pcie2-phy";
72*cb7aa33aSEmmanuel Vadot      reg = <0x07786000 0xb8>;
73*cb7aa33aSEmmanuel Vadot
74*cb7aa33aSEmmanuel Vadot      clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
75*cb7aa33aSEmmanuel Vadot      resets = <&gcc GCC_PCIEPHY_0_PHY_BCR>,
76*cb7aa33aSEmmanuel Vadot               <&gcc GCC_PCIE_0_PIPE_ARES>;
77*cb7aa33aSEmmanuel Vadot      reset-names = "phy", "pipe";
78*cb7aa33aSEmmanuel Vadot
79*cb7aa33aSEmmanuel Vadot      vdda-vp-supply = <&vreg_l3_1p05>;
80*cb7aa33aSEmmanuel Vadot      vdda-vph-supply = <&vreg_l5_1p8>;
81*cb7aa33aSEmmanuel Vadot
82*cb7aa33aSEmmanuel Vadot      clock-output-names = "pcie_0_pipe_clk";
83*cb7aa33aSEmmanuel Vadot      #clock-cells = <0>;
84*cb7aa33aSEmmanuel Vadot      #phy-cells = <0>;
85*cb7aa33aSEmmanuel Vadot    };
86*cb7aa33aSEmmanuel Vadot...
87