2017-02-20 02:01:30 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2017-04-06 00:22:20 +08:00
|
|
|
#include <st/stm32f103Xb.dtsi>
|
2017-02-20 02:01:30 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Olimex OLIMEXINO-STM32 board";
|
2017-04-06 00:22:20 +08:00
|
|
|
compatible = "st,olimexino_stm32", "st,stm32f103rb";
|
2017-02-20 02:01:30 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
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 = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "LED1";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
yellow_led_2: led_2 {
|
2017-11-24 17:08:03 +08:00
|
|
|
gpios = <&gpioa 1 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "LED2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = "Key";
|
|
|
|
gpios = <&gpioc 9 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-02-20 02:01:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart1 {
|
2017-04-20 23:10:10 +08:00
|
|
|
current-speed = <115200>;
|
2017-07-25 17:04:12 +08:00
|
|
|
pinctrl-0 = <&usart1_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-02-20 02:01:30 +08:00
|
|
|
status = "ok";
|
|
|
|
};
|
2017-06-29 22:26:38 +08:00
|
|
|
|
2017-07-25 17:04:12 +08:00
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart2_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2017-08-08 00:18:53 +08:00
|
|
|
&usart3 {
|
2017-07-25 17:04:12 +08:00
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart3_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2017-06-29 22:26:38 +08:00
|
|
|
&i2c2 {
|
|
|
|
status = "ok";
|
2017-08-11 00:59:14 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2017-06-29 22:26:38 +08:00
|
|
|
};
|
2017-12-13 19:49:11 +08:00
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2018-02-25 02:03:54 +08:00
|
|
|
|
|
|
|
&spi2 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2017-10-28 19:48:48 +08:00
|
|
|
|
|
|
|
&usb {
|
|
|
|
status = "ok";
|
2018-05-10 17:39:55 +08:00
|
|
|
disconnect-gpios = <&gpioc 12 0>;
|
2017-10-28 19:48:48 +08:00
|
|
|
};
|
2018-03-01 05:20:00 +08:00
|
|
|
|
|
|
|
&timers1 {
|
|
|
|
status = "ok";
|
|
|
|
|
|
|
|
pwm {
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
};
|