On-Chip OTP Memory for Sunplus SP7021
Schema identifier ($id): "http://devicetree.org/schemas/nvmem/sunplus,sp7021-ocotp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vincent Shih <vincent.sunplus@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):nvmem.yaml#
Rule 2 #
Shared schema rule (
$ref):nvmem-deprecated-cells.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sunplus,sp7021-ocotp"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hb_gpio"
Item 2
Exact value (
const):"otprx"
clocks — required here #
Maximum number of items (maxItems): 1
thermal-calibration — not listed as required here #
Value type (type): "object"
thermal calibration values
disconnect-voltage — not listed as required here #
Value type (type): "object"
disconnect voltages of usb2 port 0 and port 1
mac-address0 — not listed as required here #
Value type (type): "object"
MAC address of ethernet port 0
mac-address1 — not listed as required here #
Value type (type): "object"
MAC address of ethernet port 1
Required in this object (required): "compatible", "reg", "reg-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
otp: otp@9c00af00 {
compatible = "sunplus,sp7021-ocotp";
reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
reg-names = "hb_gpio", "otprx";
clocks = <&clkc 0x15>;
#address-cells = <1>;
#size-cells = <1>;
therm_calib: thermal-calibration@14 {
reg = <0x14 0x3>;
};
disc_vol: disconnect-voltage@18 {
reg = <0x18 0x2>;
};
mac_addr0: mac-address0@34 {
reg = <0x34 0x6>;
};
mac_addr1: mac-address1@3a {
reg = <0x3a 0x6>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) Sunplus Co., Ltd. 2021