xref: /freebsd/sys/contrib/device-tree/Bindings/phy/qcom,snps-eusb2-repeater.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/qcom,snps-eusb2-repeater.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Qualcomm Synopsis eUSB2 to USB 2.0 repeater
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Abel Vesa <abel.vesa@linaro.org>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotdescription:
13cb7aa33aSEmmanuel Vadot  eUSB2 repeater converts between eUSB2 and USB 2.0 signaling levels and
14cb7aa33aSEmmanuel Vadot  allows a eUSB2 PHY to connect to legacy USB 2.0 products
15cb7aa33aSEmmanuel Vadot
16cb7aa33aSEmmanuel Vadotproperties:
17cb7aa33aSEmmanuel Vadot  compatible:
18aa1a8ff2SEmmanuel Vadot    oneOf:
19aa1a8ff2SEmmanuel Vadot      - items:
20aa1a8ff2SEmmanuel Vadot          - enum:
21aa1a8ff2SEmmanuel Vadot              - qcom,pm7550ba-eusb2-repeater
22aa1a8ff2SEmmanuel Vadot          - const: qcom,pm8550b-eusb2-repeater
23aa1a8ff2SEmmanuel Vadot      - const: qcom,pm8550b-eusb2-repeater
24cb7aa33aSEmmanuel Vadot
25cb7aa33aSEmmanuel Vadot  reg:
26cb7aa33aSEmmanuel Vadot    maxItems: 1
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  "#phy-cells":
29cb7aa33aSEmmanuel Vadot    const: 0
30cb7aa33aSEmmanuel Vadot
31cb7aa33aSEmmanuel Vadot  vdd18-supply: true
32cb7aa33aSEmmanuel Vadot
33cb7aa33aSEmmanuel Vadot  vdd3-supply: true
34cb7aa33aSEmmanuel Vadot
35*84943d6fSEmmanuel Vadot  qcom,tune-usb2-disc-thres:
36*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
37*84943d6fSEmmanuel Vadot    description: High-Speed disconnect threshold
38*84943d6fSEmmanuel Vadot    minimum: 0
39*84943d6fSEmmanuel Vadot    maximum: 7
40*84943d6fSEmmanuel Vadot    default: 0
41*84943d6fSEmmanuel Vadot
42*84943d6fSEmmanuel Vadot  qcom,tune-usb2-amplitude:
43*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
44*84943d6fSEmmanuel Vadot    description: High-Speed trasmit amplitude
45*84943d6fSEmmanuel Vadot    minimum: 0
46*84943d6fSEmmanuel Vadot    maximum: 15
47*84943d6fSEmmanuel Vadot    default: 8
48*84943d6fSEmmanuel Vadot
49*84943d6fSEmmanuel Vadot  qcom,tune-usb2-preem:
50*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint8
51*84943d6fSEmmanuel Vadot    description: High-Speed TX pre-emphasis tuning
52*84943d6fSEmmanuel Vadot    minimum: 0
53*84943d6fSEmmanuel Vadot    maximum: 7
54*84943d6fSEmmanuel Vadot    default: 5
55*84943d6fSEmmanuel Vadot
56cb7aa33aSEmmanuel Vadotrequired:
57cb7aa33aSEmmanuel Vadot  - compatible
58cb7aa33aSEmmanuel Vadot  - reg
59cb7aa33aSEmmanuel Vadot  - "#phy-cells"
60cb7aa33aSEmmanuel Vadot
61cb7aa33aSEmmanuel VadotadditionalProperties: false
62cb7aa33aSEmmanuel Vadot
63cb7aa33aSEmmanuel Vadotexamples:
64cb7aa33aSEmmanuel Vadot  - |
65cb7aa33aSEmmanuel Vadot    #include <dt-bindings/spmi/spmi.h>
66cb7aa33aSEmmanuel Vadot
67cb7aa33aSEmmanuel Vadot    pmic@7 {
68cb7aa33aSEmmanuel Vadot      reg = <0x7 SPMI_USID>;
69cb7aa33aSEmmanuel Vadot      #address-cells = <1>;
70cb7aa33aSEmmanuel Vadot      #size-cells = <0>;
71cb7aa33aSEmmanuel Vadot
72cb7aa33aSEmmanuel Vadot      pm8550b_eusb2_repeater: phy@fd00 {
73cb7aa33aSEmmanuel Vadot        compatible = "qcom,pm8550b-eusb2-repeater";
74cb7aa33aSEmmanuel Vadot        reg = <0xfd00>;
75cb7aa33aSEmmanuel Vadot        #phy-cells = <0>;
76cb7aa33aSEmmanuel Vadot      };
77cb7aa33aSEmmanuel Vadot    };
78cb7aa33aSEmmanuel Vadot...
79