2017-07-04 03:04:46 +08:00
|
|
|
/dts-v1/;
|
|
|
|
|
2018-09-15 12:21:56 +08:00
|
|
|
#include <mem.h>
|
|
|
|
|
|
|
|
#define DT_FLASH_SIZE DT_SIZE_K(32)
|
|
|
|
#define DT_SRAM_SIZE DT_SIZE_K(8)
|
2017-11-07 01:32:33 +08:00
|
|
|
|
2017-07-04 03:04:46 +08:00
|
|
|
#include "intel_quark_d2000.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "quark_d2000_crb";
|
|
|
|
compatible = "intel,quark-d2000-crb", "intel,quark-d2000";
|
|
|
|
|
|
|
|
aliases {
|
2018-10-05 08:50:49 +08:00
|
|
|
led0 = &led0;
|
|
|
|
sw0 = &button0;
|
2018-04-11 00:56:14 +08:00
|
|
|
uart-0 = &uart0;
|
|
|
|
uart-1 = &uart1;
|
2017-07-04 03:04:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2017-07-26 23:04:13 +08:00
|
|
|
zephyr,console = &uart0;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &uart0;
|
2017-07-04 03:04:46 +08:00
|
|
|
};
|
2018-10-05 08:50:49 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led0: led_0 {
|
|
|
|
gpios = <&gpio 24 0>;
|
|
|
|
label = "LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
buttons {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
button0: button_0 {
|
|
|
|
/* gpio flags need validation */
|
|
|
|
gpios = <&gpio 2 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
label = "Push button switch 0";
|
|
|
|
};
|
|
|
|
};
|
2017-07-04 03:04:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "ok";
|
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart1 {
|
|
|
|
status = "ok";
|
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
2018-02-28 22:28:17 +08:00
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
status = "ok";
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
2018-08-30 07:42:43 +08:00
|
|
|
|
|
|
|
&adc0 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2018-09-27 04:31:53 +08:00
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "ok";
|
|
|
|
};
|