dts: flash: Add support for flash labels

Added a label for soc-nv-flash nodes.  Made some updates to the
generation to maintain creating defines for properties like
erase-block-size and write-block-size so they we get both
FLASH_ERASE_BLOCK_SIZE and FLASH_${LABEL}_ERASE_BLOCK_SIZE (same for
WRITE_BLOCK_SIZE).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-01-18 13:31:54 -06:00 committed by Kumar Gala
commit 8a6381d8e8
2 changed files with 13 additions and 0 deletions

View file

@ -13,6 +13,12 @@ properties:
description: compatible strings
constraint: "soc-nv-flash"
label:
type: string
category: optional
description: Human readable string describing the device (used by Zephyr for API name)
generation: define
erase-block-size:
type: int
description: address alignment required by flash erase operations