boards: litex_vexriscv: Enable LiteX SPI driver

This commit enables LiteX SPI driver for litex_vexriscv board.

Signed-off-by: Daniel Craviee <dcraviee@internships.antmicro.com>
Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
This commit is contained in:
Daniel Craviee 2019-09-11 15:47:51 +02:00 committed by Maureen Helm
commit f7bfa936a1
4 changed files with 19 additions and 0 deletions

View file

@ -41,3 +41,7 @@
&dna0 {
status = "okay";
};
&spi0 {
status = "okay";
};

View file

@ -11,6 +11,8 @@ arch: riscv32
toolchain:
- zephyr
ram: 262144
supported:
- spi
testing:
ignore_tags:
- bluetooth

View file

@ -19,3 +19,5 @@ CONFIG_ETH_LITEETH_0=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_HWINFO=y
CONFIG_HWINFO_LITEX=y
CONFIG_SPI=y
CONFIG_SPI_LITESPI=y

View file

@ -44,6 +44,17 @@
label = "uart0";
status = "disabled";
};
spi0: spi@e0002000 {
compatible = "litex,spi";
interrupt-parent = <&intc0>;
interrupts = <5 0>;
reg = <0xe0002000 0x34>;
reg-names = "control";
label = "spi0";
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
timer0: serial@e0002800 {
compatible = "litex,timer0";
interrupt-parent = <&intc0>;