1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/phy/amlogic,meson8b-usb2-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Amlogic Meson8, Meson8b, Meson8m2 and GXBB USB2 PHY
8
9maintainers:
10  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - enum:
17              - amlogic,meson8-usb2-phy
18              - amlogic,meson8b-usb2-phy
19              - amlogic,meson8m2-usb2-phy
20          - const: amlogic,meson-mx-usb2-phy
21      - const: amlogic,meson-gxbb-usb2-phy
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    minItems: 2
28
29  clock-names:
30    items:
31      - const: usb_general
32      - const: usb
33
34  resets:
35    minItems: 1
36
37  "#phy-cells":
38    const: 0
39
40  phy-supply:
41    description:
42      Phandle to a regulator that provides power to the PHY. This
43      regulator will be managed during the PHY power on/off sequence.
44
45required:
46  - compatible
47  - reg
48  - clocks
49  - clock-names
50  - "#phy-cells"
51
52additionalProperties: false
53
54examples:
55  - |
56    usb-phy@c0000000 {
57      compatible = "amlogic,meson-gxbb-usb2-phy";
58      reg = <0xc0000000 0x20>;
59      resets = <&reset_usb_phy>;
60      clocks = <&clk_usb_general>, <&reset_usb>;
61      clock-names = "usb_general", "usb";
62      phy-supply = <&usb_vbus>;
63      #phy-cells = <0>;
64    };
65