Qualcomm QMP PHY controller (USB, MSM8998)
Schema identifier ($id): "http://devicetree.org/schemas/phy/qcom,msm8998-qmp-usb3-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 USB-C on several Qualcomm chipsets.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,msm8998-qmp-usb3-phy", "qcom,qcm2290-qmp-usb3-phy", "qcom,qcs615-qmp-usb3-phy", "qcom,sdm660-qmp-usb3-phy", "qcom,sm6115-qmp-usb3-phy"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Maximum number of items (maxItems): 4
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):"phy_phy"
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.
#clock-cells — required here #
Exact value (const): 0
clock-output-names — required here #
Maximum number of items (maxItems): 1
#phy-cells — required here #
Exact value (const): 0
orientation-switch — not listed as required here #
Flag the PHY as possible handler of USB Type-C orientation switching
Value type (type): "boolean"
qcom,tcsr-reg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to TCSR hardware block
Item 2
offset of the VLS CLAMP register
Clamp register present in the TCSR
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#/properties/port
Output endpoint of the PHY
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Incoming endpoint from the USB controller
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", "qcom,tcsr-reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,msm8998-qmp-usb3-phy","qcom,qcs615-qmp-usb3-phy","qcom,sdm660-qmp-usb3-phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"aux"Item 2
Exact value (
const):"ref"Item 3
Exact value (
const):"cfg_ahb"Item 4
Exact value (
const):"pipe"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,qcm2290-qmp-usb3-phy","qcom,sm6115-qmp-usb3-phy"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"cfg_ahb"Item 2
Exact value (
const):"ref"Item 3
Exact value (
const):"com_aux"Item 4
Exact value (
const):"pipe"
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-msm8998.h>
#include <dt-bindings/clock/qcom,rpmh.h>
phy@c010000 {
compatible = "qcom,msm8998-qmp-usb3-phy";
reg = <0x0c010000 0x1000>;
clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
<&gcc GCC_USB3_CLKREF_CLK>,
<&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
<&gcc GCC_USB3_PHY_PIPE_CLK>;
clock-names = "aux",
"ref",
"cfg_ahb",
"pipe";
clock-output-names = "usb3_phy_pipe_clk_src";
#clock-cells = <0>;
#phy-cells = <0>;
resets = <&gcc GCC_USB3_PHY_BCR>,
<&gcc GCC_USB3PHY_PHY_BCR>;
reset-names = "phy",
"phy_phy";
vdda-phy-supply = <&vreg_l1a_0p875>;
vdda-pll-supply = <&vreg_l2a_1p2>;
orientation-switch;
qcom,tcsr-reg = <&tcsr_regs_1 0x6b244>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
remote-endpoint = <&pmic_typec_mux_in>;
};
};
port@1 {
reg = <1>;
endpoint {
remote-endpoint = <&usb_dwc3_ss>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)