From 54a714a61de6efbeba8460aa005419713e2c8430 Mon Sep 17 00:00:00 2001 From: Tom Chang Date: Fri, 27 Sep 2024 17:35:11 +0800 Subject: [PATCH] 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 --- .../flash_controller/nuvoton,npcx-fiu-nor.yaml | 14 ++++++++++++++ .../flash_controller/nuvoton,npcx-fiu-qspi.yaml | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/dts/bindings/flash_controller/nuvoton,npcx-fiu-nor.yaml b/dts/bindings/flash_controller/nuvoton,npcx-fiu-nor.yaml index 86c8e57a362..48be99535c0 100644 --- a/dts/bindings/flash_controller/nuvoton,npcx-fiu-nor.yaml +++ b/dts/bindings/flash_controller/nuvoton,npcx-fiu-nor.yaml @@ -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" diff --git a/dts/bindings/flash_controller/nuvoton,npcx-fiu-qspi.yaml b/dts/bindings/flash_controller/nuvoton,npcx-fiu-qspi.yaml index 3e8627faf23..23504268e1a 100644 --- a/dts/bindings/flash_controller/nuvoton,npcx-fiu-qspi.yaml +++ b/dts/bindings/flash_controller/nuvoton,npcx-fiu-qspi.yaml @@ -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.