xref: /freebsd/sys/contrib/device-tree/Bindings/phy/qcom,usb-snps-femto-v2.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/qcom,usb-snps-femto-v2.yaml#
5fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: Qualcomm Synopsys Femto High-Speed USB PHY V2
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Wesley Cheng <quic_wcheng@quicinc.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  Qualcomm High-Speed USB PHY
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17cb7aa33aSEmmanuel Vadot    oneOf:
18cb7aa33aSEmmanuel Vadot      - enum:
19c9ccf3a3SEmmanuel Vadot          - qcom,sc8180x-usb-hs-phy
20cb7aa33aSEmmanuel Vadot          - qcom,usb-snps-femto-v2-phy
21cb7aa33aSEmmanuel Vadot      - items:
22cb7aa33aSEmmanuel Vadot          - enum:
23*f126890aSEmmanuel Vadot              - qcom,sa8775p-usb-hs-phy
24c9ccf3a3SEmmanuel Vadot              - qcom,sc8280xp-usb-hs-phy
25cb7aa33aSEmmanuel Vadot          - const: qcom,usb-snps-hs-5nm-phy
26cb7aa33aSEmmanuel Vadot      - items:
27cb7aa33aSEmmanuel Vadot          - enum:
28cb7aa33aSEmmanuel Vadot              - qcom,sc7280-usb-hs-phy
29cb7aa33aSEmmanuel Vadot              - qcom,sdx55-usb-hs-phy
30cb7aa33aSEmmanuel Vadot              - qcom,sdx65-usb-hs-phy
317ef62cebSEmmanuel Vadot              - qcom,sm6375-usb-hs-phy
32c66ec88fSEmmanuel Vadot              - qcom,sm8150-usb-hs-phy
335def4c47SEmmanuel Vadot              - qcom,sm8250-usb-hs-phy
345def4c47SEmmanuel Vadot              - qcom,sm8350-usb-hs-phy
35e67e8565SEmmanuel Vadot              - qcom,sm8450-usb-hs-phy
36cb7aa33aSEmmanuel Vadot          - const: qcom,usb-snps-hs-7nm-phy
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  reg:
39c66ec88fSEmmanuel Vadot    maxItems: 1
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  "#phy-cells":
42c66ec88fSEmmanuel Vadot    const: 0
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  clocks:
45c66ec88fSEmmanuel Vadot    items:
46c66ec88fSEmmanuel Vadot      - description: rpmhcc ref clock
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot  clock-names:
49c66ec88fSEmmanuel Vadot    items:
50c66ec88fSEmmanuel Vadot      - const: ref
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot  resets:
53c66ec88fSEmmanuel Vadot    items:
54c66ec88fSEmmanuel Vadot      - description: PHY core reset
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  vdda-pll-supply:
57c66ec88fSEmmanuel Vadot    description: phandle to the regulator VDD supply node.
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot  vdda18-supply:
60c66ec88fSEmmanuel Vadot    description: phandle to the regulator 1.8V supply node.
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot  vdda33-supply:
63c66ec88fSEmmanuel Vadot    description: phandle to the regulator 3.3V supply node.
64c66ec88fSEmmanuel Vadot
657ef62cebSEmmanuel Vadot  qcom,hs-disconnect-bp:
667ef62cebSEmmanuel Vadot    description:
677ef62cebSEmmanuel Vadot      This adjusts the voltage level for the threshold used to
687ef62cebSEmmanuel Vadot      detect a disconnect event at the host.
697ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
707ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
717ef62cebSEmmanuel Vadot    minimum: -272
727ef62cebSEmmanuel Vadot    maximum: 2156
737ef62cebSEmmanuel Vadot
747ef62cebSEmmanuel Vadot  qcom,squelch-detector-bp:
757ef62cebSEmmanuel Vadot    description:
767ef62cebSEmmanuel Vadot      This adjusts the voltage level for the threshold used to
777ef62cebSEmmanuel Vadot      detect valid high-speed data.
787ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
797ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
807ef62cebSEmmanuel Vadot    minimum: -2090
817ef62cebSEmmanuel Vadot    maximum: 1590
827ef62cebSEmmanuel Vadot
837ef62cebSEmmanuel Vadot  qcom,hs-amplitude-bp:
847ef62cebSEmmanuel Vadot    description:
857ef62cebSEmmanuel Vadot      This adjusts the high-speed DC level voltage.
867ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
877ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
887ef62cebSEmmanuel Vadot    minimum: -660
897ef62cebSEmmanuel Vadot    maximum: 2670
907ef62cebSEmmanuel Vadot
917ef62cebSEmmanuel Vadot  qcom,pre-emphasis-duration-bp:
927ef62cebSEmmanuel Vadot    description:
937ef62cebSEmmanuel Vadot      This signal controls the duration for which the
947ef62cebSEmmanuel Vadot      HS pre-emphasis current is sourced onto DP<#> or DM<#>.
957ef62cebSEmmanuel Vadot      The HS Transmitter pre-emphasis duration is defined in terms of
967ef62cebSEmmanuel Vadot      unit amounts. One unit of pre-emphasis duration is approximately
977ef62cebSEmmanuel Vadot      650 ps and is defined as 1X pre-emphasis duration.
987ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
997ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
1007ef62cebSEmmanuel Vadot    minimum: 10000
1017ef62cebSEmmanuel Vadot    maximum: 20000
1027ef62cebSEmmanuel Vadot
1037ef62cebSEmmanuel Vadot  qcom,pre-emphasis-amplitude-bp:
1047ef62cebSEmmanuel Vadot    description:
1057ef62cebSEmmanuel Vadot      This signal controls the amount of current sourced to
1067ef62cebSEmmanuel Vadot      DP<#> and DM<#> after a J-to-K or K-to-J transition.
1077ef62cebSEmmanuel Vadot      The HS Transmitter pre-emphasis current is defined in terms of unit
1087ef62cebSEmmanuel Vadot      amounts. One unit amount is approximately 2 mA and is defined as
1097ef62cebSEmmanuel Vadot      1X pre-emphasis current.
1107ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
1117ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
1127ef62cebSEmmanuel Vadot    minimum: 10000
1137ef62cebSEmmanuel Vadot    maximum: 40000
1147ef62cebSEmmanuel Vadot
1157ef62cebSEmmanuel Vadot  qcom,hs-rise-fall-time-bp:
1167ef62cebSEmmanuel Vadot    description:
1177ef62cebSEmmanuel Vadot      This adjusts the rise/fall times of the high-speed waveform.
1187ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
1197ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
1207ef62cebSEmmanuel Vadot    minimum: -4100
1217ef62cebSEmmanuel Vadot    maximum: 5430
1227ef62cebSEmmanuel Vadot
1237ef62cebSEmmanuel Vadot  qcom,hs-crossover-voltage-microvolt:
1247ef62cebSEmmanuel Vadot    description:
1257ef62cebSEmmanuel Vadot      This adjusts the voltage at which the DP<#> and DM<#>
1267ef62cebSEmmanuel Vadot      signals cross while transmitting in HS mode.
1277ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
1287ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
1297ef62cebSEmmanuel Vadot    minimum: -31000
1307ef62cebSEmmanuel Vadot    maximum: 28000
1317ef62cebSEmmanuel Vadot
1327ef62cebSEmmanuel Vadot  qcom,hs-output-impedance-micro-ohms:
1337ef62cebSEmmanuel Vadot    description:
1347ef62cebSEmmanuel Vadot      In some applications, there can be significant series resistance
1357ef62cebSEmmanuel Vadot      on the D+ and D- paths between the transceiver and cable. This adjusts
1367ef62cebSEmmanuel Vadot      the driver source impedance to compensate for added series
1377ef62cebSEmmanuel Vadot      resistance on the USB. The hardware accepts only discrete values. The
1387ef62cebSEmmanuel Vadot      value closest to the provided input will be chosen as the override value
1397ef62cebSEmmanuel Vadot      for this param.
1407ef62cebSEmmanuel Vadot    minimum: -2300000
1417ef62cebSEmmanuel Vadot    maximum: 6100000
1427ef62cebSEmmanuel Vadot
1437ef62cebSEmmanuel Vadot  qcom,ls-fs-output-impedance-bp:
1447ef62cebSEmmanuel Vadot    description:
1457ef62cebSEmmanuel Vadot      This adjusts the low- and full-speed single-ended source
1467ef62cebSEmmanuel Vadot      impedance while driving high. The following adjustment values are based
1477ef62cebSEmmanuel Vadot      on nominal process, voltage, and temperature.
1487ef62cebSEmmanuel Vadot      The hardware accepts only discrete values. The value closest to the
1497ef62cebSEmmanuel Vadot      provided input will be chosen as the override value for this param.
1507ef62cebSEmmanuel Vadot    minimum: -1053
1517ef62cebSEmmanuel Vadot    maximum: 1310
1527ef62cebSEmmanuel Vadot
153c66ec88fSEmmanuel Vadotrequired:
154c66ec88fSEmmanuel Vadot  - compatible
155c66ec88fSEmmanuel Vadot  - reg
156c66ec88fSEmmanuel Vadot  - "#phy-cells"
157c66ec88fSEmmanuel Vadot  - clocks
158c66ec88fSEmmanuel Vadot  - clock-names
159c66ec88fSEmmanuel Vadot  - resets
160c66ec88fSEmmanuel Vadot  - vdda-pll-supply
161c66ec88fSEmmanuel Vadot  - vdda18-supply
162c66ec88fSEmmanuel Vadot  - vdda33-supply
163c66ec88fSEmmanuel Vadot
164c66ec88fSEmmanuel VadotadditionalProperties: false
165c66ec88fSEmmanuel Vadot
166c66ec88fSEmmanuel Vadotexamples:
167c66ec88fSEmmanuel Vadot  - |
168c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
169c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/qcom,gcc-sm8150.h>
170c66ec88fSEmmanuel Vadot    phy@88e2000 {
171cb7aa33aSEmmanuel Vadot        compatible = "qcom,sm8150-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy";
172c66ec88fSEmmanuel Vadot        reg = <0x088e2000 0x400>;
173c66ec88fSEmmanuel Vadot        #phy-cells = <0>;
174c66ec88fSEmmanuel Vadot
175c66ec88fSEmmanuel Vadot        clocks = <&rpmhcc RPMH_CXO_CLK>;
176c66ec88fSEmmanuel Vadot        clock-names = "ref";
177c66ec88fSEmmanuel Vadot
178c66ec88fSEmmanuel Vadot        resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
179c66ec88fSEmmanuel Vadot
180c66ec88fSEmmanuel Vadot        vdda-pll-supply = <&vdd_usb_hs_core>;
181c66ec88fSEmmanuel Vadot        vdda33-supply = <&vdda_usb_hs_3p1>;
182c66ec88fSEmmanuel Vadot        vdda18-supply = <&vdda_usb_hs_1p8>;
183c66ec88fSEmmanuel Vadot    };
184c66ec88fSEmmanuel Vadot...
185