drivers: fpga: separate drivers of iCE40 for SPI and GPIO bitbang

Separate the current driver for the FPGA iCE40 into two different ones.
One implements only the SPI load mode, the other one only the GPIO
bitbang mode.

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
This commit is contained in:
Benedikt Schmidt 2024-11-26 08:29:36 +01:00 committed by Fabio Baltieri
commit 760210f39d
12 changed files with 810 additions and 720 deletions

View file

@ -8,12 +8,11 @@
test_spi_fpga_ice40_gpio: ice40@0 {
status = "okay";
compatible = "lattice,ice40-fpga";
compatible = "lattice,ice40-fpga-bitbang";
reg = <0>;
spi-max-frequency = <1000000>;
load-mode-bitbang;
cdone-gpios = <&test_gpio 0 0>;
creset-gpios = <&test_gpio 0 0>;
clk-gpios = <&test_gpio 0 0>;