1/* 2 * Copyright (c) 2018-2020 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Default Flash planning for nRF9160dk_nrf9160. 9 * 10 * Zephyr build for nRF9160 with ARM TrustZone-M support, 11 * implies building Secure and Non-Secure Zephyr images. 12 * 13 * Secure image will be placed, by default, in flash0 14 * (or in slot0, if MCUboot is present). 15 * Secure image will use sram0 for system memory. 16 * 17 * Non-Secure image will be placed in slot0_ns, and use 18 * sram0_ns for system memory. 19 * 20 * Note that the Secure image only requires knowledge of 21 * the beginning of the Non-Secure image (not its size). 22 */ 23 24&slot0_partition { 25 reg = <0x00010000 0x40000>; 26}; 27 28&slot0_ns_partition { 29 reg = <0x00050000 0x30000>; 30}; 31 32&slot1_partition { 33 reg = <0x00080000 0x40000>; 34}; 35 36&slot1_ns_partition { 37 reg = <0x000c0000 0x30000>; 38}; 39 40/* Default SRAM planning when building for nRF9160 with 41 * ARM TrustZone-M support 42 * - Lowest 88 kB SRAM allocated to Secure image (sram0_s). 43 * - 40 kB SRAM reserved for and used by the modem library 44 * (sram0_modem). This memory is Non-Secure. 45 * - Upper 128 kB allocated to Non-Secure image (sram0_ns). 46 * When building with TF-M, both sram0_modem and sram0_ns 47 * are allocated to the Non-Secure image. 48 */ 49 50&sram0_s { 51 reg = <0x20000000 DT_SIZE_K(88)>; 52}; 53 54&sram0_modem { 55 reg = <0x20016000 DT_SIZE_K(40)>; 56}; 57 58&sram0_ns { 59 reg = <0x20020000 DT_SIZE_K(128)>; 60}; 61