Makes the designware spi driver consistent with other spi drivers by selecting HAS_DTS_SPI in the driver. This required adding spi nodes and dts fixups to several arc and x86 socs, as well as enabling those nodes in associated boards. Also refactors the driver to use the base address, interrupt number, and interrupt priority from dts. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
63 lines
844 B
Text
63 lines
844 B
Text
/dts-v1/;
|
|
|
|
#include <mem.h>
|
|
|
|
#define DT_FLASH_SIZE DT_SIZE_K(144)
|
|
#define DT_SRAM_SIZE DT_SIZE_K(52)
|
|
|
|
#include "intel_curie.dtsi"
|
|
|
|
/ {
|
|
model = "Arduino 101";
|
|
compatible = "arduino,101","intel,quark";
|
|
|
|
aliases {
|
|
uart-0 = &uart0;
|
|
uart-1 = &uart1;
|
|
};
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
#ifdef CONFIG_USB_UART_CONSOLE
|
|
zephyr,console = &usb_cdc;
|
|
#else
|
|
zephyr,console = &uart1;
|
|
#endif
|
|
zephyr,bt-uart = &uart0;
|
|
zephyr,uart-pipe = &uart1;
|
|
zephyr,bt-mon-uart = &uart1;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "ok";
|
|
current-speed = <1000000>;
|
|
};
|
|
|
|
&uart1 {
|
|
status = "ok";
|
|
current-speed = <115200>;
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "ok";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "ok";
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
};
|
|
|
|
&spi0 {
|
|
status = "ok";
|
|
};
|
|
|
|
&spi1 {
|
|
status = "ok";
|
|
};
|
|
|
|
&spi2 {
|
|
status = "ok";
|
|
};
|