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    oneOf:
15      - const: rockchip,rk3288-usb-phy
16      - items:
17          - enum:
18              - rockchip,rk3066a-usb-phy
19              - rockchip,rk3188-usb-phy
20          - const: rockchip,rk3288-usb-phy
21
22  "#address-cells":
23    const: 1
24
25  "#size-cells":
26    const: 0
27
28required:
29  - compatible
30  - "#address-cells"
31  - "#size-cells"
32
33additionalProperties: false
34
35patternProperties:
36  "usb-phy@[0-9a-f]+$":
37    type: object
38
39    properties:
40      reg:
41        maxItems: 1
42
43      "#phy-cells":
44        const: 0
45
46      clocks:
47        maxItems: 1
48
49      clock-names:
50        const: phyclk
51
52      "#clock-cells":
53        const: 0
54
55      resets:
56        maxItems: 1
57
58      reset-names:
59        const: phy-reset
60
61      vbus-supply:
62        description: phandle for vbus power source
63
64    required:
65      - reg
66      - "#phy-cells"
67
68    additionalProperties: false
69
70examples:
71  - |
72    usbphy: usbphy {
73      compatible = "rockchip,rk3288-usb-phy";
74      #address-cells = <1>;
75      #size-cells = <0>;
76
77      usbphy0: usb-phy@320 {
78        reg = <0x320>;
79        #phy-cells = <0>;
80      };
81    };
82