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