xref: /linux/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1134ab284SKunihiko Hayashi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2134ab284SKunihiko Hayashi%YAML 1.2
3134ab284SKunihiko Hayashi---
4134ab284SKunihiko Hayashi$id: http://devicetree.org/schemas/phy/socionext,uniphier-usb3hs-phy.yaml#
5134ab284SKunihiko Hayashi$schema: http://devicetree.org/meta-schemas/core.yaml#
6134ab284SKunihiko Hayashi
7134ab284SKunihiko Hayashititle: Socionext UniPhier USB3 High-Speed (HS) PHY
8134ab284SKunihiko Hayashi
9134ab284SKunihiko Hayashidescription: |
10134ab284SKunihiko Hayashi  This describes the devicetree bindings for PHY interfaces built into
11134ab284SKunihiko Hayashi  USB3 controller implemented on Socionext UniPhier SoCs.
12134ab284SKunihiko Hayashi  Although the controller includes High-Speed PHY and Super-Speed PHY,
13134ab284SKunihiko Hayashi  this describes about High-Speed PHY.
14134ab284SKunihiko Hayashi
15134ab284SKunihiko Hayashimaintainers:
16134ab284SKunihiko Hayashi  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
17134ab284SKunihiko Hayashi
18134ab284SKunihiko Hayashiproperties:
19134ab284SKunihiko Hayashi  compatible:
20134ab284SKunihiko Hayashi    enum:
21134ab284SKunihiko Hayashi      - socionext,uniphier-pro5-usb3-hsphy
22134ab284SKunihiko Hayashi      - socionext,uniphier-pxs2-usb3-hsphy
23134ab284SKunihiko Hayashi      - socionext,uniphier-ld20-usb3-hsphy
24134ab284SKunihiko Hayashi      - socionext,uniphier-pxs3-usb3-hsphy
25d0cfb865SKunihiko Hayashi      - socionext,uniphier-nx1-usb3-hsphy
26134ab284SKunihiko Hayashi
27134ab284SKunihiko Hayashi  reg:
280499220dSRob Herring    maxItems: 1
29134ab284SKunihiko Hayashi
30134ab284SKunihiko Hayashi  "#phy-cells":
31134ab284SKunihiko Hayashi    const: 0
32134ab284SKunihiko Hayashi
33134ab284SKunihiko Hayashi  clocks:
3445d1f841SKunihiko Hayashi    minItems: 2
3503815930SKunihiko Hayashi    maxItems: 3
36134ab284SKunihiko Hayashi
37*45a4237bSKrzysztof Kozlowski  clock-names:
38*45a4237bSKrzysztof Kozlowski    minItems: 2
39*45a4237bSKrzysztof Kozlowski    maxItems: 3
40134ab284SKunihiko Hayashi
41134ab284SKunihiko Hayashi  resets:
42134ab284SKunihiko Hayashi    maxItems: 2
43134ab284SKunihiko Hayashi
44*45a4237bSKrzysztof Kozlowski  reset-names:
45*45a4237bSKrzysztof Kozlowski    maxItems: 2
46134ab284SKunihiko Hayashi
47134ab284SKunihiko Hayashi  vbus-supply:
48134ab284SKunihiko Hayashi    description: A phandle to the regulator for USB VBUS
49134ab284SKunihiko Hayashi
50134ab284SKunihiko Hayashi  nvmem-cells:
51134ab284SKunihiko Hayashi    maxItems: 3
52134ab284SKunihiko Hayashi    description:
53134ab284SKunihiko Hayashi      Phandles to nvmem cell that contains the trimming data.
54134ab284SKunihiko Hayashi      Available only for HS-PHY implemented on LD20 and PXs3, and
55134ab284SKunihiko Hayashi      if unspecified, default value is used.
56134ab284SKunihiko Hayashi
57134ab284SKunihiko Hayashi  nvmem-cell-names:
58134ab284SKunihiko Hayashi    items:
59134ab284SKunihiko Hayashi      - const: rterm
60134ab284SKunihiko Hayashi      - const: sel_t
61134ab284SKunihiko Hayashi      - const: hs_i
62134ab284SKunihiko Hayashi    description:
63134ab284SKunihiko Hayashi      Should be the following names, which correspond to each nvmem-cells.
64134ab284SKunihiko Hayashi      All of the 3 parameters associated with the above names are
65134ab284SKunihiko Hayashi      required for each port, if any one is omitted, the trimming data
66134ab284SKunihiko Hayashi      of the port will not be set at all.
67134ab284SKunihiko Hayashi
6809cc358aSKunihiko HayashiallOf:
6909cc358aSKunihiko Hayashi  - if:
7009cc358aSKunihiko Hayashi      properties:
7109cc358aSKunihiko Hayashi        compatible:
7209cc358aSKunihiko Hayashi          contains:
7309cc358aSKunihiko Hayashi            const: socionext,uniphier-pro5-usb3-hsphy
7409cc358aSKunihiko Hayashi    then:
7509cc358aSKunihiko Hayashi      properties:
7609cc358aSKunihiko Hayashi        clocks:
7709cc358aSKunihiko Hayashi          minItems: 2
7809cc358aSKunihiko Hayashi          maxItems: 2
7909cc358aSKunihiko Hayashi        clock-names:
8009cc358aSKunihiko Hayashi          items:
8109cc358aSKunihiko Hayashi            - const: gio
8209cc358aSKunihiko Hayashi            - const: link
8309cc358aSKunihiko Hayashi        resets:
8409cc358aSKunihiko Hayashi          minItems: 2
8509cc358aSKunihiko Hayashi          maxItems: 2
8609cc358aSKunihiko Hayashi        reset-names:
8709cc358aSKunihiko Hayashi          items:
8809cc358aSKunihiko Hayashi            - const: gio
8909cc358aSKunihiko Hayashi            - const: link
9009cc358aSKunihiko Hayashi  - if:
9109cc358aSKunihiko Hayashi      properties:
9209cc358aSKunihiko Hayashi        compatible:
9309cc358aSKunihiko Hayashi          contains:
9409cc358aSKunihiko Hayashi            enum:
9509cc358aSKunihiko Hayashi              - socionext,uniphier-pxs2-usb3-hsphy
9609cc358aSKunihiko Hayashi              - socionext,uniphier-ld20-usb3-hsphy
9709cc358aSKunihiko Hayashi    then:
9809cc358aSKunihiko Hayashi      properties:
9909cc358aSKunihiko Hayashi        clocks:
10009cc358aSKunihiko Hayashi          minItems: 2
10109cc358aSKunihiko Hayashi          maxItems: 2
10209cc358aSKunihiko Hayashi        clock-names:
10309cc358aSKunihiko Hayashi          items:
10409cc358aSKunihiko Hayashi            - const: link
10509cc358aSKunihiko Hayashi            - const: phy
10609cc358aSKunihiko Hayashi        resets:
10709cc358aSKunihiko Hayashi          minItems: 2
10809cc358aSKunihiko Hayashi          maxItems: 2
10909cc358aSKunihiko Hayashi        reset-names:
11009cc358aSKunihiko Hayashi          items:
11109cc358aSKunihiko Hayashi            - const: link
11209cc358aSKunihiko Hayashi            - const: phy
11309cc358aSKunihiko Hayashi  - if:
11409cc358aSKunihiko Hayashi      properties:
11509cc358aSKunihiko Hayashi        compatible:
11609cc358aSKunihiko Hayashi          contains:
11709cc358aSKunihiko Hayashi            enum:
11809cc358aSKunihiko Hayashi              - socionext,uniphier-pxs3-usb3-hsphy
11909cc358aSKunihiko Hayashi              - socionext,uniphier-nx1-usb3-hsphy
12009cc358aSKunihiko Hayashi    then:
12109cc358aSKunihiko Hayashi      properties:
12209cc358aSKunihiko Hayashi        clocks:
12309cc358aSKunihiko Hayashi          minItems: 2
12409cc358aSKunihiko Hayashi          maxItems: 3
12509cc358aSKunihiko Hayashi        clock-names:
12609cc358aSKunihiko Hayashi          minItems: 2
12709cc358aSKunihiko Hayashi          items:
12809cc358aSKunihiko Hayashi            - const: link
12909cc358aSKunihiko Hayashi            - const: phy
13009cc358aSKunihiko Hayashi            - const: phy-ext
13109cc358aSKunihiko Hayashi        resets:
13209cc358aSKunihiko Hayashi          minItems: 2
13309cc358aSKunihiko Hayashi          maxItems: 2
13409cc358aSKunihiko Hayashi        reset-names:
13509cc358aSKunihiko Hayashi          items:
13609cc358aSKunihiko Hayashi            - const: link
13709cc358aSKunihiko Hayashi            - const: phy
13809cc358aSKunihiko Hayashi
139134ab284SKunihiko Hayashirequired:
140134ab284SKunihiko Hayashi  - compatible
141134ab284SKunihiko Hayashi  - reg
142134ab284SKunihiko Hayashi  - "#phy-cells"
143134ab284SKunihiko Hayashi  - clocks
144134ab284SKunihiko Hayashi  - clock-names
145134ab284SKunihiko Hayashi  - resets
146134ab284SKunihiko Hayashi  - reset-names
147134ab284SKunihiko Hayashi
148134ab284SKunihiko HayashiadditionalProperties: false
149134ab284SKunihiko Hayashi
150134ab284SKunihiko Hayashiexamples:
151134ab284SKunihiko Hayashi  - |
1524278eabeSKunihiko Hayashi    usb_hsphy0: phy@200 {
153134ab284SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-usb3-hsphy";
154134ab284SKunihiko Hayashi        reg = <0x200 0x10>;
155134ab284SKunihiko Hayashi        #phy-cells = <0>;
156134ab284SKunihiko Hayashi        clock-names = "link", "phy";
157134ab284SKunihiko Hayashi        clocks = <&sys_clk 14>, <&sys_clk 16>;
158134ab284SKunihiko Hayashi        reset-names = "link", "phy";
159134ab284SKunihiko Hayashi        resets = <&sys_rst 14>, <&sys_rst 16>;
160134ab284SKunihiko Hayashi        vbus-supply = <&usb_vbus0>;
161134ab284SKunihiko Hayashi        nvmem-cell-names = "rterm", "sel_t", "hs_i";
162134ab284SKunihiko Hayashi        nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>;
163134ab284SKunihiko Hayashi    };
164