Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP)
Schema identifier ($id): "http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,sm8750-qmp-usb3-dp-phy"
Rule 2
Allowed values (
enum):"qcom,glymur-qmp-usb3-dp-phy","qcom,sar2130p-qmp-usb3-dp-phy","qcom,sc7180-qmp-usb3-dp-phy","qcom,sc7280-qmp-usb3-dp-phy","qcom,sc8180x-qmp-usb3-dp-phy","qcom,sc8280xp-qmp-usb43dp-phy","qcom,sdm845-qmp-usb3-dp-phy","qcom,sm6350-qmp-usb3-dp-phy","qcom,sm8150-qmp-usb3-dp-phy","qcom,sm8250-qmp-usb3-dp-phy","qcom,sm8350-qmp-usb3-dp-phy","qcom,sm8450-qmp-usb3-dp-phy","qcom,sm8550-qmp-usb3-dp-phy","qcom,sm8650-qmp-usb3-dp-phy","qcom,sm8750-qmp-usb3-dp-phy","qcom,x1e80100-qmp-usb3-dp-phy"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Exact value (
const):"aux"
Item 2
Exact value (
const):"ref"
Item 3
Exact value (
const):"com_aux"
Item 4
Exact value (
const):"usb3_pipe"
Item 5
Exact value (
const):"cfg_ahb"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"phy"
Item 2
Exact value (
const):"common"
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.
refgen-supply — not listed as required here #
true — No constraints added by this property rule.
#clock-cells — required here #
Exact value (const): 1
See include/dt-bindings/phy/phy-qcom-qmp.h
#phy-cells — required here #
Exact value (const): 1
See include/dt-bindings/phy/phy-qcom-qmp.h
mode-switch — not listed as required here #
true — No constraints added by this property rule.
orientation-switch — not listed as required here #
true — No constraints added by this property rule.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Output endpoint of the PHY
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
endpoint@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
Display Port Output lanes of the PHY when used with static mapping, The entry index is the DP lanes index, and the number is the PHY signal in the order RX0, TX0, TX1, RX1.
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):3
Rule 2
Array item rules (
items)Item 1
Exact value (
const):0
Rule 3
Array item rules (
items)Item 1
Exact value (
const):3Item 2
Exact value (
const):2
Rule 4
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1
Rule 5
Array item rules (
items)Item 1
Exact value (
const):3Item 2
Exact value (
const):2Item 3
Exact value (
const):1Item 4
Exact value (
const):0
Rule 6
Array item rules (
items)Item 1
Exact value (
const):0Item 2
Exact value (
const):1Item 3
Exact value (
const):2Item 4
Exact value (
const):3
Required in this object (required): "data-lanes"
endpoint@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/endpoint-base
USB Output lanes of the PHY when used with static mapping. The entry index is the USB3 lane in the order TX then RX, and the number is the PHY signal in the order RX0, TX0, TX1, RX1.
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
data-lanes — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):0
Rule 2
Array item rules (
items)Item 1
Exact value (
const):2Item 2
Exact value (
const):3
Required in this object (required): "data-lanes"
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Incoming endpoint from the USB controller
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Incoming endpoint from the DisplayPort controller
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "reset-names", "vdda-phy-supply", "vdda-pll-supply", "#clock-cells", "#phy-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/usb/usb-switch.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"qcom,sc7180-qmp-usb3-dp-phy","qcom,sdm845-qmp-usb3-dp-phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):5
clock-names— not listed as required hereMaximum number of items (
maxItems):5When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereMaximum number of items (
maxItems):4
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,glymur-qmp-usb3-dp-phy","qcom,sar2130p-qmp-usb3-dp-phy","qcom,sc8280xp-qmp-usb43dp-phy","qcom,sm6350-qmp-usb3-dp-phy","qcom,sm8550-qmp-usb3-dp-phy","qcom,sm8650-qmp-usb3-dp-phy","qcom,sm8750-qmp-usb3-dp-phy","qcom,x1e80100-qmp-usb3-dp-phy"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
refgen-supply— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
phy@88eb000 {
compatible = "qcom,sc8280xp-qmp-usb43dp-phy";
reg = <0x088eb000 0x4000>;
clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>,
<&gcc GCC_USB4_EUD_CLKREF_CLK>,
<&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>,
<&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
clock-names = "aux", "ref", "com_aux", "usb3_pipe";
power-domains = <&gcc USB30_PRIM_GDSC>;
resets = <&gcc GCC_USB3_PHY_PRIM_BCR>,
<&gcc GCC_USB4_DP_PHY_PRIM_BCR>;
reset-names = "phy", "common";
vdda-phy-supply = <&vreg_l9d>;
vdda-pll-supply = <&vreg_l4d>;
orientation-switch;
#clock-cells = <1>;
#phy-cells = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&typec_connector_ss>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&dwc3_ss_out>;
};
};
port@2 {
reg = <2>;
endpoint {
remote-endpoint = <&mdss_dp_out>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 109: Static lane mappings are mutually exclusive with typec-mux/orientation-mux
Line 115: DisplayPort 1 lane, normal orientation
Line 117: DisplayPort 1 lane, flipped orientation
Line 119: DisplayPort 2 lanes, normal orientation
Line 122: DisplayPort 2 lanes, flipped orientation
Line 125: DisplayPort 4 lanes, normal orientation
Line 130: DisplayPort 4 lanes, flipped orientation
Line 146: Static lane mappings are mutually exclusive with typec-mux/orientation-mux
Line 151: USB3, normal orientation
Line 154: USB3, flipped orientation