diff --git a/dts/lagarto_ox.dts b/dts/lagarto_ox.dts index 48a2442..1c0ea21 100644 --- a/dts/lagarto_ox.dts +++ b/dts/lagarto_ox.dts @@ -267,5 +267,31 @@ // xlnx,count-width = <0x20>; // xlnx,one-timer-only = <0x0>; //}; + + + #ifdef ENABLE_SPI + uart16750: serial@40005000 { + compatible = "ns16750"; + reg = <0x00000000 0x40005000 0x00000000 0x00001000>; + interrupt-parent = <&PLIC>; + interrupts = <5>; + clock-frequency = ; + current-speed = <0x0001c200>; + status = "okay"; + }; + spi0: spi@40007000 { + compatible = "ti,keystone-spi"; + reg = <0x00000000 0x40007000 0x00000000 0x00001000>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-parent = <&PLIC>; + interrupt-names = "intvec0", "intvec1"; + interrupts = <6 0>, <0x00000007 0>; + ti,davinci-spi-intr-line = <0>; + spi-max-frequency = <24000000>; + loopback-mode = <1>; + status = "okay"; + }; + #endif }; }; diff --git a/dts/lagarto_ox.h b/dts/lagarto_ox.h index 1d5df29..9e83bb0 100644 --- a/dts/lagarto_ox.h +++ b/dts/lagarto_ox.h @@ -16,3 +16,6 @@ #define PLIC_ADDR 0x40800000 #define UART_ADDR 0x40001000 + +/* Toggles */ +#define ENABLE_SPI