Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / phy / rockchip-usb-phy.yaml
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
7 title: Rockchip USB2.0 phy
8
9 maintainers:
10   - Heiko Stuebner <heiko@sntech.de>
11
12 properties:
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
28 required:
29   - compatible
30   - "#address-cells"
31   - "#size-cells"
32
33 additionalProperties: false
34
35 patternProperties:
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
70 examples:
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     };