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