1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2# Copyright 2019 BayLibre, SAS
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/phy/amlogic,g12a-usb2-phy.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Amlogic G12A USB2 PHY
9
10maintainers:
11  - Neil Armstrong <neil.armstrong@linaro.org>
12
13properties:
14  compatible:
15    enum:
16      - amlogic,g12a-usb2-phy
17      - amlogic,a1-usb2-phy
18
19  reg:
20    maxItems: 1
21
22  clocks:
23    maxItems: 1
24
25  clock-names:
26    items:
27      - const: xtal
28
29  resets:
30    maxItems: 1
31
32  reset-names:
33    items:
34      - const: phy
35
36  "#phy-cells":
37    const: 0
38
39  phy-supply:
40    description:
41      Phandle to a regulator that provides power to the PHY. This
42      regulator will be managed during the PHY power on/off sequence.
43
44required:
45  - compatible
46  - reg
47  - clocks
48  - clock-names
49  - resets
50  - reset-names
51  - "#phy-cells"
52
53if:
54  properties:
55    compatible:
56      enum:
57        - amlogic,meson-a1-usb-ctrl
58
59then:
60  properties:
61    power-domains:
62      maxItems: 1
63  required:
64    - power-domains
65
66additionalProperties: false
67
68examples:
69  - |
70    phy@36000 {
71          compatible = "amlogic,g12a-usb2-phy";
72          reg = <0x36000 0x2000>;
73          clocks = <&xtal>;
74          clock-names = "xtal";
75          resets = <&phy_reset>;
76          reset-names = "phy";
77          #phy-cells = <0>;
78    };
79