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  "#address-cells":
32    const: 1
33
34  "#size-cells":
35    const: 1
36
37  thermal-calibration:
38    type: object
39    description: thermal calibration values
40
41  disconnect-voltage:
42    type: object
43    description: disconnect voltages of usb2 port 0 and port 1
44
45  mac-address0:
46    type: object
47    description: MAC address of ethernet port 0
48
49  mac-address1:
50    type: object
51    description: MAC address of ethernet port 1
52
53required:
54  - compatible
55  - reg
56  - reg-names
57  - clocks
58
59unevaluatedProperties: false
60
61examples:
62  - |
63    otp: otp@9c00af00 {
64        compatible = "sunplus,sp7021-ocotp";
65        reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
66        reg-names = "hb_gpio", "otprx";
67        clocks = <&clkc 0x15>;
68
69        #address-cells = <1>;
70        #size-cells = <1>;
71        therm_calib: thermal-calibration@14 {
72          reg = <0x14 0x3>;
73        };
74        disc_vol: disconnect-voltage@18 {
75          reg = <0x18 0x2>;
76        };
77        mac_addr0: mac-address0@34 {
78          reg = <0x34 0x6>;
79        };
80        mac_addr1: mac-address1@3a {
81          reg = <0x3a 0x6>;
82        };
83    };
84...
85