2020-12-14 21:47:06 +08:00
|
|
|
# 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
|
|
|
|
required: false
|
|
|
|
description: Enable a ram buffer of EEPROM size for improved read speed
|
2021-02-05 16:08:00 +08:00
|
|
|
partition-erase:
|
|
|
|
type: boolean
|
|
|
|
required: false
|
2021-06-12 06:00:04 +08:00
|
|
|
description: |
|
|
|
|
Delay erase until complete partition is used. This enables a
|
2021-02-05 16:08:00 +08:00
|
|
|
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.
|