2018-05-29 00:38:26 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Yurii Hamann
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-27 21:23:21 +08:00
|
|
|
#include <st/f7/stm32f746Xg.dtsi>
|
2018-05-29 00:38:26 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F746G DISCOVERY board";
|
|
|
|
compatible = "st,stm32f746g-disco", "st,stm32f746";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &usart1;
|
2018-05-29 00:38:26 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2019-06-27 20:45:47 +08:00
|
|
|
zephyr,dtcm = &dtcm;
|
2018-05-29 00:38:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
2018-09-19 01:45:43 +08:00
|
|
|
green_led_1: led_1 {
|
2018-05-29 00:38:26 +08:00
|
|
|
gpios = <&gpioi 1 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
label = "User LD1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
2018-09-21 07:25:55 +08:00
|
|
|
user_button: button {
|
2018-05-29 00:38:26 +08:00
|
|
|
label = "User";
|
|
|
|
gpios = <&gpioi 11 GPIO_INT_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led_1;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-10-17 04:26:47 +08:00
|
|
|
arduino_i2c: &i2c1 {};
|
|
|
|
arduino_spi: &spi2 {};
|
|
|
|
arduino_serial: &usart6 {};
|
|
|
|
|
|
|
|
&i2c1 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi2 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
};
|
|
|
|
|
2018-05-29 00:38:26 +08:00
|
|
|
&usart1 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-names = "default";
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-05-29 00:38:26 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart6 {
|
|
|
|
current-speed = <115200>;
|
|
|
|
pinctrl-names = "default";
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-05-29 00:38:26 +08:00
|
|
|
};
|
2018-10-17 04:26:47 +08:00
|
|
|
|
|
|
|
&usbotg_fs {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&timers1 {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
|
|
|
|
pwm {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&rtc {
|
2019-06-15 01:31:16 +08:00
|
|
|
status = "okay";
|
2018-10-17 04:26:47 +08:00
|
|
|
};
|