Qualcomm QMP PHY controller (PCIe, SC8280XP)

Schema identifier ($id): "http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-pcie-phy.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"

The QMP PHY controller supports physical layer functionality for a number of controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,glymur-qmp-gen4x2-pcie-phy", "qcom,glymur-qmp-gen5x4-pcie-phy", "qcom,kaanapali-qmp-gen3x2-pcie-phy", "qcom,qcs615-qmp-gen3x1-pcie-phy", "qcom,qcs8300-qmp-gen4x2-pcie-phy", "qcom,sa8775p-qmp-gen4x2-pcie-phy", "qcom,sa8775p-qmp-gen4x4-pcie-phy", "qcom,sar2130p-qmp-gen3x2-pcie-phy", "qcom,sc8180x-qmp-pcie-phy", "qcom,sc8280xp-qmp-gen3x1-pcie-phy", "qcom,sc8280xp-qmp-gen3x2-pcie-phy", "qcom,sc8280xp-qmp-gen3x4-pcie-phy", "qcom,sdm845-qhp-pcie-phy", "qcom,sdm845-qmp-pcie-phy", "qcom,sdx55-qmp-pcie-phy", "qcom,sdx65-qmp-gen4x2-pcie-phy", "qcom,sm8150-qmp-gen3x1-pcie-phy", "qcom,sm8150-qmp-gen3x2-pcie-phy", "qcom,sm8250-qmp-gen3x1-pcie-phy", "qcom,sm8250-qmp-gen3x2-pcie-phy", "qcom,sm8250-qmp-modem-pcie-phy", "qcom,sm8350-qmp-gen3x1-pcie-phy", "qcom,sm8350-qmp-gen3x2-pcie-phy", "qcom,sm8450-qmp-gen3x1-pcie-phy", "qcom,sm8450-qmp-gen4x2-pcie-phy", "qcom,sm8550-qmp-gen3x2-pcie-phy", "qcom,sm8550-qmp-gen4x2-pcie-phy", "qcom,sm8650-qmp-gen3x2-pcie-phy", "qcom,sm8650-qmp-gen4x2-pcie-phy", "qcom,sm8750-qmp-gen3x2-pcie-phy", "qcom,x1e80100-qmp-gen3x2-pcie-phy", "qcom,x1e80100-qmp-gen4x2-pcie-phy", "qcom,x1e80100-qmp-gen4x4-pcie-phy", "qcom,x1e80100-qmp-gen4x8-pcie-phy", "qcom,x1p42100-qmp-gen4x4-pcie-phy"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clocks — required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 6

clock-names — required here #

Minimum number of items (minItems): 5

Array item rules (items) #

Item 1

Exact value (const): "aux"

Item 2

Exact value (const): "cfg_ahb"

Item 3

Exact value (const): "ref"

Item 4

Allowed values (enum): "rchng", "refgen"

Item 5

Exact value (const): "pipe"

Item 6

Exact value (const): "pipediv2"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "phy"

Item 2

Exact value (const): "phy_nocsr"

vdda-phy-supply — required here #

true — No constraints added by this property rule.

vdda-pll-supply — required here #

true — No constraints added by this property rule.

vdda-qref-supply — not listed as required here #

true — No constraints added by this property rule.

qcom,4ln-config-sel — not listed as required here #

PCIe 4-lane configuration

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle of TCSR syscon

Item 2

offset of PCIe 4-lane configuration register

Item 3

offset of configuration bit for this PHY

#clock-cells — required here #

true — No constraints added by this property rule.

clock-output-names — required here #

Maximum number of items (maxItems): 1

#phy-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "vdda-phy-supply", "vdda-pll-supply", "#clock-cells", "clock-output-names", "#phy-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc8280xp-qmp-gen3x4-pcie-phy", "qcom,x1e80100-qmp-gen4x4-pcie-phy", "qcom,x1p42100-qmp-gen4x4-pcie-phy"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

port a

Item 2

port b

Required in this object (required): "qcom,4ln-config-sel"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,kaanapali-qmp-gen3x2-pcie-phy", "qcom,qcs615-qmp-gen3x1-pcie-phy", "qcom,sar2130p-qmp-gen3x2-pcie-phy", "qcom,sc8180x-qmp-pcie-phy", "qcom,sdm845-qhp-pcie-phy", "qcom,sdm845-qmp-pcie-phy", "qcom,sdx55-qmp-pcie-phy", "qcom,sm8150-qmp-gen3x1-pcie-phy", "qcom,sm8150-qmp-gen3x2-pcie-phy", "qcom,sm8250-qmp-gen3x1-pcie-phy", "qcom,sm8250-qmp-gen3x2-pcie-phy", "qcom,sm8250-qmp-modem-pcie-phy", "qcom,sm8350-qmp-gen3x1-pcie-phy", "qcom,sm8350-qmp-gen3x2-pcie-phy", "qcom,sm8450-qmp-gen3x1-pcie-phy", "qcom,sm8450-qmp-gen3x2-pcie-phy", "qcom,sm8550-qmp-gen3x2-pcie-phy", "qcom,sm8550-qmp-gen4x2-pcie-phy", "qcom,sm8650-qmp-gen3x2-pcie-phy", "qcom,sm8650-qmp-gen4x2-pcie-phy", "qcom,sm8750-qmp-gen3x2-pcie-phy"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 5

clock-names — not listed as required here

Maximum number of items (maxItems): 5

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,glymur-qmp-gen4x2-pcie-phy", "qcom,glymur-qmp-gen5x4-pcie-phy", "qcom,qcs8300-qmp-gen4x2-pcie-phy", "qcom,sa8775p-qmp-gen4x2-pcie-phy", "qcom,sa8775p-qmp-gen4x4-pcie-phy", "qcom,sc8280xp-qmp-gen3x1-pcie-phy", "qcom,sc8280xp-qmp-gen3x2-pcie-phy", "qcom,sc8280xp-qmp-gen3x4-pcie-phy", "qcom,x1e80100-qmp-gen3x2-pcie-phy", "qcom,x1e80100-qmp-gen4x2-pcie-phy", "qcom,x1e80100-qmp-gen4x4-pcie-phy", "qcom,x1e80100-qmp-gen4x8-pcie-phy", "qcom,x1p42100-qmp-gen4x4-pcie-phy"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 6

clock-names — not listed as required here

Minimum number of items (minItems): 6

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,glymur-qmp-gen4x2-pcie-phy", "qcom,glymur-qmp-gen5x4-pcie-phy", "qcom,kaanapali-qmp-gen3x2-pcie-phy", "qcom,sm8550-qmp-gen4x2-pcie-phy", "qcom,sm8650-qmp-gen4x2-pcie-phy", "qcom,x1e80100-qmp-gen3x2-pcie-phy", "qcom,x1e80100-qmp-gen4x2-pcie-phy", "qcom,x1e80100-qmp-gen4x4-pcie-phy", "qcom,x1e80100-qmp-gen4x8-pcie-phy", "qcom,x1p42100-qmp-gen4x4-pcie-phy"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 2

reset-names — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Maximum number of items (maxItems): 1

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sm8450-qmp-gen4x2-pcie-phy", "qcom,sm8550-qmp-gen4x2-pcie-phy", "qcom,sm8650-qmp-gen4x2-pcie-phy"

When the condition matches (then) #

Properties and child nodes (properties)

#clock-cells — not listed as required here

Exact value (const): 1

When the condition does not match (else) #

Properties and child nodes (properties)

#clock-cells — not listed as required here

Exact value (const): 0

Examples (examples) #

#include <dt-bindings/clock/qcom,gcc-sc8280xp.h>

pcie2b_phy: phy@1c18000 {
  compatible = "qcom,sc8280xp-qmp-gen3x2-pcie-phy";
  reg = <0x01c18000 0x2000>;

  clocks = <&gcc GCC_PCIE_2B_AUX_CLK>,
           <&gcc GCC_PCIE_2B_CFG_AHB_CLK>,
           <&gcc GCC_PCIE_2A2B_CLKREF_CLK>,
           <&gcc GCC_PCIE2B_PHY_RCHNG_CLK>,
           <&gcc GCC_PCIE_2B_PIPE_CLK>,
           <&gcc GCC_PCIE_2B_PIPEDIV2_CLK>;
  clock-names = "aux", "cfg_ahb", "ref", "rchng",
                "pipe", "pipediv2";

  power-domains = <&gcc PCIE_2B_GDSC>;

  resets = <&gcc GCC_PCIE_2B_PHY_BCR>;
  reset-names = "phy";

  vdda-phy-supply = <&vreg_l6d>;
  vdda-pll-supply = <&vreg_l4d>;

  #clock-cells = <0>;
  clock-output-names = "pcie_2b_pipe_clk";

  #phy-cells = <0>;
};

pcie2a_phy: phy@1c24000 {
  compatible = "qcom,sc8280xp-qmp-gen3x4-pcie-phy";
  reg = <0x01c24000 0x2000>, <0x01c26000 0x2000>;

  clocks = <&gcc GCC_PCIE_2A_AUX_CLK>,
           <&gcc GCC_PCIE_2A_CFG_AHB_CLK>,
           <&gcc GCC_PCIE_2A2B_CLKREF_CLK>,
           <&gcc GCC_PCIE2A_PHY_RCHNG_CLK>,
           <&gcc GCC_PCIE_2A_PIPE_CLK>,
           <&gcc GCC_PCIE_2A_PIPEDIV2_CLK>;
  clock-names = "aux", "cfg_ahb", "ref", "rchng",
                "pipe", "pipediv2";

  power-domains = <&gcc PCIE_2A_GDSC>;

  resets = <&gcc GCC_PCIE_2A_PHY_BCR>;
  reset-names = "phy";

  vdda-phy-supply = <&vreg_l6d>;
  vdda-pll-supply = <&vreg_l4d>;

  qcom,4ln-config-sel = <&tcsr 0xa044 0>;

  #clock-cells = <0>;
  clock-output-names = "pcie_2a_pipe_clk";

  #phy-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page