1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/socionext,uniphier-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Socionext UniPhier regulator controller
8
9description: |
10  This regulator controls VBUS and belongs to USB3 glue layer. Before using
11  the regulator, it is necessary to control the clocks and resets to enable
12  this layer. These clocks and resets should be described in each property.
13
14maintainers:
15  - Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
16
17allOf:
18  - $ref: "regulator.yaml#"
19
20# USB3 Controller
21
22properties:
23  compatible:
24    enum:
25      - socionext,uniphier-pro4-usb3-regulator
26      - socionext,uniphier-pro5-usb3-regulator
27      - socionext,uniphier-pxs2-usb3-regulator
28      - socionext,uniphier-ld20-usb3-regulator
29      - socionext,uniphier-pxs3-usb3-regulator
30      - socionext,uniphier-nx1-usb3-regulator
31
32  reg:
33    maxItems: 1
34
35  clocks:
36    minItems: 1
37    maxItems: 2
38
39  clock-names:
40    oneOf:
41      - items:          # for Pro4, Pro5
42          - const: gio
43          - const: link
44      - items:          # for others
45          - const: link
46
47  resets:
48    minItems: 1
49    maxItems: 2
50
51  reset-names:
52    oneOf:
53      - items:          # for Pro4, Pro5
54          - const: gio
55          - const: link
56      - items:
57          - const: link
58
59additionalProperties: false
60
61required:
62  - compatible
63  - reg
64  - clocks
65  - clock-names
66  - resets
67  - reset-names
68
69examples:
70  - |
71    usb-glue@65b00000 {
72        compatible = "simple-mfd";
73        #address-cells = <1>;
74        #size-cells = <1>;
75        ranges = <0 0x65b00000 0x400>;
76
77        usb_vbus0: regulators@100 {
78            compatible = "socionext,uniphier-ld20-usb3-regulator";
79            reg = <0x100 0x10>;
80            clock-names = "link";
81            clocks = <&sys_clk 14>;
82            reset-names = "link";
83            resets = <&sys_rst 14>;
84        };
85    };
86
87