2017-12-05 13:26:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Linaro Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 08:23:16 -05:00
|
|
|
#include <st/f4/stm32f429Xi.dtsi>
|
2019-09-16 11:44:01 +02:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
2017-12-05 13:26:33 +01:00
|
|
|
|
|
|
|
/ {
|
2018-02-12 10:58:57 +01:00
|
|
|
model = "STMicroelectronics STM32F429ZI-NUCLEO board";
|
2020-09-25 14:57:24 +02:00
|
|
|
compatible = "st,stm32f429zi-nucleo";
|
2017-12-05 13:26:33 +01:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart3;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &usart3;
|
2017-12-05 13:26:33 +01:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2018-04-24 14:27:36 +02:00
|
|
|
zephyr,ccm = &ccm0;
|
2019-05-06 11:14:57 -07:00
|
|
|
zephyr,code-partition = &slot0_partition;
|
2017-12-05 13:26:33 +01: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 = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD1";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
blue_led_1: led_2 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD2";
|
|
|
|
};
|
2018-09-18 19:45:43 +02:00
|
|
|
red_led_1: led_3 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
label = "User LD3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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-08 10:00:32 +02:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
2017-11-24 10:08:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
led1 = &blue_led_1;
|
|
|
|
led2 = &red_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
2017-12-05 13:26:33 +01:00
|
|
|
};
|
|
|
|
|
2020-07-20 15:49:06 +02:00
|
|
|
&adc1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-19 14:48:47 +01:00
|
|
|
&i2c1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-01-19 14:48:47 +01:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
2018-04-24 14:27:36 +02:00
|
|
|
&spi1 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-04-24 14:27:36 +02:00
|
|
|
};
|
|
|
|
|
2017-12-05 13:26:33 +01:00
|
|
|
&usart3 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2017-12-05 13:26:33 +01:00
|
|
|
};
|
2018-04-24 14:27:36 +02:00
|
|
|
&usart6 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-04-24 14:27:36 +02:00
|
|
|
};
|
2018-02-28 22:20:00 +01:00
|
|
|
|
2018-09-11 14:40:52 +02:00
|
|
|
&usbotg_fs {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-09-11 14:40:52 +02:00
|
|
|
};
|
|
|
|
|
2018-09-11 14:42:23 +02: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";
|
2018-02-28 22:20:00 +01:00
|
|
|
};
|
|
|
|
};
|
2018-06-20 19:51:42 +03:00
|
|
|
|
|
|
|
&rtc {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-06-20 19:51:42 +03:00
|
|
|
};
|
2019-02-01 16:12:50 +01:00
|
|
|
|
2019-04-04 15:46:31 +08:00
|
|
|
&iwdg {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2019-02-01 16:12:50 +01:00
|
|
|
};
|
2019-05-06 11:14:57 -07:00
|
|
|
|
2020-04-03 11:58:01 +02:00
|
|
|
&rng {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-07-15 13:14:37 +02:00
|
|
|
&mac {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-05-06 11:14:57 -07:00
|
|
|
&flash0 {
|
|
|
|
/*
|
|
|
|
* For more information, see:
|
2020-09-15 10:38:53 +02:00
|
|
|
* https://docs.zephyrproject.org/latest/reference/devicetree/index.html#fixed-flash-partitions
|
2019-05-06 11:14:57 -07:00
|
|
|
*/
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/* 64KB for bootloader */
|
|
|
|
boot_partition: partition@0 {
|
|
|
|
label = "mcuboot";
|
|
|
|
reg = <0x00000000 0x00010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* storage: 64KB for settings */
|
|
|
|
storage_partition: partition@10000 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x00010000 0x00010000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* application image slot: 256KB */
|
|
|
|
slot0_partition: partition@20000 {
|
|
|
|
label = "image-0";
|
|
|
|
reg = <0x00020000 0x00040000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* backup slot: 256KB */
|
|
|
|
slot1_partition: partition@60000 {
|
|
|
|
label = "image-1";
|
|
|
|
reg = <0x00060000 0x00040000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* swap slot: 128KB */
|
|
|
|
scratch_partition: partition@a0000 {
|
|
|
|
label = "image-scratch";
|
|
|
|
reg = <0x000a0000 0x00020000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|