0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (C) Sunplus Co., Ltd. 2021
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007
0008 title: On-Chip OTP Memory for Sunplus SP7021
0009
0010 maintainers:
0011 - Vincent Shih <vincent.sunplus@gmail.com>
0012
0013 allOf:
0014 - $ref: "nvmem.yaml#"
0015
0016 properties:
0017 compatible:
0018 const: sunplus,sp7021-ocotp
0019
0020 reg:
0021 maxItems: 2
0022
0023 reg-names:
0024 items:
0025 - const: hb_gpio
0026 - const: otprx
0027
0028 clocks:
0029 maxItems: 1
0030
0031 "#address-cells":
0032 const: 1
0033
0034 "#size-cells":
0035 const: 1
0036
0037 thermal-calibration:
0038 type: object
0039 description: thermal calibration values
0040
0041 disconnect-voltage:
0042 type: object
0043 description: disconnect voltages of usb2 port 0 and port 1
0044
0045 mac-address0:
0046 type: object
0047 description: MAC address of ethernet port 0
0048
0049 mac-address1:
0050 type: object
0051 description: MAC address of ethernet port 1
0052
0053 required:
0054 - compatible
0055 - reg
0056 - reg-names
0057 - clocks
0058
0059 unevaluatedProperties: false
0060
0061 examples:
0062 - |
0063 otp: otp@9c00af00 {
0064 compatible = "sunplus,sp7021-ocotp";
0065 reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
0066 reg-names = "hb_gpio", "otprx";
0067 clocks = <&clkc 0x15>;
0068
0069 #address-cells = <1>;
0070 #size-cells = <1>;
0071 therm_calib: thermal-calibration@14 {
0072 reg = <0x14 0x3>;
0073 };
0074 disc_vol: disconnect-voltage@18 {
0075 reg = <0x18 0x2>;
0076 };
0077 mac_addr0: mac-address0@34 {
0078 reg = <0x34 0x6>;
0079 };
0080 mac_addr1: mac-address1@3a {
0081 reg = <0x3a 0x6>;
0082 };
0083 };
0084 ...