# Copyright (c) 2019 Laczen
# SPDX-License-Identifier: Apache-2.0

description: Zephyr Emulated EEPROM device

compatible: "zephyr,emu-eeprom"

include: eeprom-base.yaml

properties:
  size:
    required: true
  pagesize:
    type: int
    required: true
    description: Size of a page used to emulate EEPROM in flash
  partition:
    type: phandle
    required: true
    description: Flash partition used to store the emulated EEPROM data
  rambuf:
    type: boolean
    description: Enable a ram buffer of EEPROM size for improved read speed
  partition-erase:
    type: boolean
    description: |
      Delay erase until complete partition is used. This enables a
      ram buffer to allow data to be copied during the partition erase. If
      power is lost during the partition erase the data will be lost.
