2018-11-01 15:27:12 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 AJ Palmer
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f7/stm32f756Xg.dtsi>
|
2020-10-03 10:02:01 +02:00
|
|
|
#include <st/f7/stm32f756zgtx-pinctrl.dtsi>
|
2019-10-07 11:41:41 +02:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
2023-08-03 10:52:22 +00:00
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
2018-11-01 15:27:12 +00:00
|
|
|
|
2020-10-15 23:13:49 +02:00
|
|
|
/*
|
|
|
|
* WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL.
|
|
|
|
* If you require both peripherals, and you do not need Arduino Uno v3
|
2022-02-24 12:00:55 +00:00
|
|
|
* compatibility, the pin PB5 (also on ST Zio connector) can be used
|
2020-10-15 23:13:49 +02:00
|
|
|
* for the SPI_1 MOSI signal.
|
|
|
|
*/
|
|
|
|
|
2018-11-01 15:27:12 +00:00
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32F756ZG-NUCLEO board";
|
2020-09-25 14:57:24 +02:00
|
|
|
compatible = "st,stm32f756zg-nucleo";
|
2018-11-01 15:27:12 +00:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart3;
|
|
|
|
zephyr,shell-uart = &usart3;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
2023-07-03 21:23:27 +02:00
|
|
|
zephyr,code-partition = &slot0_partition;
|
2019-06-27 14:45:47 +02:00
|
|
|
zephyr,dtcm = &dtcm;
|
2018-11-01 15:27:12 +00:00
|
|
|
};
|
|
|
|
|
2023-08-03 19:19:00 +02:00
|
|
|
leds: leds {
|
2018-11-01 15:27:12 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
green_led: led_0 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
2018-11-01 15:27:12 +00:00
|
|
|
label = "User LD1";
|
|
|
|
};
|
|
|
|
blue_led: led_1 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
|
2018-11-01 15:27:12 +00:00
|
|
|
label = "User LD2";
|
|
|
|
};
|
|
|
|
red_led: led_2 {
|
2019-10-03 18:30:21 +02:00
|
|
|
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
|
2018-11-01 15:27:12 +00:00
|
|
|
label = "User LD3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button_0 {
|
|
|
|
label = "User";
|
2019-10-08 10:00:32 +02:00
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
2023-08-03 10:52:22 +00:00
|
|
|
zephyr,code = <INPUT_KEY_0>;
|
2018-11-01 15:27:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led;
|
|
|
|
led1 = &blue_led;
|
|
|
|
led2 = &red_led;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-29 09:27:06 +02:00
|
|
|
&clk_hse {
|
|
|
|
hse-bypass;
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div-m = <4>;
|
2023-01-10 15:14:01 +01:00
|
|
|
mul-n = <216>;
|
2021-04-29 09:27:06 +02:00
|
|
|
div-p = <2>;
|
2023-01-10 15:14:01 +01:00
|
|
|
div-q = <9>;
|
2021-04-29 09:27:06 +02:00
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
2023-01-10 15:14:01 +01:00
|
|
|
clock-frequency = <DT_FREQ_M(216)>;
|
2021-04-29 09:27:06 +02:00
|
|
|
ahb-prescaler = <1>;
|
2023-01-10 15:14:01 +01:00
|
|
|
apb1-prescaler = <4>;
|
|
|
|
apb2-prescaler = <2>;
|
2021-04-29 09:27:06 +02:00
|
|
|
};
|
|
|
|
|
2018-11-01 15:27:12 +00:00
|
|
|
&usart2 {
|
2020-10-07 14:26:21 +02:00
|
|
|
pinctrl-0 = <&usart2_tx_pd5 &usart2_rx_pd6
|
|
|
|
&usart2_rts_pd4 &usart2_cts_pd3>;
|
2021-09-07 16:38:13 +02:00
|
|
|
pinctrl-names = "default";
|
2018-11-01 15:27:12 +00:00
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-01 15:27:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart3 {
|
2020-10-07 14:26:21 +02:00
|
|
|
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
|
2021-09-07 16:38:13 +02:00
|
|
|
pinctrl-names = "default";
|
2018-11-01 15:27:12 +00:00
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-01 15:27:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&usart6 {
|
2020-10-07 14:26:21 +02:00
|
|
|
pinctrl-0 = <&usart6_tx_pg14 &usart6_rx_pg9>;
|
2021-09-07 16:38:13 +02:00
|
|
|
pinctrl-names = "default";
|
2018-11-01 15:27:12 +00:00
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-01 15:27:12 +00:00
|
|
|
};
|
2018-11-02 09:34:28 +00:00
|
|
|
|
2021-08-05 15:46:23 +02:00
|
|
|
zephyr_udc0: &usbotg_fs {
|
2020-10-21 17:49:48 +02:00
|
|
|
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
|
2021-11-08 13:52:59 +01:00
|
|
|
pinctrl-names = "default";
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-02 09:34:28 +00:00
|
|
|
};
|
2018-11-02 09:34:44 +00:00
|
|
|
|
|
|
|
&i2c1 {
|
2020-10-12 17:53:50 +02:00
|
|
|
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
|
2021-11-08 10:59:17 +01:00
|
|
|
pinctrl-names = "default";
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-02 09:34:44 +00:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
2018-11-02 09:36:11 +00:00
|
|
|
|
|
|
|
&timers1 {
|
2021-10-20 19:47:14 +02:00
|
|
|
st,prescaler = <10000>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-02 09:36:11 +00:00
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm1: pwm {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2020-11-02 17:40:50 +01:00
|
|
|
pinctrl-0 = <&tim1_ch3_pe13>;
|
2021-11-08 11:48:51 +01:00
|
|
|
pinctrl-names = "default";
|
2018-11-02 09:36:11 +00:00
|
|
|
};
|
|
|
|
};
|
2018-11-02 09:36:38 +00:00
|
|
|
|
|
|
|
&spi1 {
|
2021-06-17 13:52:08 +02:00
|
|
|
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>;
|
2021-11-08 12:23:47 +01:00
|
|
|
pinctrl-names = "default";
|
2021-06-17 13:52:08 +02:00
|
|
|
cs-gpios = <&gpiod 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-11-02 09:36:38 +00:00
|
|
|
};
|
2020-07-15 13:14:37 +02:00
|
|
|
|
|
|
|
&mac {
|
|
|
|
status = "okay";
|
2020-10-15 23:13:49 +02:00
|
|
|
pinctrl-0 = <ð_mdc_pc1
|
|
|
|
ð_rxd0_pc4
|
|
|
|
ð_rxd1_pc5
|
|
|
|
ð_ref_clk_pa1
|
|
|
|
ð_mdio_pa2
|
|
|
|
ð_crs_dv_pa7
|
|
|
|
ð_tx_en_pg11
|
|
|
|
ð_txd0_pg13
|
|
|
|
ð_txd1_pb13>;
|
2021-11-05 16:43:42 +01:00
|
|
|
pinctrl-names = "default";
|
2020-07-15 13:14:37 +02:00
|
|
|
};
|
2023-07-03 21:23:27 +02:00
|
|
|
|
|
|
|
&flash0 {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 256KB for bootloader. This is too large but
|
|
|
|
* there is no way to make the part smaller.
|
|
|
|
*/
|
|
|
|
boot_partition: partition@0 {
|
|
|
|
label = "mcuboot";
|
|
|
|
reg = <0x00000000 DT_SIZE_K(256)>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* application image slot: 256KB */
|
|
|
|
slot0_partition: partition@40000 {
|
|
|
|
label = "image-0";
|
|
|
|
reg = <0x00040000 DT_SIZE_K(256)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* backup slot: 256KB */
|
|
|
|
slot1_partition: partition@80000 {
|
|
|
|
label = "image-1";
|
|
|
|
reg = <0x00080000 DT_SIZE_K(256)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* scratch slot: 256KB */
|
|
|
|
scratch_partition: partition@C0000 {
|
|
|
|
label = "image-scratch";
|
|
|
|
reg = <0x000C0000 DT_SIZE_K(256)>;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|