2018-06-29 03:52:42 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Aurelien Jarno
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:23:21 +08:00
|
|
|
#include <st/f7/stm32f723Xe.dtsi>
|
2020-10-06 17:11:03 +08:00
|
|
|
#include <st/f7/stm32f723i(c-e)kx-pinctrl.dtsi>
|
2021-06-09 21:48:14 +08:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
2018-06-29 03:52:42 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F723E DISCOVERY board";
|
2020-09-25 20:57:24 +08:00
|
|
|
compatible = "st,stm32f723e-disco";
|
2018-06-29 03:52:42 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart6;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart6;
|
2018-06-29 03:52:42 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
blue_led: led_1 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
2018-06-29 03:52:42 +08:00
|
|
|
label = "User LD1";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
red_led: led_2 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioa 7 GPIO_ACTIVE_HIGH>;
|
2018-06-29 03:52:42 +08:00
|
|
|
label = "User LD5";
|
|
|
|
};
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led: led_3 {
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
|
2018-06-29 03:52:42 +08:00
|
|
|
label = "User LD6";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 07:25:55 +08:00
|
|
|
user_button: button {
|
2018-06-29 03:52:42 +08:00
|
|
|
label = "User";
|
2019-10-04 00:30:21 +08:00
|
|
|
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
|
2018-06-29 03:52:42 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &blue_led;
|
|
|
|
led1 = &red_led;
|
|
|
|
led2 = &green_led;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-30 21:47:39 +08:00
|
|
|
&clk_hse {
|
|
|
|
clock-frequency = <DT_FREQ_M(25)>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div-m = <25>;
|
|
|
|
mul-n = <432>;
|
|
|
|
div-p = <2>;
|
|
|
|
div-q = <9>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(216)>;
|
|
|
|
ahb-prescaler = <1>;
|
|
|
|
apb1-prescaler = <4>;
|
|
|
|
apb2-prescaler = <2>;
|
|
|
|
};
|
|
|
|
|
2018-06-29 03:52:42 +08:00
|
|
|
&usart2 {
|
2020-10-06 17:11:03 +08:00
|
|
|
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
|
2018-06-29 03:52:42 +08:00
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-06-29 03:52:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart6 {
|
2020-10-06 17:11:03 +08:00
|
|
|
pinctrl-0 = <&usart6_tx_pc6 &usart6_rx_pc7>;
|
2018-06-29 03:52:42 +08:00
|
|
|
current-speed = <115200>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-06-29 03:52:42 +08:00
|
|
|
};
|
2018-07-04 03:51:21 +08:00
|
|
|
|
2018-07-04 04:03:34 +08:00
|
|
|
&i2c1 {
|
2020-10-12 23:53:50 +08:00
|
|
|
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-07-04 04:03:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c2 {
|
2020-10-12 23:53:50 +08:00
|
|
|
pinctrl-0 = <&i2c2_scl_ph4 &i2c2_sda_ph5>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-07-04 04:03:34 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c3 {
|
2020-10-12 23:53:50 +08:00
|
|
|
pinctrl-0 = <&i2c3_scl_pa8 &i2c3_sda_ph8>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-07-04 04:03:34 +08:00
|
|
|
};
|
|
|
|
|
2018-09-14 21:11:12 +08:00
|
|
|
&spi1 {
|
2020-10-15 23:03:11 +08:00
|
|
|
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pb4 &spi1_mosi_pb5>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-09-14 21:11:12 +08:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:46:23 +08:00
|
|
|
zephyr_udc0: &usbotg_fs {
|
2020-10-21 23:49:48 +08:00
|
|
|
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-07-04 03:51:21 +08:00
|
|
|
};
|