dts/bindings/flash_simulator: Restrict erase-value

The commit restricts erase-value to either 0xff or 0x00.
On program-erase type devices writes can only change from
erase value of bit to opposite, ease usually consists of two
operations which is programming the opposite value to every bit
of erase range and then turning back all bits to the "erase-value";
above makes it impossible to have erase value of device to be other
than 0xff or 0x00.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2024-03-04 20:28:39 +00:00 committed by Fabio Baltieri
commit a14c69a52a

View file

@ -9,6 +9,7 @@ include: base.yaml
properties: properties:
erase-value: erase-value:
type: int type: int
enum: [0xff, 0x00]
description: Value of erased flash cell description: Value of erased flash cell
memory-region: memory-region:
type: phandle type: phandle