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>
|
2020-10-03 10:14:21 +02:00
|
|
|
#include <st/f1/stm32f103r(8-b)tx-pinctrl.dtsi>
|
2017-02-19 20:01:30 +02:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Olimex OLIMEXINO-STM32 board";
|
2019-05-13 11:26:17 +03:00
|
|
|
compatible = "olimex,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;
|
2020-04-28 07:33:18 -05:00
|
|
|
zephyr,can-primary = &can1;
|
2017-02-19 20:01:30 +02:00
|
|
|
};
|
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 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "LED1";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
yellow_led_2: led_2 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
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";
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioc 9 GPIO_ACTIVE_LOW>;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
2019-05-09 17:02:07 +03:00
|
|
|
led1 = &yellow_led_2;
|
2017-11-24 10:08:03 +01:00
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-02-19 20:01:30 +02:00
|
|
|
};
|
|
|
|
|
2021-05-04 10:36:37 +02:00
|
|
|
&clk_hse {
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
mul = <9>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(72)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <2>;
|
|
|
|
apb2-prescaler = <1>;
|
|
|
|
};
|
|
|
|
|
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 {
|
2020-10-06 12:00:32 +02:00
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
2017-04-20 17:10:10 +02:00
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-02-19 20:01:30 +02:00
|
|
|
};
|
2017-06-29 17:26:38 +03:00
|
|
|
|
2017-07-25 11:04:12 +02:00
|
|
|
&usart2 {
|
2020-10-06 12:00:32 +02:00
|
|
|
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
|
2017-07-25 11:04:12 +02:00
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
|
|
|
|
2017-08-07 19:18:53 +03:00
|
|
|
&usart3 {
|
2020-10-06 12:00:32 +02:00
|
|
|
pinctrl-0 = <&usart3_tx_pb10 &usart3_rx_pb11>;
|
2017-07-25 11:04:12 +02:00
|
|
|
current-speed = <115200>;
|
|
|
|
};
|
|
|
|
|
2019-07-20 20:47:08 +03:00
|
|
|
&i2c1 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
|
2019-07-20 20:47:08 +03:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
2017-06-29 17:26:38 +03:00
|
|
|
&i2c2 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c2_scl_pb10 &i2c2_sda_pb11>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
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 {
|
2020-10-15 17:03:11 +02:00
|
|
|
pinctrl-0 = <&spi1_nss_master_pa4 &spi1_sck_master_pa5
|
|
|
|
&spi1_miso_master_pa6 &spi1_mosi_master_pa7>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-12-13 13:49:11 +02:00
|
|
|
};
|
2018-02-24 20:03:54 +02:00
|
|
|
|
|
|
|
&spi2 {
|
2020-10-15 17:03:11 +02:00
|
|
|
pinctrl-0 = <&spi2_nss_master_pb12 &spi2_sck_master_pb13
|
|
|
|
&spi2_miso_master_pb14 &spi2_mosi_master_pb15>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2020-01-14 13:58:54 -06:00
|
|
|
cs-gpios = <&gpiod 2 GPIO_ACTIVE_HIGH>;
|
2018-02-24 20:08:17 +02:00
|
|
|
|
|
|
|
sdhc0: sdhc@0 {
|
|
|
|
compatible = "zephyr,mmc-spi-slot";
|
|
|
|
reg = <0>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-24 20:08:17 +02:00
|
|
|
label = "SDHC0";
|
|
|
|
spi-max-frequency = <24000000>;
|
|
|
|
};
|
2018-02-24 20:03:54 +02:00
|
|
|
};
|
2017-10-28 14:48:48 +03:00
|
|
|
|
|
|
|
&usb {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2020-01-17 19:56:16 +02:00
|
|
|
disconnect-gpios = <&gpioc 12 GPIO_ACTIVE_LOW>;
|
2020-10-21 17:49:48 +02:00
|
|
|
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
|
2017-10-28 14:48:48 +03:00
|
|
|
};
|
2018-02-28 22:20:00 +01:00
|
|
|
|
|
|
|
&timers1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-28 22:20:00 +01:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm1: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2021-06-10 10:37:48 +02:00
|
|
|
st,prescaler = <10000>;
|
2020-10-03 10:14:21 +02:00
|
|
|
pinctrl-0 = <&tim1_ch1_pwm_pa8>;
|
2018-02-28 22:20:00 +01:00
|
|
|
};
|
|
|
|
};
|
2019-05-10 11:28:28 +03:00
|
|
|
|
|
|
|
&iwdg {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2019-05-10 11:28:28 +03:00
|
|
|
};
|
2019-11-08 15:00:26 +01:00
|
|
|
|
|
|
|
&can1 {
|
2020-10-08 08:24:27 -05:00
|
|
|
pinctrl-0 = <&can_rx_pb8 &can_tx_pb9>;
|
2019-11-08 15:00:26 +01:00
|
|
|
bus-speed = <125000>;
|
|
|
|
sjw = <1>;
|
|
|
|
prop-seg = <0>;
|
|
|
|
phase-seg1 = <5>;
|
|
|
|
phase-seg2 = <6>;
|
|
|
|
status = "okay";
|
|
|
|
};
|