2020-02-28 04:44:47 -08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Teslabs Engineering S.L.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/h7/stm32h743Xi.dtsi>
|
2020-10-01 18:50:52 +02:00
|
|
|
#include <st/h7/stm32h743zitx-pinctrl.dtsi>
|
2020-02-28 04:44:47 -08:00
|
|
|
#include "arduino_r3_connector.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STMicroelectronics STM32H743ZI-NUCLEO board";
|
2020-09-25 14:57:24 +02:00
|
|
|
compatible = "st,stm32h743zi-nucleo";
|
2020-02-28 04:44:47 -08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart3;
|
|
|
|
zephyr,shell-uart = &usart3;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
zephyr,dtcm = &dtcm;
|
2020-12-04 16:34:10 +01:00
|
|
|
zephyr,code-partition = &slot0_partition;
|
2021-12-28 17:48:13 -08:00
|
|
|
zephyr,canbus = &can1;
|
2020-02-28 04:44:47 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
green_led: led_0 {
|
|
|
|
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
label = "User LD1";
|
|
|
|
};
|
2021-01-06 10:12:57 +01:00
|
|
|
yellow_led: led_1 {
|
|
|
|
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
|
2020-02-28 04:44:47 -08:00
|
|
|
label = "User LD2";
|
|
|
|
};
|
2020-03-07 18:00:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pwmleds {
|
|
|
|
compatible = "pwm-leds";
|
|
|
|
|
|
|
|
red_pwm_led: red_pwm_led {
|
2022-04-06 10:22:59 +02:00
|
|
|
pwms = <&pwm12 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
|
2020-02-28 04:44:47 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button_0 {
|
|
|
|
label = "User";
|
|
|
|
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &green_led;
|
2021-01-06 10:12:57 +01:00
|
|
|
led1 = &yellow_led;
|
2020-03-07 18:00:29 +01:00
|
|
|
pwm-led0 = &red_pwm_led;
|
2020-02-28 04:44:47 -08:00
|
|
|
sw0 = &user_button;
|
2022-07-19 10:33:14 +02:00
|
|
|
watchdog0 = &iwdg;
|
2020-02-28 04:44:47 -08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-09-07 09:13:35 +02:00
|
|
|
&clk_lsi {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2022-11-24 13:58:31 +01:00
|
|
|
&clk_hsi48 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-05-03 15:19:46 +02:00
|
|
|
&clk_hse {
|
|
|
|
hse-bypass;
|
|
|
|
clock-frequency = <DT_FREQ_M(8)>; /* STLink 8MHz clock */
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pll {
|
|
|
|
div-m = <1>;
|
|
|
|
mul-n = <24>;
|
|
|
|
div-p = <2>;
|
|
|
|
div-q = <4>;
|
|
|
|
div-r = <2>;
|
|
|
|
clocks = <&clk_hse>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcc {
|
|
|
|
clocks = <&pll>;
|
|
|
|
clock-frequency = <DT_FREQ_M(96)>;
|
|
|
|
d1cpre = <1>;
|
|
|
|
hpre = <1>;
|
|
|
|
d1ppre = <1>;
|
|
|
|
d2ppre1 = <1>;
|
|
|
|
d2ppre2 = <1>;
|
|
|
|
d3ppre = <1>;
|
|
|
|
};
|
|
|
|
|
2020-02-28 04:44:47 -08:00
|
|
|
&usart3 {
|
2020-10-01 18:50:52 +02:00
|
|
|
pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
|
2021-09-07 16:38:13 +02:00
|
|
|
pinctrl-names = "default";
|
2020-02-28 04:44:47 -08:00
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
2020-03-06 05:43:09 -08:00
|
|
|
|
2021-08-05 15:46:23 +02:00
|
|
|
zephyr_udc0: &usbotg_fs {
|
2021-03-24 11:47:21 -07:00
|
|
|
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
|
2021-11-08 13:52:59 +01:00
|
|
|
pinctrl-names = "default";
|
2021-03-24 11:47:21 -07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-03-06 05:43:09 -08:00
|
|
|
&rtc {
|
2022-09-07 09:13:35 +02:00
|
|
|
clocks = <&rcc STM32_CLOCK_BUS_APB4 0x00010000>,
|
|
|
|
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
|
2020-03-06 05:43:09 -08:00
|
|
|
status = "okay";
|
|
|
|
};
|
2020-03-06 17:36:52 +01: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";
|
2020-03-06 17:36:52 +01:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
|
|
|
};
|
2020-03-07 18:00:29 +01:00
|
|
|
|
|
|
|
&timers12 {
|
2021-10-20 19:47:14 +02:00
|
|
|
st,prescaler = <10000>;
|
2020-03-07 18:00:29 +01:00
|
|
|
status = "okay";
|
|
|
|
|
2020-05-01 16:13:37 +02:00
|
|
|
pwm12: pwm {
|
2020-03-07 18:00:29 +01:00
|
|
|
status = "okay";
|
2020-11-02 17:40:50 +01:00
|
|
|
pinctrl-0 = <&tim12_ch1_pb14>;
|
2021-11-08 11:48:51 +01:00
|
|
|
pinctrl-names = "default";
|
2020-03-07 18:00:29 +01:00
|
|
|
};
|
|
|
|
};
|
2020-04-28 16:39:51 +02:00
|
|
|
|
2020-10-12 08:10:50 +02:00
|
|
|
&adc1 {
|
|
|
|
pinctrl-0 = <&adc1_inp15_pa3>;
|
2021-11-05 15:14:51 +01:00
|
|
|
pinctrl-names = "default";
|
2020-04-28 16:39:51 +02:00
|
|
|
status = "okay";
|
|
|
|
};
|
2020-08-26 14:44:32 +02:00
|
|
|
|
2022-05-17 17:34:30 +02:00
|
|
|
&die_temp {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&adc3 {
|
|
|
|
pinctrl-0 = <&adc3_inp5_pf3>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2022-03-07 10:27:29 +01:00
|
|
|
&dac1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&dac1_out1_pa4>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2020-08-26 14:44:32 +02:00
|
|
|
&rng {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2020-10-30 13:04:58 +01:00
|
|
|
|
2021-12-28 17:48:13 -08:00
|
|
|
&can1 {
|
|
|
|
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
bus-speed = <125000>;
|
|
|
|
bus-speed-data = <1000000>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-10-30 13:04:58 +01:00
|
|
|
/*
|
|
|
|
* WARNING:
|
|
|
|
* Possible pin conflicts:
|
|
|
|
* The pins PA2 and PB13 may conflict on selection of ETH_STM32_HAL,
|
|
|
|
* since they are used in ST Zio or ST morpho connectors.
|
|
|
|
* To avoid conflicting states the jumpers JP6 and JP7
|
|
|
|
* must be in ON state.
|
|
|
|
*/
|
|
|
|
&mac {
|
|
|
|
status = "okay";
|
|
|
|
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-10-30 13:04:58 +01:00
|
|
|
};
|
2020-07-31 16:53:21 +08:00
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
|
2021-11-08 12:23:47 +01:00
|
|
|
pinctrl-names = "default";
|
2021-06-17 14:20:23 +02:00
|
|
|
cs-gpios = <&gpiod 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
2020-07-31 16:53:21 +08:00
|
|
|
};
|
2020-12-04 16:34:10 +01:00
|
|
|
|
2021-01-27 13:26:55 +01:00
|
|
|
&backup_sram {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-12-04 16:34:10 +01:00
|
|
|
&flash0 {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/* 128KB for bootloader */
|
|
|
|
boot_partition: partition@0 {
|
|
|
|
label = "mcuboot";
|
2022-05-06 14:54:51 +02:00
|
|
|
reg = <0x00000000 DT_SIZE_K(128)>;
|
2020-12-04 16:34:10 +01:00
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* storage: 128KB for settings */
|
|
|
|
storage_partition: partition@20000 {
|
|
|
|
label = "storage";
|
2022-05-06 14:54:51 +02:00
|
|
|
reg = <0x00020000 DT_SIZE_K(128)>;
|
2020-12-04 16:34:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* application image slot: 256KB */
|
|
|
|
slot0_partition: partition@40000 {
|
|
|
|
label = "image-0";
|
2022-05-06 14:54:51 +02:00
|
|
|
reg = <0x00040000 DT_SIZE_K(256)>;
|
2020-12-04 16:34:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* backup slot: 256KB */
|
|
|
|
slot1_partition: partition@80000 {
|
|
|
|
label = "image-1";
|
2022-05-06 14:54:51 +02:00
|
|
|
reg = <0x00080000 DT_SIZE_K(256)>;
|
2020-12-04 16:34:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* swap slot: 128KB */
|
|
|
|
scratch_partition: partition@c0000 {
|
|
|
|
label = "image-scratch";
|
2022-05-06 14:54:51 +02:00
|
|
|
reg = <0x000c0000 DT_SIZE_K(128)>;
|
2020-12-04 16:34:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
2021-01-27 14:30:07 +08:00
|
|
|
|
|
|
|
&iwdg1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|