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
25*d0cfb865SKunihiko 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:
34134ab284SKunihiko Hayashi    minItems: 1
3503815930SKunihiko Hayashi    maxItems: 3
36134ab284SKunihiko Hayashi
37134ab284SKunihiko Hayashi  clock-names:
38134ab284SKunihiko Hayashi    oneOf:
39134ab284SKunihiko Hayashi      - const: link          # for PXs2
4003815930SKunihiko Hayashi      - items:               # for PXs3 with phy-ext
4103815930SKunihiko Hayashi          - const: link
4203815930SKunihiko Hayashi          - const: phy
4303815930SKunihiko Hayashi          - const: phy-ext
4403815930SKunihiko Hayashi      - items:               # for others
45134ab284SKunihiko Hayashi          - const: link
46134ab284SKunihiko Hayashi          - const: phy
47134ab284SKunihiko Hayashi
48134ab284SKunihiko Hayashi  resets:
49134ab284SKunihiko Hayashi    maxItems: 2
50134ab284SKunihiko Hayashi
51134ab284SKunihiko Hayashi  reset-names:
52134ab284SKunihiko Hayashi    items:
53134ab284SKunihiko Hayashi      - const: link
54134ab284SKunihiko Hayashi      - const: phy
55134ab284SKunihiko Hayashi
56134ab284SKunihiko Hayashi  vbus-supply:
57134ab284SKunihiko Hayashi    description: A phandle to the regulator for USB VBUS
58134ab284SKunihiko Hayashi
59134ab284SKunihiko Hayashi  nvmem-cells:
60134ab284SKunihiko Hayashi    maxItems: 3
61134ab284SKunihiko Hayashi    description:
62134ab284SKunihiko Hayashi      Phandles to nvmem cell that contains the trimming data.
63134ab284SKunihiko Hayashi      Available only for HS-PHY implemented on LD20 and PXs3, and
64134ab284SKunihiko Hayashi      if unspecified, default value is used.
65134ab284SKunihiko Hayashi
66134ab284SKunihiko Hayashi  nvmem-cell-names:
67134ab284SKunihiko Hayashi    items:
68134ab284SKunihiko Hayashi      - const: rterm
69134ab284SKunihiko Hayashi      - const: sel_t
70134ab284SKunihiko Hayashi      - const: hs_i
71134ab284SKunihiko Hayashi    description:
72134ab284SKunihiko Hayashi      Should be the following names, which correspond to each nvmem-cells.
73134ab284SKunihiko Hayashi      All of the 3 parameters associated with the above names are
74134ab284SKunihiko Hayashi      required for each port, if any one is omitted, the trimming data
75134ab284SKunihiko Hayashi      of the port will not be set at all.
76134ab284SKunihiko Hayashi
77134ab284SKunihiko Hayashirequired:
78134ab284SKunihiko Hayashi  - compatible
79134ab284SKunihiko Hayashi  - reg
80134ab284SKunihiko Hayashi  - "#phy-cells"
81134ab284SKunihiko Hayashi  - clocks
82134ab284SKunihiko Hayashi  - clock-names
83134ab284SKunihiko Hayashi  - resets
84134ab284SKunihiko Hayashi  - reset-names
85134ab284SKunihiko Hayashi
86134ab284SKunihiko HayashiadditionalProperties: false
87134ab284SKunihiko Hayashi
88134ab284SKunihiko Hayashiexamples:
89134ab284SKunihiko Hayashi  - |
90134ab284SKunihiko Hayashi    usb-glue@65b00000 {
91134ab284SKunihiko Hayashi        compatible = "socionext,uniphier-ld20-dwc3-glue", "simple-mfd";
92134ab284SKunihiko Hayashi        #address-cells = <1>;
93134ab284SKunihiko Hayashi        #size-cells = <1>;
94134ab284SKunihiko Hayashi        ranges = <0 0x65b00000 0x400>;
95134ab284SKunihiko Hayashi
96134ab284SKunihiko Hayashi        usb_hsphy0: hs-phy@200 {
97134ab284SKunihiko Hayashi            compatible = "socionext,uniphier-ld20-usb3-hsphy";
98134ab284SKunihiko Hayashi            reg = <0x200 0x10>;
99134ab284SKunihiko Hayashi            #phy-cells = <0>;
100134ab284SKunihiko Hayashi            clock-names = "link", "phy";
101134ab284SKunihiko Hayashi            clocks = <&sys_clk 14>, <&sys_clk 16>;
102134ab284SKunihiko Hayashi            reset-names = "link", "phy";
103134ab284SKunihiko Hayashi            resets = <&sys_rst 14>, <&sys_rst 16>;
104134ab284SKunihiko Hayashi            vbus-supply = <&usb_vbus0>;
105134ab284SKunihiko Hayashi            nvmem-cell-names = "rterm", "sel_t", "hs_i";
106134ab284SKunihiko Hayashi            nvmem-cells = <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>;
107134ab284SKunihiko Hayashi        };
108134ab284SKunihiko Hayashi    };
109