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 39*8d13bc63SEmmanuel Vadot - qcom,sm8650-qmp-gen3x2-pcie-phy 40*8d13bc63SEmmanuel Vadot - qcom,sm8650-qmp-gen4x2-pcie-phy 418bab661aSEmmanuel Vadot 428bab661aSEmmanuel Vadot reg: 438bab661aSEmmanuel Vadot minItems: 1 448bab661aSEmmanuel Vadot maxItems: 2 458bab661aSEmmanuel Vadot 468bab661aSEmmanuel Vadot clocks: 47cb7aa33aSEmmanuel Vadot minItems: 5 48aa1a8ff2SEmmanuel Vadot maxItems: 7 498bab661aSEmmanuel Vadot 508bab661aSEmmanuel Vadot clock-names: 51cb7aa33aSEmmanuel Vadot minItems: 5 528bab661aSEmmanuel Vadot items: 538bab661aSEmmanuel Vadot - const: aux 548bab661aSEmmanuel Vadot - const: cfg_ahb 558bab661aSEmmanuel Vadot - const: ref 56aa1a8ff2SEmmanuel Vadot - enum: [rchng, refgen] 578bab661aSEmmanuel Vadot - const: pipe 588bab661aSEmmanuel Vadot - const: pipediv2 59aa1a8ff2SEmmanuel Vadot - const: phy_aux 608bab661aSEmmanuel Vadot 618bab661aSEmmanuel Vadot power-domains: 628bab661aSEmmanuel Vadot maxItems: 1 638bab661aSEmmanuel Vadot 648bab661aSEmmanuel Vadot resets: 65cb7aa33aSEmmanuel Vadot minItems: 1 66cb7aa33aSEmmanuel Vadot maxItems: 2 678bab661aSEmmanuel Vadot 688bab661aSEmmanuel Vadot reset-names: 69cb7aa33aSEmmanuel Vadot minItems: 1 708bab661aSEmmanuel Vadot items: 718bab661aSEmmanuel Vadot - const: phy 72cb7aa33aSEmmanuel Vadot - const: phy_nocsr 738bab661aSEmmanuel Vadot 748bab661aSEmmanuel Vadot vdda-phy-supply: true 758bab661aSEmmanuel Vadot 768bab661aSEmmanuel Vadot vdda-pll-supply: true 778bab661aSEmmanuel Vadot 78cb7aa33aSEmmanuel Vadot vdda-qref-supply: true 79cb7aa33aSEmmanuel Vadot 808bab661aSEmmanuel Vadot qcom,4ln-config-sel: 818bab661aSEmmanuel Vadot description: PCIe 4-lane configuration 828bab661aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 838bab661aSEmmanuel Vadot items: 848bab661aSEmmanuel Vadot - items: 858bab661aSEmmanuel Vadot - description: phandle of TCSR syscon 868bab661aSEmmanuel Vadot - description: offset of PCIe 4-lane configuration register 878bab661aSEmmanuel Vadot - description: offset of configuration bit for this PHY 888bab661aSEmmanuel Vadot 898bab661aSEmmanuel Vadot "#clock-cells": 908bab661aSEmmanuel Vadot const: 0 918bab661aSEmmanuel Vadot 928bab661aSEmmanuel Vadot clock-output-names: 938bab661aSEmmanuel Vadot maxItems: 1 948bab661aSEmmanuel Vadot 958bab661aSEmmanuel Vadot "#phy-cells": 968bab661aSEmmanuel Vadot const: 0 978bab661aSEmmanuel Vadot 988bab661aSEmmanuel Vadotrequired: 998bab661aSEmmanuel Vadot - compatible 1008bab661aSEmmanuel Vadot - reg 1018bab661aSEmmanuel Vadot - clocks 1028bab661aSEmmanuel Vadot - clock-names 1038bab661aSEmmanuel Vadot - resets 1048bab661aSEmmanuel Vadot - reset-names 1058bab661aSEmmanuel Vadot - vdda-phy-supply 1068bab661aSEmmanuel Vadot - vdda-pll-supply 1078bab661aSEmmanuel Vadot - "#clock-cells" 1088bab661aSEmmanuel Vadot - clock-output-names 1098bab661aSEmmanuel Vadot - "#phy-cells" 1108bab661aSEmmanuel Vadot 1118bab661aSEmmanuel VadotadditionalProperties: false 1128bab661aSEmmanuel Vadot 1138bab661aSEmmanuel VadotallOf: 1148bab661aSEmmanuel Vadot - if: 1158bab661aSEmmanuel Vadot properties: 1168bab661aSEmmanuel Vadot compatible: 1178bab661aSEmmanuel Vadot contains: 1188bab661aSEmmanuel Vadot enum: 1198bab661aSEmmanuel Vadot - qcom,sc8280xp-qmp-gen3x4-pcie-phy 1208bab661aSEmmanuel Vadot then: 1218bab661aSEmmanuel Vadot properties: 1228bab661aSEmmanuel Vadot reg: 1238bab661aSEmmanuel Vadot items: 1248bab661aSEmmanuel Vadot - description: port a 1258bab661aSEmmanuel Vadot - description: port b 1268bab661aSEmmanuel Vadot required: 1278bab661aSEmmanuel Vadot - qcom,4ln-config-sel 1288bab661aSEmmanuel Vadot else: 1298bab661aSEmmanuel Vadot properties: 1308bab661aSEmmanuel Vadot reg: 1318bab661aSEmmanuel Vadot maxItems: 1 1328bab661aSEmmanuel Vadot 133cb7aa33aSEmmanuel Vadot - if: 134cb7aa33aSEmmanuel Vadot properties: 135cb7aa33aSEmmanuel Vadot compatible: 136cb7aa33aSEmmanuel Vadot contains: 137cb7aa33aSEmmanuel Vadot enum: 138aa1a8ff2SEmmanuel Vadot - qcom,sc8180x-qmp-pcie-phy 139aa1a8ff2SEmmanuel Vadot - qcom,sdm845-qhp-pcie-phy 140aa1a8ff2SEmmanuel Vadot - qcom,sdm845-qmp-pcie-phy 141aa1a8ff2SEmmanuel Vadot - qcom,sdx55-qmp-pcie-phy 142aa1a8ff2SEmmanuel Vadot - qcom,sm8150-qmp-gen3x1-pcie-phy 143aa1a8ff2SEmmanuel Vadot - qcom,sm8150-qmp-gen3x2-pcie-phy 144aa1a8ff2SEmmanuel Vadot - qcom,sm8250-qmp-gen3x1-pcie-phy 145aa1a8ff2SEmmanuel Vadot - qcom,sm8250-qmp-gen3x2-pcie-phy 146aa1a8ff2SEmmanuel Vadot - qcom,sm8250-qmp-modem-pcie-phy 147cb7aa33aSEmmanuel Vadot - qcom,sm8350-qmp-gen3x1-pcie-phy 148aa1a8ff2SEmmanuel Vadot - qcom,sm8450-qmp-gen3x1-pcie-phy 149aa1a8ff2SEmmanuel Vadot - qcom,sm8450-qmp-gen3x2-pcie-phy 150cb7aa33aSEmmanuel Vadot - qcom,sm8550-qmp-gen3x2-pcie-phy 151cb7aa33aSEmmanuel Vadot - qcom,sm8550-qmp-gen4x2-pcie-phy 152*8d13bc63SEmmanuel Vadot - qcom,sm8650-qmp-gen3x2-pcie-phy 153*8d13bc63SEmmanuel Vadot - qcom,sm8650-qmp-gen4x2-pcie-phy 154cb7aa33aSEmmanuel Vadot then: 155cb7aa33aSEmmanuel Vadot properties: 156cb7aa33aSEmmanuel Vadot clocks: 157cb7aa33aSEmmanuel Vadot maxItems: 5 158cb7aa33aSEmmanuel Vadot clock-names: 159cb7aa33aSEmmanuel Vadot maxItems: 5 160aa1a8ff2SEmmanuel Vadot 161aa1a8ff2SEmmanuel Vadot - if: 162aa1a8ff2SEmmanuel Vadot properties: 163aa1a8ff2SEmmanuel Vadot compatible: 164aa1a8ff2SEmmanuel Vadot contains: 165aa1a8ff2SEmmanuel Vadot enum: 166aa1a8ff2SEmmanuel Vadot - qcom,sc8280xp-qmp-gen3x1-pcie-phy 167aa1a8ff2SEmmanuel Vadot - qcom,sc8280xp-qmp-gen3x2-pcie-phy 168aa1a8ff2SEmmanuel Vadot - qcom,sc8280xp-qmp-gen3x4-pcie-phy 169aa1a8ff2SEmmanuel Vadot then: 170cb7aa33aSEmmanuel Vadot properties: 171cb7aa33aSEmmanuel Vadot clocks: 172cb7aa33aSEmmanuel Vadot minItems: 6 173cb7aa33aSEmmanuel Vadot clock-names: 174cb7aa33aSEmmanuel Vadot minItems: 6 175cb7aa33aSEmmanuel Vadot 176cb7aa33aSEmmanuel Vadot - if: 177cb7aa33aSEmmanuel Vadot properties: 178cb7aa33aSEmmanuel Vadot compatible: 179cb7aa33aSEmmanuel Vadot contains: 180cb7aa33aSEmmanuel Vadot enum: 181aa1a8ff2SEmmanuel Vadot - qcom,sa8775p-qmp-gen4x2-pcie-phy 182aa1a8ff2SEmmanuel Vadot - qcom,sa8775p-qmp-gen4x4-pcie-phy 183aa1a8ff2SEmmanuel Vadot then: 184aa1a8ff2SEmmanuel Vadot properties: 185aa1a8ff2SEmmanuel Vadot clocks: 186aa1a8ff2SEmmanuel Vadot minItems: 7 187aa1a8ff2SEmmanuel Vadot clock-names: 188aa1a8ff2SEmmanuel Vadot minItems: 7 189aa1a8ff2SEmmanuel Vadot 190aa1a8ff2SEmmanuel Vadot - if: 191aa1a8ff2SEmmanuel Vadot properties: 192aa1a8ff2SEmmanuel Vadot compatible: 193aa1a8ff2SEmmanuel Vadot contains: 194aa1a8ff2SEmmanuel Vadot enum: 195cb7aa33aSEmmanuel Vadot - qcom,sm8550-qmp-gen4x2-pcie-phy 196*8d13bc63SEmmanuel Vadot - qcom,sm8650-qmp-gen4x2-pcie-phy 197cb7aa33aSEmmanuel Vadot then: 198cb7aa33aSEmmanuel Vadot properties: 199cb7aa33aSEmmanuel Vadot resets: 200cb7aa33aSEmmanuel Vadot minItems: 2 201cb7aa33aSEmmanuel Vadot reset-names: 202cb7aa33aSEmmanuel Vadot minItems: 2 203cb7aa33aSEmmanuel Vadot else: 204cb7aa33aSEmmanuel Vadot properties: 205cb7aa33aSEmmanuel Vadot resets: 206cb7aa33aSEmmanuel Vadot maxItems: 1 207cb7aa33aSEmmanuel Vadot reset-names: 208cb7aa33aSEmmanuel Vadot maxItems: 1 209cb7aa33aSEmmanuel Vadot 2108bab661aSEmmanuel Vadotexamples: 2118bab661aSEmmanuel Vadot - | 2128bab661aSEmmanuel Vadot #include <dt-bindings/clock/qcom,gcc-sc8280xp.h> 2138bab661aSEmmanuel Vadot 2148bab661aSEmmanuel Vadot pcie2b_phy: phy@1c18000 { 2158bab661aSEmmanuel Vadot compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy"; 2168bab661aSEmmanuel Vadot reg = <0x01c18000 0x2000>; 2178bab661aSEmmanuel Vadot 2188bab661aSEmmanuel Vadot clocks = <&gcc GCC_PCIE_2B_AUX_CLK>, 2198bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2B_CFG_AHB_CLK>, 2208bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2A2B_CLKREF_CLK>, 2218bab661aSEmmanuel Vadot <&gcc GCC_PCIE2B_PHY_RCHNG_CLK>, 2228bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2B_PIPE_CLK>, 2238bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2B_PIPEDIV2_CLK>; 2248bab661aSEmmanuel Vadot clock-names = "aux", "cfg_ahb", "ref", "rchng", 2258bab661aSEmmanuel Vadot "pipe", "pipediv2"; 2268bab661aSEmmanuel Vadot 2278bab661aSEmmanuel Vadot power-domains = <&gcc PCIE_2B_GDSC>; 2288bab661aSEmmanuel Vadot 2298bab661aSEmmanuel Vadot resets = <&gcc GCC_PCIE_2B_PHY_BCR>; 2308bab661aSEmmanuel Vadot reset-names = "phy"; 2318bab661aSEmmanuel Vadot 2328bab661aSEmmanuel Vadot vdda-phy-supply = <&vreg_l6d>; 2338bab661aSEmmanuel Vadot vdda-pll-supply = <&vreg_l4d>; 2348bab661aSEmmanuel Vadot 2358bab661aSEmmanuel Vadot #clock-cells = <0>; 2368bab661aSEmmanuel Vadot clock-output-names = "pcie_2b_pipe_clk"; 2378bab661aSEmmanuel Vadot 2388bab661aSEmmanuel Vadot #phy-cells = <0>; 2398bab661aSEmmanuel Vadot }; 2408bab661aSEmmanuel Vadot 2418bab661aSEmmanuel Vadot pcie2a_phy: phy@1c24000 { 2428bab661aSEmmanuel Vadot compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy"; 2438bab661aSEmmanuel Vadot reg = <0x01c24000 0x2000>, <0x01c26000 0x2000>; 2448bab661aSEmmanuel Vadot 2458bab661aSEmmanuel Vadot clocks = <&gcc GCC_PCIE_2A_AUX_CLK>, 2468bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2A_CFG_AHB_CLK>, 2478bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2A2B_CLKREF_CLK>, 2488bab661aSEmmanuel Vadot <&gcc GCC_PCIE2A_PHY_RCHNG_CLK>, 2498bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2A_PIPE_CLK>, 2508bab661aSEmmanuel Vadot <&gcc GCC_PCIE_2A_PIPEDIV2_CLK>; 2518bab661aSEmmanuel Vadot clock-names = "aux", "cfg_ahb", "ref", "rchng", 2528bab661aSEmmanuel Vadot "pipe", "pipediv2"; 2538bab661aSEmmanuel Vadot 2548bab661aSEmmanuel Vadot power-domains = <&gcc PCIE_2A_GDSC>; 2558bab661aSEmmanuel Vadot 2568bab661aSEmmanuel Vadot resets = <&gcc GCC_PCIE_2A_PHY_BCR>; 2578bab661aSEmmanuel Vadot reset-names = "phy"; 2588bab661aSEmmanuel Vadot 2598bab661aSEmmanuel Vadot vdda-phy-supply = <&vreg_l6d>; 2608bab661aSEmmanuel Vadot vdda-pll-supply = <&vreg_l4d>; 2618bab661aSEmmanuel Vadot 2628bab661aSEmmanuel Vadot qcom,4ln-config-sel = <&tcsr 0xa044 0>; 2638bab661aSEmmanuel Vadot 2648bab661aSEmmanuel Vadot #clock-cells = <0>; 2658bab661aSEmmanuel Vadot clock-output-names = "pcie_2a_pipe_clk"; 2668bab661aSEmmanuel Vadot 2678bab661aSEmmanuel Vadot #phy-cells = <0>; 2688bab661aSEmmanuel Vadot }; 269