|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 Leica Geosystems AG |
| 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,code-partition = &slot0_ns_partition; |
| 23 | + zephyr,entropy = &psa_rng; |
| 24 | + }; |
| 25 | + |
| 26 | + aliases { |
| 27 | + led0 = &blue_led_1; |
| 28 | + sw0 = &user_button; |
| 29 | + }; |
| 30 | + |
| 31 | + /* SRAM3 + SRAM5 (832 kiB + 832kiB)*/ |
| 32 | + /delete-node/ memory@20000000; |
| 33 | + sram0: memory@200d0000 { |
| 34 | + compatible = "mmio-sram"; |
| 35 | + reg = <0x200d0000 DT_SIZE_K(1664)>; |
| 36 | + }; |
| 37 | + |
| 38 | + psa_rng: psa-rng { |
| 39 | + compatible = "zephyr,psa-crypto-rng"; |
| 40 | + status = "okay"; |
| 41 | + }; |
| 42 | +}; |
| 43 | + |
| 44 | +&flash0 { |
| 45 | + partitions { |
| 46 | + compatible = "fixed-partitions"; |
| 47 | + #address-cells = <1>; |
| 48 | + #size-cells = <1>; |
| 49 | + |
| 50 | + /* |
| 51 | + * Following flash partition is compatible with requirements |
| 52 | + * given in TFM configuration given for current board. |
| 53 | + * It might require adjustment depending on evolutions on TFM. |
| 54 | + */ |
| 55 | + boot_partition: partition@0 { |
| 56 | + label = "mcuboot"; |
| 57 | + reg = <0x00000000 DT_SIZE_K(384)>; |
| 58 | + read-only; |
| 59 | + }; |
| 60 | + |
| 61 | + /* Secure image primary slot */ |
| 62 | + slot0_partition: partition@60000 { |
| 63 | + label = "image-0"; |
| 64 | + reg = <0x00060000 DT_SIZE_K(512)>; |
| 65 | + }; |
| 66 | + |
| 67 | + /* Non-secure image primary slot */ |
| 68 | + slot0_ns_partition: partition@e0000 { |
| 69 | + label = "image-0-nonsecure"; |
| 70 | + reg = <0x000e0000 DT_SIZE_K(1280)>; |
| 71 | + }; |
| 72 | + |
| 73 | + /* Secure image secondary slot */ |
| 74 | + slot1_partition: partition@220000 { |
| 75 | + label = "image-1"; |
| 76 | + reg = <0x00220000 DT_SIZE_K(512)>; |
| 77 | + }; |
| 78 | + |
| 79 | + /* Non-secure image secondary slot */ |
| 80 | + slot1_ns_partition: partition@2a0000 { |
| 81 | + label = "image-1-nonsecure"; |
| 82 | + reg = <0x002a0000 DT_SIZE_K(1280)>; |
| 83 | + }; |
| 84 | + |
| 85 | + /* Applicative Non Volatile Storage */ |
| 86 | + storage_partition: partition@3e0000 { |
| 87 | + label = "storage"; |
| 88 | + reg = <0x003e0000 DT_SIZE_K(128)>; |
| 89 | + }; |
| 90 | + }; |
| 91 | +}; |
| 92 | + |
| 93 | +&usart1 { |
| 94 | + pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; |
| 95 | + pinctrl-names = "default"; |
| 96 | + current-speed = <115200>; |
| 97 | + status = "okay"; |
| 98 | +}; |
0 commit comments