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