2017-02-19 20:01:30 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-25 19:20:22 -05:00
|
|
|
#include <st/f1/stm32f103Xb.dtsi>
|
2017-02-19 20:01:30 +02:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Olimex OLIMEXINO-STM32 board";
|
2017-04-05 11:22:20 -05:00
|
|
|
compatible = "st,olimexino_stm32", "st,stm32f103rb";
|
2017-02-19 20:01:30 +02:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &usart1;
|
2017-02-19 20:01:30 +02:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2017-11-24 10:08:03 +01:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-18 19:45:43 +02:00
|
|
|
green_led_1: led_1 {
|
2017-11-24 10:08:03 +01:00
|
|
|
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "LED1";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
yellow_led_2: led_2 {
|
2017-11-24 10:08:03 +01:00
|
|
|
gpios = <&gpioa 1 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "LED2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 01:25:55 +02:00
|
|
|
user_button: button {
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "Key";
|
|
|
|
gpios = <&gpioc 9 GPIO_INT_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-02-19 20:01:30 +02:00
|
|
|
};
|
|
|
|
|
2018-11-10 19:56:35 +02:00
|
|
|
uext_i2c: &i2c2 {};
|
|
|
|
uext_spi: &spi1 {};
|
|
|
|
uext_serial: &usart1 {};
|
|
|
|
|
2017-02-19 20:01:30 +02:00
|
|
|
&usart1 {
|
2017-04-20 17:10:10 +02:00
|
|
|
current-speed = <115200>;
|
2017-07-25 11:04:12 +02:00
|
|
|
pinctrl-0 = <&usart1_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
2017-02-19 20:01:30 +02:00
|
|
|
status = "ok";
|
|
|
|
};
|
2017-06-29 17:26:38 +03:00
|
|
|
|
2017-07-25 11:04:12 +02:00
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart2_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2017-08-07 19:18:53 +03:00
|
|
|
&usart3 {
|
2017-07-25 11:04:12 +02:00
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-0 = <&usart3_pins_a>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2017-06-29 17:26:38 +03:00
|
|
|
&i2c2 {
|
|
|
|
status = "ok";
|
2017-08-10 11:59:14 -05:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2017-06-29 17:26:38 +03:00
|
|
|
};
|
2017-12-13 13:49:11 +02:00
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "ok";
|
|
|
|
};
|
2018-02-24 20:03:54 +02:00
|
|
|
|
|
|
|
&spi2 {
|
|
|
|
status = "ok";
|
2018-02-24 20:08:17 +02:00
|
|
|
cs-gpios = <&gpiod 2 0>;
|
|
|
|
|
|
|
|
sdhc0: sdhc@0 {
|
|
|
|
compatible = "zephyr,mmc-spi-slot";
|
|
|
|
reg = <0>;
|
|
|
|
status = "ok";
|
|
|
|
label = "SDHC0";
|
|
|
|
spi-max-frequency = <24000000>;
|
|
|
|
};
|
2018-02-24 20:03:54 +02:00
|
|
|
};
|
2017-10-28 14:48:48 +03:00
|
|
|
|
|
|
|
&usb {
|
|
|
|
status = "ok";
|
2018-05-10 12:39:55 +03:00
|
|
|
disconnect-gpios = <&gpioc 12 0>;
|
2017-10-28 14:48:48 +03:00
|
|
|
};
|
2018-02-28 22:20:00 +01:00
|
|
|
|
|
|
|
&timers1 {
|
|
|
|
status = "ok";
|
|
|
|
|
|
|
|
pwm {
|
|
|
|
status = "ok";
|
|
|
|
};
|
|
|
|
};
|