xref: /freebsd/sys/contrib/device-tree/Bindings/phy/sunplus,sp7021-usb2-phy.yaml (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) Sunplus Co., Ltd. 2021
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/phy/sunplus,sp7021-usb2-phy.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Sunplus SP7021 USB 2.0 PHY Controller
9
10maintainers:
11  - Vincent Shih <vincent.sunplus@gmail.com>
12
13properties:
14  compatible:
15    const: sunplus,sp7021-usb2-phy
16
17  reg:
18    items:
19      - description: UPHY register region
20      - description: MOON4 register region
21
22  reg-names:
23    items:
24      - const: phy
25      - const: moon4
26
27  clocks:
28    maxItems: 1
29
30  resets:
31    maxItems: 1
32
33  "#phy-cells":
34    const: 0
35
36  nvmem-cell-names:
37    description: names corresponding to the nvmem cells of disconnect voltage
38    const: disc_vol
39
40  nvmem-cells:
41    description: nvmem cell address of disconnect voltage
42    maxItems: 1
43
44  sunplus,disc-vol-addr-off:
45    $ref: /schemas/types.yaml#/definitions/uint32
46    description: the otp address offset of disconnect voltage
47
48required:
49  - compatible
50  - reg
51  - reg-names
52  - clocks
53  - resets
54  - "#phy-cells"
55  - nvmem-cell-names
56  - nvmem-cells
57  - sunplus,disc-vol-addr-off
58
59additionalProperties: false
60
61examples:
62  - |
63    sp_uphy0: usb-phy@9c004a80 {
64      compatible = "sunplus,sp7021-usb2-phy";
65      reg = <0x9c004a80 0x80>, <0x9c000248 0x10>;
66      reg-names = "phy", "moon4";
67      clocks = <&clkc 0x3d>;
68      resets = <&rstc 0x2d>;
69      #phy-cells = <0>;
70      nvmem-cell-names = "disc_vol";
71      nvmem-cells = <&disc_vol>;
72      sunplus,disc-vol-addr-off = <0>;
73    };
74