drivers: spi: npcx: add SPI support to access the SPI flash

The FIU/UMA module in the NPCX chip provides an dedicated SPI interface
to access the SPI flash. This commit adds the driver support for it.
With this commit, the application can call the flash APIs
(via spi_nor.c) to access the internal flash of NPCX EC chips.

Signed-off-by: Jun Lin <CHLin56@nuvoton.com>
Change-Id: I32bbf09f6e014b728ff8e4692e48151ae759e188
This commit is contained in:
Jun Lin 2021-10-13 14:17:02 +08:00 committed by Anas Nashif
commit 5d72417df4
15 changed files with 402 additions and 0 deletions

View file

@ -559,6 +559,16 @@
status = "disabled";
};
};
/* Dedicated SPI interface to access SPI flashes */
spi_fiu0: spi@40020000 {
compatible = "nuvoton,npcx-spi-fiu";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40020000 0x2000>;
clocks = <&pcc NPCX_CLOCK_BUS_APB3 NPCX_PWDWN_CTL1 2>;
label = "SPI_FIU";
};
};
soc-if {