1/*
2 * Copyright (c) 2023 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "nucleo_u5a5zj_q-common.dtsi"
9
10/ {
11	model = "STMicroelectronics STM32U5A5ZJ-NUCLEO-Q board";
12	compatible = "st,stm32u5a5zj-nucleo-q";
13
14	#address-cells = <1>;
15	#size-cells = <1>;
16
17	chosen {
18		zephyr,console = &usart1;
19		zephyr,shell-uart = &usart1;
20		zephyr,sram = &sram0;
21		zephyr,flash = &flash0;
22		zephyr,canbus = &fdcan1;
23		zephyr,code-partition = &slot0_partition;
24	};
25
26	aliases {
27		led0 = &blue_led_1;
28		sw0 = &user_button;
29		pwm-led0 = &pwm_led_1;
30		pwm-led1 = &pwm_led_2;
31		watchdog0 = &iwdg;
32		volt-sensor0 = &vref1;
33		volt-sensor1 = &vbat4;
34	};
35};
36
37&flash0 {
38	partitions {
39		compatible = "fixed-partitions";
40		#address-cells = <1>;
41		#size-cells = <1>;
42
43		/*
44		 * Following flash partition is dedicated to the use of nucleo_u5a5zj_q
45		 * with TZEN=0 (so w/o TFM).
46		 */
47		boot_partition: partition@0 {
48			label = "mcuboot";
49			reg = <0x00000000 DT_SIZE_K(64)>;
50		};
51		slot0_partition: partition@10000 {
52			label = "image-0";
53			reg = <0x00010000 DT_SIZE_K(1952)>;
54		};
55		slot1_partition: partition@1f8000 {
56			label = "image-1";
57			reg = <0x001f8000 DT_SIZE_K(1960)>;
58		};
59		storage_partition: partition@3e2000 {
60			label = "storage";
61			reg = <0x003e2000 DT_SIZE_K(120)>;
62		};
63
64	};
65};
66
67&usart1 {
68	pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
69	pinctrl-names = "default";
70	current-speed = <115200>;
71	status = "okay";
72};
73
74&gpdma1 {
75	status = "okay";
76};
77
78zephyr_udc0: &usbotg_hs {
79	pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
80	pinctrl-names = "default";
81	status = "okay";
82};
83