1/* 2 * Copyright (c) 2019 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8 9#include <nordic/nrf51822_qfaa.dtsi> 10#include "qemu_cortex_m0-pinctrl.dtsi" 11 12/ { 13 model = "QEMU Cortex-M0"; 14 compatible = "bbc,qemu-microbit"; 15 16 chosen { 17 zephyr,console = &uart0; 18 zephyr,shell-uart = &uart0; 19 zephyr,bt-mon-uart = &uart0; 20 zephyr,bt-c2h-uart = &uart0; 21 zephyr,sram = &sram0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 }; 25 26 aliases { 27 watchdog0 = &wdt0; 28 }; 29}; 30 31&gpiote { 32 status = "okay"; 33}; 34 35&gpio0 { 36 status = "okay"; 37}; 38 39&uart0 { 40 status = "okay"; 41 current-speed = <115200>; 42 pinctrl-0 = <&uart0_default>; 43 pinctrl-1 = <&uart0_sleep>; 44 pinctrl-names = "default", "sleep"; 45}; 46 47&flash0 { 48 49 partitions { 50 compatible = "fixed-partitions"; 51 #address-cells = <1>; 52 #size-cells = <1>; 53 54 boot_partition: partition@0 { 55 label = "mcuboot"; 56 reg = <0x00000000 0x8000>; 57 }; 58 slot0_partition: partition@8000 { 59 label = "image-0"; 60 reg = <0x00008000 0x1a000>; 61 }; 62 slot1_partition: partition@22000 { 63 label = "image-1"; 64 reg = <0x00022000 0x1a000>; 65 }; 66 scratch_partition: partition@3c000 { 67 label = "image-scratch"; 68 reg = <0x0003c000 0x2000>; 69 }; 70 storage_partition: partition@3e000 { 71 label = "storage"; 72 reg = <0x0003e000 0x00002000>; 73 }; 74 }; 75}; 76