xref: /freebsd/sys/contrib/device-tree/Bindings/nvmem/sunplus,sp7021-ocotp.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
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/nvmem/sunplus,sp7021-ocotp.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: On-Chip OTP Memory for Sunplus SP7021
9
10maintainers:
11  - Vincent Shih <vincent.sunplus@gmail.com>
12
13allOf:
14  - $ref: nvmem.yaml#
15
16properties:
17  compatible:
18    const: sunplus,sp7021-ocotp
19
20  reg:
21    maxItems: 2
22
23  reg-names:
24    items:
25      - const: hb_gpio
26      - const: otprx
27
28  clocks:
29    maxItems: 1
30
31  thermal-calibration:
32    type: object
33    description: thermal calibration values
34
35  disconnect-voltage:
36    type: object
37    description: disconnect voltages of usb2 port 0 and port 1
38
39  mac-address0:
40    type: object
41    description: MAC address of ethernet port 0
42
43  mac-address1:
44    type: object
45    description: MAC address of ethernet port 1
46
47required:
48  - compatible
49  - reg
50  - reg-names
51  - clocks
52
53unevaluatedProperties: false
54
55examples:
56  - |
57    otp: otp@9c00af00 {
58        compatible = "sunplus,sp7021-ocotp";
59        reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
60        reg-names = "hb_gpio", "otprx";
61        clocks = <&clkc 0x15>;
62
63        #address-cells = <1>;
64        #size-cells = <1>;
65        therm_calib: thermal-calibration@14 {
66          reg = <0x14 0x3>;
67        };
68        disc_vol: disconnect-voltage@18 {
69          reg = <0x18 0x2>;
70        };
71        mac_addr0: mac-address0@34 {
72          reg = <0x34 0x6>;
73        };
74        mac_addr1: mac-address1@3a {
75          reg = <0x3a 0x6>;
76        };
77    };
78...
79