# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: On-Chip OTP Memory for Freescale Vybrid

maintainers:
  - Frank Li <Frank.Li@nxp.com>

allOf:
  - $ref: nvmem.yaml#
  - $ref: nvmem-deprecated-cells.yaml

properties:
  compatible:
    items:
      - enum:
          - fsl,vf610-ocotp
      - const: syscon

  reg:
    maxItems: 1

  clocks:
    items:
      - description: ipg clock we associate with the OCOTP peripheral

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/vf610-clock.h>

    ocotp@400a5000 {
        compatible = "fsl,vf610-ocotp", "syscon";
        reg = <0x400a5000 0xcf0>;
        #address-cells = <1>;
        #size-cells = <1>;
        clocks = <&clks VF610_CLK_OCOTP>;
    };
