|
| 1 | +/* |
| 2 | + * Copyright (c) 2017 Shawn Nock <shawn@monadnock.ca> |
| 3 | + * Copyright (c) 2017 Linaro Limited |
| 4 | + * |
| 5 | + * SPDX-License-Identifier: Apache-2.0 |
| 6 | + */ |
| 7 | + |
| 8 | +/dts-v1/; |
| 9 | +#include <nordic/nrf52832.dtsi> |
| 10 | + |
| 11 | +/ { |
| 12 | + model = "Sparkfun nRF52832 Breakout"; |
| 13 | + compatible = "sparkfun,nrf52832", "nordic,nrf52832-qfaa", |
| 14 | + "nordic,nrf52832"; |
| 15 | + |
| 16 | + chosen { |
| 17 | + zephyr,console = &uart0; |
| 18 | + zephyr,sram = &sram0; |
| 19 | + zephyr,flash = &flash0; |
| 20 | + }; |
| 21 | +}; |
| 22 | + |
| 23 | +&uart0 { |
| 24 | + compatible = "nordic,nrf-uart"; |
| 25 | + current-speed = <115200>; |
| 26 | + status = "ok"; |
| 27 | +}; |
| 28 | + |
| 29 | +&flash0 { |
| 30 | + /* |
| 31 | + * If chosen's zephyr,code-partition |
| 32 | + * is unset, the image will be linked |
| 33 | + * into the entire flash device. If |
| 34 | + * it points to an individual |
| 35 | + * partition, the code will be linked |
| 36 | + * to, and restricted to that |
| 37 | + * partition. |
| 38 | + */ |
| 39 | + partitions { |
| 40 | + compatible = "fixed-partitions"; |
| 41 | + #address-cells = <1>; |
| 42 | + #size-cells = <1>; |
| 43 | + |
| 44 | + boot_partition: partition@0 { |
| 45 | + label = "mcuboot"; |
| 46 | + reg = <0x00000000 0xc000>; |
| 47 | + }; |
| 48 | + slot0_partition: partition@c000 { |
| 49 | + label = "image-0"; |
| 50 | + reg = <0x0000c000 0x32000>; |
| 51 | + }; |
| 52 | + slot1_partition: partition@3e000 { |
| 53 | + label = "image-1"; |
| 54 | + reg = <0x0003e000 0x32000>; |
| 55 | + }; |
| 56 | + scratch_partition: partition@70000 { |
| 57 | + label = "image-scratch"; |
| 58 | + reg = <0x00070000 0xa000>; |
| 59 | + }; |
| 60 | + |
| 61 | + /* |
| 62 | + * The flash starting at 0x0007a000 and ending at |
| 63 | + * 0x0007ffff (sectors 122-127) is reserved for use |
| 64 | + * by the application. |
| 65 | + */ |
| 66 | + |
| 67 | +#if defined(CONFIG_FILE_SYSTEM_NFFS) |
| 68 | + nffs_partition: partition@7a000 { |
| 69 | + label = "nffs"; |
| 70 | + reg = <0x0007a000 0x00006000>; |
| 71 | + }; |
| 72 | +#endif |
| 73 | + }; |
| 74 | +}; |
0 commit comments