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_qfaa.dtsi> 10#include "nrf52_sparkfun-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "Sparkfun nRF52832 Breakout"; 15 compatible = "sparkfun,nrf52832"; 16 17 chosen { 18 zephyr,console = &uart0; 19 zephyr,shell-uart = &uart0; 20 zephyr,bt-mon-uart = &uart0; 21 zephyr,bt-c2h-uart = &uart0; 22 zephyr,sram = &sram0; 23 zephyr,flash = &flash0; 24 zephyr,code-partition = &slot0_partition; 25 }; 26 27 /* These aliases are provided for compatibility with samples */ 28 aliases { 29 led0 = &led0; 30 sw0 = &button0; 31 watchdog0 = &wdt0; 32 }; 33 34 leds { 35 compatible = "gpio-leds"; 36 led0: led_0 { 37 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 38 label = "LED"; 39 }; 40 }; 41 42 buttons { 43 compatible = "gpio-keys"; 44 button0: button_0 { 45 /* gpio flags need validation */ 46 gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 47 label = "Button"; 48 zephyr,code = <INPUT_KEY_0>; 49 }; 50 }; 51}; 52 53&uicr { 54 gpio-as-nreset; 55}; 56 57&gpiote { 58 status = "okay"; 59}; 60 61&gpio0 { 62 status = "okay"; 63}; 64 65&uart0 { 66 compatible = "nordic,nrf-uart"; 67 current-speed = <115200>; 68 status = "okay"; 69 pinctrl-0 = <&uart0_default>; 70 pinctrl-1 = <&uart0_sleep>; 71 pinctrl-names = "default", "sleep"; 72}; 73 74&flash0 { 75 76 partitions { 77 compatible = "fixed-partitions"; 78 #address-cells = <1>; 79 #size-cells = <1>; 80 81 boot_partition: partition@0 { 82 label = "mcuboot"; 83 reg = <0x00000000 0xc000>; 84 }; 85 slot0_partition: partition@c000 { 86 label = "image-0"; 87 reg = <0x0000c000 0x32000>; 88 }; 89 slot1_partition: partition@3e000 { 90 label = "image-1"; 91 reg = <0x0003e000 0x32000>; 92 }; 93 scratch_partition: partition@70000 { 94 label = "image-scratch"; 95 reg = <0x00070000 0xa000>; 96 }; 97 storage_partition: partition@7a000 { 98 label = "storage"; 99 reg = <0x0007a000 0x00006000>; 100 }; 101 }; 102}; 103