1/* 2 * Copyright (c) 2018 Nordic Semiconductor ASA 3 * Copyright (c) 2017 Shawn Nock <shawn@monadnock.ca> 4 * Copyright (c) 2017 Linaro Limited 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9/dts-v1/; 10#include <nordic/nrf52810_qfaa.dtsi> 11#include "nrf52dk_nrf52810-pinctrl.dtsi" 12#include <zephyr/dt-bindings/input/input-event-codes.h> 13 14/ { 15 model = "Nordic nRF52 DK NRF52810"; 16 compatible = "nordic,nrf52-dk-nrf52810"; 17 18 chosen { 19 zephyr,console = &uart0; 20 zephyr,shell-uart = &uart0; 21 zephyr,uart-mcumgr = &uart0; 22 zephyr,bt-mon-uart = &uart0; 23 zephyr,bt-c2h-uart = &uart0; 24 zephyr,sram = &sram0; 25 zephyr,flash = &flash0; 26 zephyr,code-partition = &slot0_partition; 27 }; 28 29 leds { 30 compatible = "gpio-leds"; 31 led0: led_0 { 32 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 33 label = "Green LED 0"; 34 }; 35 led1: led_1 { 36 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 37 label = "Green LED 1"; 38 }; 39 led2: led_2 { 40 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>; 41 label = "Green LED 2"; 42 }; 43 led3: led_3 { 44 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; 45 label = "Green LED 3"; 46 }; 47 }; 48 49 buttons { 50 compatible = "gpio-keys"; 51 button0: button_0 { 52 label = "Push button switch 0"; 53 gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 54 zephyr,code = <INPUT_KEY_0>; 55 }; 56 button1: button_1 { 57 label = "Push button switch 1"; 58 gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 59 zephyr,code = <INPUT_KEY_1>; 60 }; 61 button2: button_2 { 62 label = "Push button switch 2"; 63 gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 64 zephyr,code = <INPUT_KEY_2>; 65 }; 66 button3: button_3 { 67 label = "Push button switch 3"; 68 gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 69 zephyr,code = <INPUT_KEY_3>; 70 }; 71 }; 72 73 /* These aliases are provided for compatibility with samples */ 74 aliases { 75 led0 = &led0; 76 led1 = &led1; 77 led2 = &led2; 78 led3 = &led3; 79 sw0 = &button0; 80 sw1 = &button1; 81 sw2 = &button2; 82 sw3 = &button3; 83 bootloader-led0 = &led0; 84 mcuboot-button0 = &button0; 85 mcuboot-led0 = &led0; 86 watchdog0 = &wdt0; 87 }; 88}; 89 90&adc { 91 status = "okay"; 92}; 93 94&uicr { 95 gpio-as-nreset; 96}; 97 98&gpiote { 99 status = "okay"; 100}; 101 102&gpio0 { 103 status = "okay"; 104}; 105 106&uart0 { 107 compatible = "nordic,nrf-uarte"; 108 status = "okay"; 109 current-speed = <115200>; 110 pinctrl-0 = <&uart0_default>; 111 pinctrl-1 = <&uart0_sleep>; 112 pinctrl-names = "default", "sleep"; 113}; 114 115&i2c0 { 116 compatible = "nordic,nrf-twi"; 117 status = "okay"; 118 pinctrl-0 = <&i2c0_default>; 119 pinctrl-1 = <&i2c0_sleep>; 120 pinctrl-names = "default", "sleep"; 121}; 122 123&spi0 { 124 compatible = "nordic,nrf-spi"; 125 status = "okay"; 126 pinctrl-0 = <&spi0_default>; 127 pinctrl-1 = <&spi0_sleep>; 128 pinctrl-names = "default", "sleep"; 129}; 130 131&flash0 { 132 133 partitions { 134 compatible = "fixed-partitions"; 135 #address-cells = <1>; 136 #size-cells = <1>; 137 138 boot_partition: partition@0 { 139 label = "mcuboot"; 140 reg = <0x00000000 0xc000>; 141 }; 142 slot0_partition: partition@c000 { 143 label = "image-0"; 144 reg = <0x0000C000 0xe000>; 145 }; 146 slot1_partition: partition@1a000 { 147 label = "image-1"; 148 reg = <0x0001a000 0xe000>; 149 }; 150 storage_partition: partition@28000 { 151 label = "storage"; 152 reg = <0x00028000 0x00008000>; 153 }; 154 }; 155}; 156