2017-04-05 15:32:49 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:23:16 +08:00
|
|
|
#include <st/f4/stm32f401Xe.dtsi>
|
2019-10-10 21:05:13 +08:00
|
|
|
#include "96b_lscon.dtsi"
|
2017-04-05 15:32:49 +08:00
|
|
|
|
|
|
|
/ {
|
2017-05-26 15:00:20 +08:00
|
|
|
model = "Seeed Studio Carbon 96boards";
|
|
|
|
compatible = "seeed,carbon", "st,stm32f401";
|
2017-04-05 15:32:49 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart1;
|
2017-04-05 15:32:49 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2018-11-15 23:36:41 +08:00
|
|
|
zephyr,code-partition = &slot0_partition;
|
2017-04-05 15:32:49 +08:00
|
|
|
};
|
2017-11-24 17:08:03 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_1: led_1 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpiod 2 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "USR1 LED";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_2: led_2 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpioa 15 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "USR2 LED";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
bt_blue_led: led_3 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpioa 15 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "BT LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 07:25:55 +08:00
|
|
|
user_button: button {
|
2017-11-24 17:08:03 +08:00
|
|
|
label = "User";
|
|
|
|
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
led1 = &green_led_2;
|
|
|
|
led2 = &bt_blue_led;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-04-05 15:32:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart1 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2017-04-05 15:32:49 +08:00
|
|
|
};
|
2017-04-06 00:21:10 +08:00
|
|
|
|
|
|
|
&usart2 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2017-04-06 00:21:10 +08:00
|
|
|
};
|
2017-06-29 22:26:38 +08:00
|
|
|
|
2018-03-05 17:11:35 +08:00
|
|
|
&usart6 {
|
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-03-05 17:11:35 +08:00
|
|
|
};
|
|
|
|
|
2017-06-29 22:26:38 +08:00
|
|
|
&i2c1 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2017-08-11 00:59:14 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2017-06-29 22:26:38 +08:00
|
|
|
};
|
2017-07-12 21:55:46 +08:00
|
|
|
|
2017-08-24 01:40:52 +08:00
|
|
|
&i2c2 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2017-08-24 01:40:52 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
2018-01-06 02:22:50 +08:00
|
|
|
&spi1 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-01-14 22:37:49 +08:00
|
|
|
|
|
|
|
/* Nordic nRF51822-QFAC */
|
2019-01-30 22:17:06 +08:00
|
|
|
bt-hci@0 {
|
2018-01-14 22:37:49 +08:00
|
|
|
compatible = "zephyr,bt-hci-spi";
|
|
|
|
reg = <0>;
|
2018-05-15 16:16:13 +08:00
|
|
|
reset-gpios = <&gpiob 4 0>;
|
|
|
|
irq-gpios = <&gpiob 1 0>;
|
2018-01-14 22:37:49 +08:00
|
|
|
spi-max-frequency = <2000000>;
|
|
|
|
label = "BT_HCI";
|
|
|
|
};
|
2018-01-06 02:22:50 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi2 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-01-06 02:22:50 +08:00
|
|
|
};
|
|
|
|
|
2017-10-16 20:42:39 +08:00
|
|
|
&usbotg_fs {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2017-10-16 20:42:39 +08:00
|
|
|
};
|
|
|
|
|
2017-07-12 21:55:46 +08:00
|
|
|
&flash0 {
|
|
|
|
/*
|
2018-02-22 03:57:18 +08:00
|
|
|
* For more information, see:
|
2019-02-03 08:18:07 +08:00
|
|
|
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
|
2017-07-12 21:55:46 +08:00
|
|
|
*/
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
boot_partition: partition@0 {
|
|
|
|
label = "mcuboot";
|
|
|
|
reg = <0x00000000 0x00008000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The flash starting at offset 0x00008000 and ending at
|
|
|
|
* offset 0x0001ffff (sectors 2 through 4) is reserved for
|
|
|
|
* use by the application.
|
|
|
|
*/
|
|
|
|
|
|
|
|
slot0_partition: partition@20000 {
|
|
|
|
label = "image-0";
|
|
|
|
reg = <0x00020000 0x00020000>;
|
|
|
|
};
|
|
|
|
slot1_partition: partition@40000 {
|
|
|
|
label = "image-1";
|
|
|
|
reg = <0x00040000 0x00020000>;
|
|
|
|
};
|
|
|
|
scratch_partition: partition@60000 {
|
|
|
|
label = "image-scratch";
|
|
|
|
reg = <0x00060000 0x00020000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2018-06-21 00:51:42 +08:00
|
|
|
|
|
|
|
&rtc {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-06-21 00:51:42 +08:00
|
|
|
};
|