1/* 2 * Copyright (c) 2020 InnBlue 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/* 8 * Default Flash planning for nRF9160_innblue21. 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 = <0x0000c000 0x30000>; 26}; 27 28&slot0_ns_partition { 29 reg = <0x0003e000 0x40000>; 30}; 31 32&slot1_partition { 33 reg = <0x0007e000 0x30000>; 34}; 35 36&slot1_ns_partition { 37 reg = <0x000b0000 0x40000>; 38}; 39 40/* Default SRAM planning when building for nRF9160 with 41 * ARM TrustZone-M support 42 * - Lowest 64 kB SRAM allocated to Secure image (sram0). 43 * - 64 kB SRAM reserved for and used by the BSD socket 44 * library. 45 * - Upper 128 kB allocated to Non-Secure image (sram0_ns). 46 */ 47 48&sram0 { 49 reg = <0x20000000 DT_SIZE_K(64)>; 50}; 51 52&sram0_bsd { 53 reg = <0x20010000 DT_SIZE_K(64)>; 54}; 55 56&sram0_ns { 57 reg = <0x20020000 DT_SIZE_K(128)>; 58}; 59