|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 Nordic Semiconductor ASA |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +/dts-v1/; |
| 8 | + |
| 9 | +#define USE_NON_SECURE_ADDRESS_MAP 1 |
| 10 | + |
| 11 | +#include <nordic/nrf54l15_cpuapp.dtsi> |
| 12 | +#include "nrf54l_05_10_15_cpuapp_common.dtsi" |
| 13 | + |
| 14 | +/ { |
| 15 | + compatible = "nordic,nrf54l15dk_nrf54l15-cpuapp"; |
| 16 | + model = "Nordic nRF54L15 DK nRF54L15 Application MCU"; |
| 17 | + |
| 18 | + chosen { |
| 19 | + zephyr,code-partition = &slot0_ns_partition; |
| 20 | + zephyr,sram = &sram0_ns; |
| 21 | + zephyr,entropy = &psa_rng; |
| 22 | + }; |
| 23 | + |
| 24 | + /delete-node/ rng; |
| 25 | + |
| 26 | + psa_rng: psa-rng { |
| 27 | + status = "okay"; |
| 28 | + }; |
| 29 | +}; |
| 30 | + |
| 31 | +/ { |
| 32 | + /* |
| 33 | + * Default SRAM planning when building for nRF54L15 with ARM TrustZone-M support |
| 34 | + * - Lowest 80 kB SRAM allocated to Secure image (sram0_s). |
| 35 | + * - Upper 80 kB SRAM allocated to Non-Secure image (sram0_ns). |
| 36 | + * |
| 37 | + * nRF54L15 has 256 kB of volatile memory (SRAM) but the last 96kB are reserved for |
| 38 | + * the FLPR MCU. |
| 39 | + * This static layout needs to be the same with the upstream TF-M layout in the |
| 40 | + * header flash_layout.h of the relevant platform. Any updates in the layout |
| 41 | + * needs to happen both in the flash_layout.h and in this file at the same time. |
| 42 | + */ |
| 43 | + reserved-memory { |
| 44 | + #address-cells = <1>; |
| 45 | + #size-cells = <1>; |
| 46 | + ranges; |
| 47 | + |
| 48 | + sram0_s: image_s@20000000 { |
| 49 | + /* Secure image memory */ |
| 50 | + reg = <0x20000000 DT_SIZE_K(80)>; |
| 51 | + }; |
| 52 | + |
| 53 | + sram0_ns: image_ns@20014000 { |
| 54 | + /* Non-Secure image memory */ |
| 55 | + reg = <0x20014000 DT_SIZE_K(80)>; |
| 56 | + }; |
| 57 | + }; |
| 58 | +}; |
| 59 | + |
| 60 | +&cpuapp_rram { |
| 61 | + partitions { |
| 62 | + compatible = "fixed-partitions"; |
| 63 | + #address-cells = <1>; |
| 64 | + #size-cells = <1>; |
| 65 | + |
| 66 | + /* nRF54L15 has 1524 kB of non volatile memory (RRAM) but the |
| 67 | + * last 96kB are reserved for the FLPR MCU. |
| 68 | + * |
| 69 | + * This static layout needs to be the same with the upstream TF-M layout in the |
| 70 | + * header flash_layout.h of the relevant platform. Any updates in the layout |
| 71 | + * needs to happen both in the flash_layout.h and in this file at the same time. |
| 72 | + */ |
| 73 | + slot0_partition: partition@0 { |
| 74 | + label = "image-0"; |
| 75 | + reg = <0x0000000 DT_SIZE_K(512)>; |
| 76 | + }; |
| 77 | + |
| 78 | + tfm_ps_partition: partition@80000 { |
| 79 | + label = "tfm-ps"; |
| 80 | + reg = <0x00080000 DT_SIZE_K(16)>; |
| 81 | + }; |
| 82 | + |
| 83 | + tfm_its_partition: partition@84000 { |
| 84 | + label = "tfm-its"; |
| 85 | + reg = <0x00084000 DT_SIZE_K(16)>; |
| 86 | + }; |
| 87 | + |
| 88 | + tfm_otp_partition: partition@88000 { |
| 89 | + label = "tfm-otp"; |
| 90 | + reg = <0x00088000 DT_SIZE_K(8)>; |
| 91 | + }; |
| 92 | + |
| 93 | + slot0_ns_partition: partition@8A000 { |
| 94 | + label = "image-0-nonsecure"; |
| 95 | + reg = <0x0008A000 DT_SIZE_K(844)>; |
| 96 | + }; |
| 97 | + |
| 98 | + storage_partition: partition@15D000 { |
| 99 | + label = "storage"; |
| 100 | + reg = <0x00015D000 DT_SIZE_K(32)>; |
| 101 | + }; |
| 102 | + }; |
| 103 | +}; |
| 104 | + |
| 105 | +&uart30 { |
| 106 | + /* Disable so that TF-M can use this UART */ |
| 107 | + status = "disabled"; |
| 108 | + |
| 109 | + current-speed = <115200>; |
| 110 | + pinctrl-0 = <&uart30_default>; |
| 111 | + pinctrl-1 = <&uart30_sleep>; |
| 112 | + pinctrl-names = "default", "sleep"; |
| 113 | +}; |
0 commit comments