xref: /freebsd/sys/contrib/device-tree/Bindings/phy/rockchip-usb-phy.yaml (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/phy/rockchip-usb-phy.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Rockchip USB2.0 phy
8
9maintainers:
10  - Heiko Stuebner <heiko@sntech.de>
11
12properties:
13  compatible:
14    enum:
15      - rockchip,rk3066a-usb-phy
16      - rockchip,rk3188-usb-phy
17      - rockchip,rk3288-usb-phy
18
19  "#address-cells":
20    const: 1
21
22  "#size-cells":
23    const: 0
24
25required:
26  - compatible
27  - "#address-cells"
28  - "#size-cells"
29
30additionalProperties: false
31
32patternProperties:
33  "usb-phy@[0-9a-f]+$":
34    type: object
35
36    properties:
37      reg:
38        maxItems: 1
39
40      "#phy-cells":
41        const: 0
42
43      clocks:
44        maxItems: 1
45
46      clock-names:
47        const: phyclk
48
49      "#clock-cells":
50        const: 0
51
52      resets:
53        maxItems: 1
54
55      reset-names:
56        const: phy-reset
57
58      vbus-supply:
59        description: phandle for vbus power source
60
61    required:
62      - reg
63      - "#phy-cells"
64
65    additionalProperties: false
66
67examples:
68  - |
69    usbphy: usbphy {
70      compatible = "rockchip,rk3288-usb-phy";
71      #address-cells = <1>;
72      #size-cells = <0>;
73
74      usbphy0: usb-phy@320 {
75        reg = <0x320>;
76        #phy-cells = <0>;
77      };
78    };
79