xref: /freebsd/sys/contrib/device-tree/Bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
18bab661aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28bab661aSEmmanuel Vadot%YAML 1.2
38bab661aSEmmanuel Vadot---
48bab661aSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-pcie-phy.yaml#
58bab661aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68bab661aSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm QMP PHY controller (PCIe, SC8280XP)
88bab661aSEmmanuel Vadot
98bab661aSEmmanuel Vadotmaintainers:
108bab661aSEmmanuel Vadot  - Vinod Koul <vkoul@kernel.org>
118bab661aSEmmanuel Vadot
128bab661aSEmmanuel Vadotdescription:
138bab661aSEmmanuel Vadot  The QMP PHY controller supports physical layer functionality for a number of
148bab661aSEmmanuel Vadot  controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
158bab661aSEmmanuel Vadot
168bab661aSEmmanuel Vadotproperties:
178bab661aSEmmanuel Vadot  compatible:
188bab661aSEmmanuel Vadot    enum:
19aa1a8ff2SEmmanuel Vadot      - qcom,sa8775p-qmp-gen4x2-pcie-phy
20aa1a8ff2SEmmanuel Vadot      - qcom,sa8775p-qmp-gen4x4-pcie-phy
21aa1a8ff2SEmmanuel Vadot      - qcom,sc8180x-qmp-pcie-phy
228bab661aSEmmanuel Vadot      - qcom,sc8280xp-qmp-gen3x1-pcie-phy
238bab661aSEmmanuel Vadot      - qcom,sc8280xp-qmp-gen3x2-pcie-phy
248bab661aSEmmanuel Vadot      - qcom,sc8280xp-qmp-gen3x4-pcie-phy
25aa1a8ff2SEmmanuel Vadot      - qcom,sdm845-qhp-pcie-phy
26aa1a8ff2SEmmanuel Vadot      - qcom,sdm845-qmp-pcie-phy
27aa1a8ff2SEmmanuel Vadot      - qcom,sdx55-qmp-pcie-phy
28fac71e4eSEmmanuel Vadot      - qcom,sdx65-qmp-gen4x2-pcie-phy
29aa1a8ff2SEmmanuel Vadot      - qcom,sm8150-qmp-gen3x1-pcie-phy
30aa1a8ff2SEmmanuel Vadot      - qcom,sm8150-qmp-gen3x2-pcie-phy
31aa1a8ff2SEmmanuel Vadot      - qcom,sm8250-qmp-gen3x1-pcie-phy
32aa1a8ff2SEmmanuel Vadot      - qcom,sm8250-qmp-gen3x2-pcie-phy
33aa1a8ff2SEmmanuel Vadot      - qcom,sm8250-qmp-modem-pcie-phy
34cb7aa33aSEmmanuel Vadot      - qcom,sm8350-qmp-gen3x1-pcie-phy
35aa1a8ff2SEmmanuel Vadot      - qcom,sm8450-qmp-gen3x1-pcie-phy
36aa1a8ff2SEmmanuel Vadot      - qcom,sm8450-qmp-gen4x2-pcie-phy
37cb7aa33aSEmmanuel Vadot      - qcom,sm8550-qmp-gen3x2-pcie-phy
38cb7aa33aSEmmanuel Vadot      - qcom,sm8550-qmp-gen4x2-pcie-phy
398d13bc63SEmmanuel Vadot      - qcom,sm8650-qmp-gen3x2-pcie-phy
408d13bc63SEmmanuel Vadot      - qcom,sm8650-qmp-gen4x2-pcie-phy
4101950c46SEmmanuel Vadot      - qcom,x1e80100-qmp-gen3x2-pcie-phy
4201950c46SEmmanuel Vadot      - qcom,x1e80100-qmp-gen4x2-pcie-phy
438bab661aSEmmanuel Vadot
448bab661aSEmmanuel Vadot  reg:
458bab661aSEmmanuel Vadot    minItems: 1
468bab661aSEmmanuel Vadot    maxItems: 2
478bab661aSEmmanuel Vadot
488bab661aSEmmanuel Vadot  clocks:
49cb7aa33aSEmmanuel Vadot    minItems: 5
50aa1a8ff2SEmmanuel Vadot    maxItems: 7
518bab661aSEmmanuel Vadot
528bab661aSEmmanuel Vadot  clock-names:
53cb7aa33aSEmmanuel Vadot    minItems: 5
548bab661aSEmmanuel Vadot    items:
558bab661aSEmmanuel Vadot      - const: aux
568bab661aSEmmanuel Vadot      - const: cfg_ahb
578bab661aSEmmanuel Vadot      - const: ref
58aa1a8ff2SEmmanuel Vadot      - enum: [rchng, refgen]
598bab661aSEmmanuel Vadot      - const: pipe
608bab661aSEmmanuel Vadot      - const: pipediv2
61aa1a8ff2SEmmanuel Vadot      - const: phy_aux
628bab661aSEmmanuel Vadot
638bab661aSEmmanuel Vadot  power-domains:
648bab661aSEmmanuel Vadot    maxItems: 1
658bab661aSEmmanuel Vadot
668bab661aSEmmanuel Vadot  resets:
67cb7aa33aSEmmanuel Vadot    minItems: 1
68cb7aa33aSEmmanuel Vadot    maxItems: 2
698bab661aSEmmanuel Vadot
708bab661aSEmmanuel Vadot  reset-names:
71cb7aa33aSEmmanuel Vadot    minItems: 1
728bab661aSEmmanuel Vadot    items:
738bab661aSEmmanuel Vadot      - const: phy
74cb7aa33aSEmmanuel Vadot      - const: phy_nocsr
758bab661aSEmmanuel Vadot
768bab661aSEmmanuel Vadot  vdda-phy-supply: true
778bab661aSEmmanuel Vadot
788bab661aSEmmanuel Vadot  vdda-pll-supply: true
798bab661aSEmmanuel Vadot
80cb7aa33aSEmmanuel Vadot  vdda-qref-supply: true
81cb7aa33aSEmmanuel Vadot
828bab661aSEmmanuel Vadot  qcom,4ln-config-sel:
838bab661aSEmmanuel Vadot    description: PCIe 4-lane configuration
848bab661aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
858bab661aSEmmanuel Vadot    items:
868bab661aSEmmanuel Vadot      - items:
878bab661aSEmmanuel Vadot          - description: phandle of TCSR syscon
888bab661aSEmmanuel Vadot          - description: offset of PCIe 4-lane configuration register
898bab661aSEmmanuel Vadot          - description: offset of configuration bit for this PHY
908bab661aSEmmanuel Vadot
917d0873ebSEmmanuel Vadot  "#clock-cells": true
928bab661aSEmmanuel Vadot
938bab661aSEmmanuel Vadot  clock-output-names:
94*0e8011faSEmmanuel Vadot    maxItems: 1
958bab661aSEmmanuel Vadot
968bab661aSEmmanuel Vadot  "#phy-cells":
978bab661aSEmmanuel Vadot    const: 0
988bab661aSEmmanuel Vadot
998bab661aSEmmanuel Vadotrequired:
1008bab661aSEmmanuel Vadot  - compatible
1018bab661aSEmmanuel Vadot  - reg
1028bab661aSEmmanuel Vadot  - clocks
1038bab661aSEmmanuel Vadot  - clock-names
1048bab661aSEmmanuel Vadot  - resets
1058bab661aSEmmanuel Vadot  - reset-names
1068bab661aSEmmanuel Vadot  - vdda-phy-supply
1078bab661aSEmmanuel Vadot  - vdda-pll-supply
1088bab661aSEmmanuel Vadot  - "#clock-cells"
1098bab661aSEmmanuel Vadot  - clock-output-names
1108bab661aSEmmanuel Vadot  - "#phy-cells"
1118bab661aSEmmanuel Vadot
1128bab661aSEmmanuel VadotadditionalProperties: false
1138bab661aSEmmanuel Vadot
1148bab661aSEmmanuel VadotallOf:
1158bab661aSEmmanuel Vadot  - if:
1168bab661aSEmmanuel Vadot      properties:
1178bab661aSEmmanuel Vadot        compatible:
1188bab661aSEmmanuel Vadot          contains:
1198bab661aSEmmanuel Vadot            enum:
1208bab661aSEmmanuel Vadot              - qcom,sc8280xp-qmp-gen3x4-pcie-phy
1218bab661aSEmmanuel Vadot    then:
1228bab661aSEmmanuel Vadot      properties:
1238bab661aSEmmanuel Vadot        reg:
1248bab661aSEmmanuel Vadot          items:
1258bab661aSEmmanuel Vadot            - description: port a
1268bab661aSEmmanuel Vadot            - description: port b
1278bab661aSEmmanuel Vadot      required:
1288bab661aSEmmanuel Vadot        - qcom,4ln-config-sel
1298bab661aSEmmanuel Vadot    else:
1308bab661aSEmmanuel Vadot      properties:
1318bab661aSEmmanuel Vadot        reg:
1328bab661aSEmmanuel Vadot          maxItems: 1
1338bab661aSEmmanuel Vadot
134cb7aa33aSEmmanuel Vadot  - if:
135cb7aa33aSEmmanuel Vadot      properties:
136cb7aa33aSEmmanuel Vadot        compatible:
137cb7aa33aSEmmanuel Vadot          contains:
138cb7aa33aSEmmanuel Vadot            enum:
139aa1a8ff2SEmmanuel Vadot              - qcom,sc8180x-qmp-pcie-phy
140aa1a8ff2SEmmanuel Vadot              - qcom,sdm845-qhp-pcie-phy
141aa1a8ff2SEmmanuel Vadot              - qcom,sdm845-qmp-pcie-phy
142aa1a8ff2SEmmanuel Vadot              - qcom,sdx55-qmp-pcie-phy
143aa1a8ff2SEmmanuel Vadot              - qcom,sm8150-qmp-gen3x1-pcie-phy
144aa1a8ff2SEmmanuel Vadot              - qcom,sm8150-qmp-gen3x2-pcie-phy
145aa1a8ff2SEmmanuel Vadot              - qcom,sm8250-qmp-gen3x1-pcie-phy
146aa1a8ff2SEmmanuel Vadot              - qcom,sm8250-qmp-gen3x2-pcie-phy
147aa1a8ff2SEmmanuel Vadot              - qcom,sm8250-qmp-modem-pcie-phy
148cb7aa33aSEmmanuel Vadot              - qcom,sm8350-qmp-gen3x1-pcie-phy
149aa1a8ff2SEmmanuel Vadot              - qcom,sm8450-qmp-gen3x1-pcie-phy
150aa1a8ff2SEmmanuel Vadot              - qcom,sm8450-qmp-gen3x2-pcie-phy
151cb7aa33aSEmmanuel Vadot              - qcom,sm8550-qmp-gen3x2-pcie-phy
152cb7aa33aSEmmanuel Vadot              - qcom,sm8550-qmp-gen4x2-pcie-phy
1538d13bc63SEmmanuel Vadot              - qcom,sm8650-qmp-gen3x2-pcie-phy
1548d13bc63SEmmanuel Vadot              - qcom,sm8650-qmp-gen4x2-pcie-phy
15501950c46SEmmanuel Vadot              - qcom,x1e80100-qmp-gen3x2-pcie-phy
15601950c46SEmmanuel Vadot              - qcom,x1e80100-qmp-gen4x2-pcie-phy
157cb7aa33aSEmmanuel Vadot    then:
158cb7aa33aSEmmanuel Vadot      properties:
159cb7aa33aSEmmanuel Vadot        clocks:
160cb7aa33aSEmmanuel Vadot          maxItems: 5
161cb7aa33aSEmmanuel Vadot        clock-names:
162cb7aa33aSEmmanuel Vadot          maxItems: 5
163aa1a8ff2SEmmanuel Vadot
164aa1a8ff2SEmmanuel Vadot  - if:
165aa1a8ff2SEmmanuel Vadot      properties:
166aa1a8ff2SEmmanuel Vadot        compatible:
167aa1a8ff2SEmmanuel Vadot          contains:
168aa1a8ff2SEmmanuel Vadot            enum:
169aa1a8ff2SEmmanuel Vadot              - qcom,sc8280xp-qmp-gen3x1-pcie-phy
170aa1a8ff2SEmmanuel Vadot              - qcom,sc8280xp-qmp-gen3x2-pcie-phy
171aa1a8ff2SEmmanuel Vadot              - qcom,sc8280xp-qmp-gen3x4-pcie-phy
172aa1a8ff2SEmmanuel Vadot    then:
173cb7aa33aSEmmanuel Vadot      properties:
174cb7aa33aSEmmanuel Vadot        clocks:
175cb7aa33aSEmmanuel Vadot          minItems: 6
176cb7aa33aSEmmanuel Vadot        clock-names:
177cb7aa33aSEmmanuel Vadot          minItems: 6
178cb7aa33aSEmmanuel Vadot
179cb7aa33aSEmmanuel Vadot  - if:
180cb7aa33aSEmmanuel Vadot      properties:
181cb7aa33aSEmmanuel Vadot        compatible:
182cb7aa33aSEmmanuel Vadot          contains:
183cb7aa33aSEmmanuel Vadot            enum:
184aa1a8ff2SEmmanuel Vadot              - qcom,sa8775p-qmp-gen4x2-pcie-phy
185aa1a8ff2SEmmanuel Vadot              - qcom,sa8775p-qmp-gen4x4-pcie-phy
186aa1a8ff2SEmmanuel Vadot    then:
187aa1a8ff2SEmmanuel Vadot      properties:
188aa1a8ff2SEmmanuel Vadot        clocks:
189aa1a8ff2SEmmanuel Vadot          minItems: 7
190aa1a8ff2SEmmanuel Vadot        clock-names:
191aa1a8ff2SEmmanuel Vadot          minItems: 7
192aa1a8ff2SEmmanuel Vadot
193aa1a8ff2SEmmanuel Vadot  - if:
194aa1a8ff2SEmmanuel Vadot      properties:
195aa1a8ff2SEmmanuel Vadot        compatible:
196aa1a8ff2SEmmanuel Vadot          contains:
197aa1a8ff2SEmmanuel Vadot            enum:
198cb7aa33aSEmmanuel Vadot              - qcom,sm8550-qmp-gen4x2-pcie-phy
1998d13bc63SEmmanuel Vadot              - qcom,sm8650-qmp-gen4x2-pcie-phy
20001950c46SEmmanuel Vadot              - qcom,x1e80100-qmp-gen4x2-pcie-phy
201cb7aa33aSEmmanuel Vadot    then:
202cb7aa33aSEmmanuel Vadot      properties:
203cb7aa33aSEmmanuel Vadot        resets:
204cb7aa33aSEmmanuel Vadot          minItems: 2
205cb7aa33aSEmmanuel Vadot        reset-names:
206cb7aa33aSEmmanuel Vadot          minItems: 2
207cb7aa33aSEmmanuel Vadot    else:
208cb7aa33aSEmmanuel Vadot      properties:
209cb7aa33aSEmmanuel Vadot        resets:
210cb7aa33aSEmmanuel Vadot          maxItems: 1
211cb7aa33aSEmmanuel Vadot        reset-names:
212cb7aa33aSEmmanuel Vadot          maxItems: 1
213cb7aa33aSEmmanuel Vadot
2147d0873ebSEmmanuel Vadot  - if:
2157d0873ebSEmmanuel Vadot      properties:
2167d0873ebSEmmanuel Vadot        compatible:
2177d0873ebSEmmanuel Vadot          contains:
2187d0873ebSEmmanuel Vadot            enum:
2197d0873ebSEmmanuel Vadot              - qcom,sm8450-qmp-gen4x2-pcie-phy
2207d0873ebSEmmanuel Vadot              - qcom,sm8550-qmp-gen4x2-pcie-phy
2217d0873ebSEmmanuel Vadot              - qcom,sm8650-qmp-gen4x2-pcie-phy
2227d0873ebSEmmanuel Vadot    then:
2237d0873ebSEmmanuel Vadot      properties:
2247d0873ebSEmmanuel Vadot        "#clock-cells":
2257d0873ebSEmmanuel Vadot          const: 1
2267d0873ebSEmmanuel Vadot    else:
2277d0873ebSEmmanuel Vadot      properties:
2287d0873ebSEmmanuel Vadot        "#clock-cells":
2297d0873ebSEmmanuel Vadot          const: 0
2307d0873ebSEmmanuel Vadot
2318bab661aSEmmanuel Vadotexamples:
2328bab661aSEmmanuel Vadot  - |
2338bab661aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
2348bab661aSEmmanuel Vadot
2358bab661aSEmmanuel Vadot    pcie2b_phy: phy@1c18000 {
2368bab661aSEmmanuel Vadot      compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
2378bab661aSEmmanuel Vadot      reg = <0x01c18000 0x2000>;
2388bab661aSEmmanuel Vadot
2398bab661aSEmmanuel Vadot      clocks = <&gcc GCC_PCIE_2B_AUX_CLK>,
2408bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2B_CFG_AHB_CLK>,
2418bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2A2B_CLKREF_CLK>,
2428bab661aSEmmanuel Vadot               <&gcc GCC_PCIE2B_PHY_RCHNG_CLK>,
2438bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2B_PIPE_CLK>,
2448bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2B_PIPEDIV2_CLK>;
2458bab661aSEmmanuel Vadot      clock-names = "aux", "cfg_ahb", "ref", "rchng",
2468bab661aSEmmanuel Vadot                    "pipe", "pipediv2";
2478bab661aSEmmanuel Vadot
2488bab661aSEmmanuel Vadot      power-domains = <&gcc PCIE_2B_GDSC>;
2498bab661aSEmmanuel Vadot
2508bab661aSEmmanuel Vadot      resets = <&gcc GCC_PCIE_2B_PHY_BCR>;
2518bab661aSEmmanuel Vadot      reset-names = "phy";
2528bab661aSEmmanuel Vadot
2538bab661aSEmmanuel Vadot      vdda-phy-supply = <&vreg_l6d>;
2548bab661aSEmmanuel Vadot      vdda-pll-supply = <&vreg_l4d>;
2558bab661aSEmmanuel Vadot
2568bab661aSEmmanuel Vadot      #clock-cells = <0>;
2578bab661aSEmmanuel Vadot      clock-output-names = "pcie_2b_pipe_clk";
2588bab661aSEmmanuel Vadot
2598bab661aSEmmanuel Vadot      #phy-cells = <0>;
2608bab661aSEmmanuel Vadot    };
2618bab661aSEmmanuel Vadot
2628bab661aSEmmanuel Vadot    pcie2a_phy: phy@1c24000 {
2638bab661aSEmmanuel Vadot      compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
2648bab661aSEmmanuel Vadot      reg = <0x01c24000 0x2000>, <0x01c26000 0x2000>;
2658bab661aSEmmanuel Vadot
2668bab661aSEmmanuel Vadot      clocks = <&gcc GCC_PCIE_2A_AUX_CLK>,
2678bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2A_CFG_AHB_CLK>,
2688bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2A2B_CLKREF_CLK>,
2698bab661aSEmmanuel Vadot               <&gcc GCC_PCIE2A_PHY_RCHNG_CLK>,
2708bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2A_PIPE_CLK>,
2718bab661aSEmmanuel Vadot               <&gcc GCC_PCIE_2A_PIPEDIV2_CLK>;
2728bab661aSEmmanuel Vadot      clock-names = "aux", "cfg_ahb", "ref", "rchng",
2738bab661aSEmmanuel Vadot                    "pipe", "pipediv2";
2748bab661aSEmmanuel Vadot
2758bab661aSEmmanuel Vadot      power-domains = <&gcc PCIE_2A_GDSC>;
2768bab661aSEmmanuel Vadot
2778bab661aSEmmanuel Vadot      resets = <&gcc GCC_PCIE_2A_PHY_BCR>;
2788bab661aSEmmanuel Vadot      reset-names = "phy";
2798bab661aSEmmanuel Vadot
2808bab661aSEmmanuel Vadot      vdda-phy-supply = <&vreg_l6d>;
2818bab661aSEmmanuel Vadot      vdda-pll-supply = <&vreg_l4d>;
2828bab661aSEmmanuel Vadot
2838bab661aSEmmanuel Vadot      qcom,4ln-config-sel = <&tcsr 0xa044 0>;
2848bab661aSEmmanuel Vadot
2858bab661aSEmmanuel Vadot      #clock-cells = <0>;
2868bab661aSEmmanuel Vadot      clock-output-names = "pcie_2a_pipe_clk";
2878bab661aSEmmanuel Vadot
2888bab661aSEmmanuel Vadot      #phy-cells = <0>;
2898bab661aSEmmanuel Vadot    };
290