xref: /linux/Documentation/devicetree/bindings/phy/amlogic,g12a-usb2-phy.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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
44  power-domains:
45    maxItems: 1
46
47required:
48  - compatible
49  - reg
50  - clocks
51  - clock-names
52  - resets
53  - reset-names
54  - "#phy-cells"
55
56if:
57  properties:
58    compatible:
59      enum:
60        - amlogic,meson-a1-usb-ctrl
61
62then:
63  properties:
64    power-domains:
65      maxItems: 1
66  required:
67    - power-domains
68
69additionalProperties: false
70
71examples:
72  - |
73    phy@36000 {
74          compatible = "amlogic,g12a-usb2-phy";
75          reg = <0x36000 0x2000>;
76          clocks = <&xtal>;
77          clock-names = "xtal";
78          resets = <&phy_reset>;
79          reset-names = "phy";
80          #phy-cells = <0>;
81    };
82