162306a36Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 262306a36Sopenharmony_ci%YAML 1.2 362306a36Sopenharmony_ci--- 462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/phy/qcom,usb-snps-femto-v2.yaml# 562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 662306a36Sopenharmony_ci 762306a36Sopenharmony_cititle: Qualcomm Synopsys Femto High-Speed USB PHY V2 862306a36Sopenharmony_ci 962306a36Sopenharmony_cimaintainers: 1062306a36Sopenharmony_ci - Wesley Cheng <quic_wcheng@quicinc.com> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cidescription: | 1362306a36Sopenharmony_ci Qualcomm High-Speed USB PHY 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciproperties: 1662306a36Sopenharmony_ci compatible: 1762306a36Sopenharmony_ci oneOf: 1862306a36Sopenharmony_ci - enum: 1962306a36Sopenharmony_ci - qcom,sc8180x-usb-hs-phy 2062306a36Sopenharmony_ci - qcom,usb-snps-femto-v2-phy 2162306a36Sopenharmony_ci - items: 2262306a36Sopenharmony_ci - enum: 2362306a36Sopenharmony_ci - qcom,sa8775p-usb-hs-phy 2462306a36Sopenharmony_ci - qcom,sc8280xp-usb-hs-phy 2562306a36Sopenharmony_ci - const: qcom,usb-snps-hs-5nm-phy 2662306a36Sopenharmony_ci - items: 2762306a36Sopenharmony_ci - enum: 2862306a36Sopenharmony_ci - qcom,sc7280-usb-hs-phy 2962306a36Sopenharmony_ci - qcom,sdx55-usb-hs-phy 3062306a36Sopenharmony_ci - qcom,sdx65-usb-hs-phy 3162306a36Sopenharmony_ci - qcom,sm6375-usb-hs-phy 3262306a36Sopenharmony_ci - qcom,sm8150-usb-hs-phy 3362306a36Sopenharmony_ci - qcom,sm8250-usb-hs-phy 3462306a36Sopenharmony_ci - qcom,sm8350-usb-hs-phy 3562306a36Sopenharmony_ci - qcom,sm8450-usb-hs-phy 3662306a36Sopenharmony_ci - const: qcom,usb-snps-hs-7nm-phy 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci reg: 3962306a36Sopenharmony_ci maxItems: 1 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci "#phy-cells": 4262306a36Sopenharmony_ci const: 0 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci clocks: 4562306a36Sopenharmony_ci items: 4662306a36Sopenharmony_ci - description: rpmhcc ref clock 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci clock-names: 4962306a36Sopenharmony_ci items: 5062306a36Sopenharmony_ci - const: ref 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci resets: 5362306a36Sopenharmony_ci items: 5462306a36Sopenharmony_ci - description: PHY core reset 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci vdda-pll-supply: 5762306a36Sopenharmony_ci description: phandle to the regulator VDD supply node. 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci vdda18-supply: 6062306a36Sopenharmony_ci description: phandle to the regulator 1.8V supply node. 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ci vdda33-supply: 6362306a36Sopenharmony_ci description: phandle to the regulator 3.3V supply node. 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci qcom,hs-disconnect-bp: 6662306a36Sopenharmony_ci description: 6762306a36Sopenharmony_ci This adjusts the voltage level for the threshold used to 6862306a36Sopenharmony_ci detect a disconnect event at the host. 6962306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 7062306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 7162306a36Sopenharmony_ci minimum: -272 7262306a36Sopenharmony_ci maximum: 2156 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci qcom,squelch-detector-bp: 7562306a36Sopenharmony_ci description: 7662306a36Sopenharmony_ci This adjusts the voltage level for the threshold used to 7762306a36Sopenharmony_ci detect valid high-speed data. 7862306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 7962306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 8062306a36Sopenharmony_ci minimum: -2090 8162306a36Sopenharmony_ci maximum: 1590 8262306a36Sopenharmony_ci 8362306a36Sopenharmony_ci qcom,hs-amplitude-bp: 8462306a36Sopenharmony_ci description: 8562306a36Sopenharmony_ci This adjusts the high-speed DC level voltage. 8662306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 8762306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 8862306a36Sopenharmony_ci minimum: -660 8962306a36Sopenharmony_ci maximum: 2670 9062306a36Sopenharmony_ci 9162306a36Sopenharmony_ci qcom,pre-emphasis-duration-bp: 9262306a36Sopenharmony_ci description: 9362306a36Sopenharmony_ci This signal controls the duration for which the 9462306a36Sopenharmony_ci HS pre-emphasis current is sourced onto DP<#> or DM<#>. 9562306a36Sopenharmony_ci The HS Transmitter pre-emphasis duration is defined in terms of 9662306a36Sopenharmony_ci unit amounts. One unit of pre-emphasis duration is approximately 9762306a36Sopenharmony_ci 650 ps and is defined as 1X pre-emphasis duration. 9862306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 9962306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 10062306a36Sopenharmony_ci minimum: 10000 10162306a36Sopenharmony_ci maximum: 20000 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci qcom,pre-emphasis-amplitude-bp: 10462306a36Sopenharmony_ci description: 10562306a36Sopenharmony_ci This signal controls the amount of current sourced to 10662306a36Sopenharmony_ci DP<#> and DM<#> after a J-to-K or K-to-J transition. 10762306a36Sopenharmony_ci The HS Transmitter pre-emphasis current is defined in terms of unit 10862306a36Sopenharmony_ci amounts. One unit amount is approximately 2 mA and is defined as 10962306a36Sopenharmony_ci 1X pre-emphasis current. 11062306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 11162306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 11262306a36Sopenharmony_ci minimum: 10000 11362306a36Sopenharmony_ci maximum: 40000 11462306a36Sopenharmony_ci 11562306a36Sopenharmony_ci qcom,hs-rise-fall-time-bp: 11662306a36Sopenharmony_ci description: 11762306a36Sopenharmony_ci This adjusts the rise/fall times of the high-speed waveform. 11862306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 11962306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 12062306a36Sopenharmony_ci minimum: -4100 12162306a36Sopenharmony_ci maximum: 5430 12262306a36Sopenharmony_ci 12362306a36Sopenharmony_ci qcom,hs-crossover-voltage-microvolt: 12462306a36Sopenharmony_ci description: 12562306a36Sopenharmony_ci This adjusts the voltage at which the DP<#> and DM<#> 12662306a36Sopenharmony_ci signals cross while transmitting in HS mode. 12762306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 12862306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 12962306a36Sopenharmony_ci minimum: -31000 13062306a36Sopenharmony_ci maximum: 28000 13162306a36Sopenharmony_ci 13262306a36Sopenharmony_ci qcom,hs-output-impedance-micro-ohms: 13362306a36Sopenharmony_ci description: 13462306a36Sopenharmony_ci In some applications, there can be significant series resistance 13562306a36Sopenharmony_ci on the D+ and D- paths between the transceiver and cable. This adjusts 13662306a36Sopenharmony_ci the driver source impedance to compensate for added series 13762306a36Sopenharmony_ci resistance on the USB. The hardware accepts only discrete values. The 13862306a36Sopenharmony_ci value closest to the provided input will be chosen as the override value 13962306a36Sopenharmony_ci for this param. 14062306a36Sopenharmony_ci minimum: -2300000 14162306a36Sopenharmony_ci maximum: 6100000 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci qcom,ls-fs-output-impedance-bp: 14462306a36Sopenharmony_ci description: 14562306a36Sopenharmony_ci This adjusts the low- and full-speed single-ended source 14662306a36Sopenharmony_ci impedance while driving high. The following adjustment values are based 14762306a36Sopenharmony_ci on nominal process, voltage, and temperature. 14862306a36Sopenharmony_ci The hardware accepts only discrete values. The value closest to the 14962306a36Sopenharmony_ci provided input will be chosen as the override value for this param. 15062306a36Sopenharmony_ci minimum: -1053 15162306a36Sopenharmony_ci maximum: 1310 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_cirequired: 15462306a36Sopenharmony_ci - compatible 15562306a36Sopenharmony_ci - reg 15662306a36Sopenharmony_ci - "#phy-cells" 15762306a36Sopenharmony_ci - clocks 15862306a36Sopenharmony_ci - clock-names 15962306a36Sopenharmony_ci - resets 16062306a36Sopenharmony_ci - vdda-pll-supply 16162306a36Sopenharmony_ci - vdda18-supply 16262306a36Sopenharmony_ci - vdda33-supply 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ciadditionalProperties: false 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ciexamples: 16762306a36Sopenharmony_ci - | 16862306a36Sopenharmony_ci #include <dt-bindings/clock/qcom,rpmh.h> 16962306a36Sopenharmony_ci #include <dt-bindings/clock/qcom,gcc-sm8150.h> 17062306a36Sopenharmony_ci phy@88e2000 { 17162306a36Sopenharmony_ci compatible = "qcom,sm8150-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; 17262306a36Sopenharmony_ci reg = <0x088e2000 0x400>; 17362306a36Sopenharmony_ci #phy-cells = <0>; 17462306a36Sopenharmony_ci 17562306a36Sopenharmony_ci clocks = <&rpmhcc RPMH_CXO_CLK>; 17662306a36Sopenharmony_ci clock-names = "ref"; 17762306a36Sopenharmony_ci 17862306a36Sopenharmony_ci resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci vdda-pll-supply = <&vdd_usb_hs_core>; 18162306a36Sopenharmony_ci vdda33-supply = <&vdda_usb_hs_3p1>; 18262306a36Sopenharmony_ci vdda18-supply = <&vdda_usb_hs_1p8>; 18362306a36Sopenharmony_ci }; 18462306a36Sopenharmony_ci... 185