1/* 2 * Copyright (c) 2019-2022 Actinius 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Default Flash planning for actinius_icarus. 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 */ 47 48&sram0_s { 49 reg = <0x20000000 DT_SIZE_K(88)>; 50}; 51 52&sram0_modem { 53 reg = <0x20016000 DT_SIZE_K(40)>; 54}; 55 56&sram0_ns { 57 reg = <0x20020000 DT_SIZE_K(128)>; 58}; 59