Qualcomm QUSB2 phy controller

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

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

Maintainers (maintainers): "Wesley Cheng <quic_wcheng@quicinc.com>"

QUSB2 controller supports LS/FS/HS usb connectivity on Qualcomm chipsets.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "qcom,ipq5424-qusb2-phy", "qcom,ipq6018-qusb2-phy", "qcom,ipq8074-qusb2-phy", "qcom,ipq9574-qusb2-phy", "qcom,msm8953-qusb2-phy", "qcom,msm8996-qusb2-phy", "qcom,msm8998-qusb2-phy", "qcom,qcm2290-qusb2-phy", "qcom,qcs615-qusb2-phy", "qcom,sdm660-qusb2-phy", "qcom,sm4250-qusb2-phy", "qcom,sm6115-qusb2-phy"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,sc7180-qusb2-phy", "qcom,sdm670-qusb2-phy", "qcom,sdm845-qusb2-phy", "qcom,sm6350-qusb2-phy"

Item 2

Exact value (const): "qcom,qusb2-v2-phy"

reg — required here #

Maximum number of items (maxItems): 1

#phy-cells — required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

phy config clock

Item 2

19.2 MHz ref clk

Item 3

phy interface clock (Optional)

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "cfg_ahb"

Item 2

Exact value (const): "ref"

Item 3

Exact value (const): "iface"

vdd-supply — required here #

Phandle to 0.9V regulator supply to PHY digital circuit.

vdda-pll-supply — required here #

Phandle to 1.8V regulator supply to PHY refclk pll block.

vdda-phy-dpdm-supply — required here #

Phandle to 3.1V regulator supply to Dp/Dm port signals.

resets — required here #

Maximum number of items (maxItems): 1

Phandle to reset to phy block.

nvmem-cells — not listed as required here #

Maximum number of items (maxItems): 1

Phandle to nvmem cell that contains 'HS Tx trim' tuning parameter value for qusb2 phy.

qcom,tcsr-syscon — not listed as required here #

Phandle to TCSR syscon register region.

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

qcom,imp-res-offset-value — not listed as required here #

It is a 6 bit value that specifies offset to be added to PHY refgen RESCODE via IMP_CTRL1 register. It is a PHY tuning parameter that may vary for different boards of same SOC.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 63

Default value (default): 0

qcom,bias-ctrl-value — not listed as required here #

It is a 6 bit value that specifies bias-ctrl-value. It is a PHY tuning parameter that may vary for different boards of same SOC.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 63

Default value (default): 32

qcom,charge-ctrl-value — not listed as required here #

It is a 2 bit value that specifies charge-ctrl-value. It is a PHY tuning parameter that may vary for different boards of same SOC.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

qcom,hstx-trim-value — not listed as required here #

It is a 4 bit value that specifies tuning for HSTX output current. Possible range is - 15mA to 24mA (stepsize of 600 uA). See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 3

qcom,preemphasis-level — not listed as required here #

It is a 2 bit value that specifies pre-emphasis level. Possible range is 0 to 15% (stepsize of 5%). See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 2

qcom,preemphasis-width — not listed as required here #

It is a 1 bit value that specifies how long the HSTX pre-emphasis (specified using qcom,preemphasis-level) must be in effect. Duration could be half-bit of full-bit. See dt-bindings/phy/phy-qcom-qusb2.h for applicable values.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 1

Default value (default): 0

qcom,hsdisc-trim-value — not listed as required here #

It is a 2 bit value tuning parameter that control disconnect threshold and may vary for different boards of same SOC.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 3

Default value (default): 0

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

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,qusb2-v2-phy"

When the condition matches (then) #

Properties and child nodes (properties)

qcom,imp-res-offset-value — not listed as required here

false — Not permitted by this property rule.

qcom,bias-ctrl-value — not listed as required here

false — Not permitted by this property rule.

qcom,charge-ctrl-value — not listed as required here

false — Not permitted by this property rule.

qcom,hstx-trim-value — not listed as required here

false — Not permitted by this property rule.

qcom,preemphasis-level — not listed as required here

false — Not permitted by this property rule.

qcom,preemphasis-width — not listed as required here

false — Not permitted by this property rule.

qcom,hsdisc-trim-value — 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-msm8996.h>
hsusb_phy: phy@7411000 {
    compatible = "qcom,msm8996-qusb2-phy";
    reg = <0x7411000 0x180>;
    #phy-cells = <0>;

    clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
             <&gcc GCC_RX1_USB2_CLKREF_CLK>;
    clock-names = "cfg_ahb", "ref";

    vdd-supply = <&pm8994_l28>;
    vdda-pll-supply = <&pm8994_l12>;
    vdda-phy-dpdm-supply = <&pm8994_l24>;

    resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
    nvmem-cells = <&qusb2p_hstx_trim>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page