dts: flash: npcx: add property for SPI device size

This commit adds two properties. One is used to set size of the low
flash device and the other is used to select the low flash device. Then,
the eSPI TAF request can access between two flash devices base on this
setting.

Signed-off-by: Tom Chang <CHChang19@nuvoton.com>
This commit is contained in:
Tom Chang 2024-09-27 17:35:11 +08:00 committed by Benjamin Cabé
commit 54a714a61d
2 changed files with 18 additions and 0 deletions

View file

@ -47,3 +47,17 @@ properties:
- "NPCX_RD_MODE_NORMAL" # Direct read access by command code 03h
- "NPCX_RD_MODE_FAST" # Direct read access by command code 0bh
- "NPCX_RD_MODE_FAST_DUAL" # Direct read access by command code bbh
spi-dev-size:
type: string
description: |
Select the size of the address space allocated for SPI device. This affects
the address space for any direct flash access.
enum:
- "NPCX_SPI_DEV_SIZE_1M"
- "NPCX_SPI_DEV_SIZE_2M"
- "NPCX_SPI_DEV_SIZE_4M"
- "NPCX_SPI_DEV_SIZE_8M"
- "NPCX_SPI_DEV_SIZE_16M"
- "NPCX_SPI_DEV_SIZE_32M"
- "NPCX_SPI_DEV_SIZE_64M"
- "NPCX_SPI_DEV_SIZE_128M"

View file

@ -38,3 +38,7 @@ properties:
type: boolean
description: |
Two external SPI devices are supported for Direct Read Access (DRA) on QSPI bus.
flash-dev-inv:
type: boolean
description: |
Inverse the device connected to the base address.