From 34571a196e967b68e368b515f384cab0646a90b5 Mon Sep 17 00:00:00 2001 From: Hisping Lin Date: Wed, 17 May 2023 10:29:18 +0800 Subject: [PATCH] dt-bindings: nvmem: add rockchip-secure-otp bindings Change-Id: Ia8b0ca44256d602b771346dd8c46f67ef3f6864f Signed-off-by: Hisping Lin --- .../bindings/nvmem/rockchip-secure-otp.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-secure-otp.yaml diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-secure-otp.yaml b/Documentation/devicetree/bindings/nvmem/rockchip-secure-otp.yaml new file mode 100644 index 000000000000..d78a348e8b13 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/rockchip-secure-otp.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/rockchip-secure-otp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip secure otp device tree bindings + +maintainers: + - Hisping + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - rockchip,secure-otp + + rockchip,otp-size: + description: + size of non-protected oem zone in secure otp, In bytes. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - rockchip,otp-size + +unevaluatedProperties: false + +examples: + - | + secure_otp: secure-otp { + compatible = "rockchip,secure-otp"; + rockchip,otp-size = <32>; + }; +...