2017-06-21 20:57:25 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 I-SENSE group of ICCS
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 15:23:09 +02:00
|
|
|
#include <st/f3/stm32f303Xc.dtsi>
|
2017-06-21 20:57:25 +02:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F3DISCOVERY board";
|
|
|
|
compatible = "st,stm32f3discovery", "st,stm32f303";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &usart1;
|
2017-06-21 20:57:25 +02:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2020-04-28 14:33:18 +02:00
|
|
|
zephyr,can-primary = &can1;
|
2017-06-21 20:57:25 +02:00
|
|
|
};
|
2017-11-24 10:08:03 +01:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-18 19:45:43 +02:00
|
|
|
red_led_3: led_3 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 9 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD3";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
blue_led_4: led_4 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 8 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD4";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
orange_led_5: led_5 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 10 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD5";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
green_led_6: led_6 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 15 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD6";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
green_led_7: led_7 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD7";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
orange_led_8: led_8 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 14 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD8";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
blue_led_9: led_9 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD9";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
red_led_10: led_10 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioe 13 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD10";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = "User";
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_6;
|
2018-12-21 11:43:08 +01:00
|
|
|
led1 = &green_led_7;
|
2017-11-24 10:08:03 +01:00
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-06-21 20:57:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart1 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-06-21 20:57:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart2 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-06-21 20:57:25 +02:00
|
|
|
};
|
2017-07-25 18:59:23 +02:00
|
|
|
|
|
|
|
&i2c1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-07-25 18:59:23 +02:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2018-03-03 15:56:52 +01:00
|
|
|
|
|
|
|
lsm303dlhc-magn@1e {
|
|
|
|
compatible = "st,lsm303dlhc-magn";
|
|
|
|
reg = <0x1e>;
|
|
|
|
label = "LSM303DLHC-MAGN";
|
|
|
|
};
|
|
|
|
|
|
|
|
lsm303dlhc-accel@19 {
|
2019-01-15 16:20:52 +01:00
|
|
|
compatible = "st,lis2dh", "st,lsm303dlhc-accel";
|
2018-03-03 15:56:52 +01:00
|
|
|
reg = <0x19>;
|
2020-01-22 20:31:27 +01:00
|
|
|
irq-gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>,
|
|
|
|
<&gpioe 5 GPIO_ACTIVE_HIGH>;
|
2018-03-03 15:56:52 +01:00
|
|
|
label = "LSM303DLHC-ACCEL";
|
|
|
|
};
|
2017-07-25 18:59:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-07-25 18:59:23 +02:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
2018-02-03 16:40:16 +01:00
|
|
|
|
|
|
|
&spi1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-03 16:40:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
&spi2 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-03 16:40:16 +01:00
|
|
|
};
|
2017-09-07 09:28:15 +02:00
|
|
|
|
|
|
|
&usb {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-09-07 09:28:15 +02:00
|
|
|
};
|
2018-08-17 19:13:16 +02:00
|
|
|
|
|
|
|
&rtc {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-08-17 19:13:16 +02:00
|
|
|
};
|
2019-02-14 11:54:27 +01:00
|
|
|
|
2020-01-24 09:32:49 +01:00
|
|
|
&can1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-02-14 11:54:27 +01:00
|
|
|
&flash0 {
|
|
|
|
/*
|
|
|
|
* For more information, see:
|
|
|
|
* http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
|
|
|
|
*/
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/* Set 6Kb of storage at the end of the 256Kb of flash */
|
|
|
|
storage_partition: partition@3e800 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x0003e800 0x00001800>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2020-06-23 15:50:09 +02:00
|
|
|
|
|
|
|
&iwdg {
|
|
|
|
status = "okay";
|
|
|
|
};
|