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&adc { 89 status = "okay"; 90}; 91 92&uicr { 93 gpio-as-nreset; 94}; 95 96&gpio0 { 97 status = "okay"; 98}; 99 100&gpiote { 101 status = "okay"; 102}; 103 104&i2c0 { 105 compatible = "nordic,nrf-twi"; 106 status = "okay"; 107 pinctrl-0 = <&i2c0_default>; 108 pinctrl-1 = <&i2c0_sleep>; 109 pinctrl-names = "default", "sleep"; 110}; 111 112&spi0 { 113 compatible = "nordic,nrf-spi"; 114 status = "okay"; 115 pinctrl-0 = <&spi0_default>; 116 pinctrl-1 = <&spi0_sleep>; 117 pinctrl-names = "default", "sleep"; 118}; 119 120&uart0 { 121 compatible = "nordic,nrf-uarte"; 122 status = "okay"; 123 current-speed = <115200>; 124 pinctrl-0 = <&uart0_default>; 125 pinctrl-1 = <&uart0_sleep>; 126 pinctrl-names = "default", "sleep"; 127}; 128 129&flash0 { 130 partitions { 131 compatible = "fixed-partitions"; 132 #address-cells = <1>; 133 #size-cells = <1>; 134 135 boot_partition: partition@0 { 136 label = "mcuboot"; 137 reg = <0x00000000 0xc000>; 138 }; 139 slot0_partition: partition@c000 { 140 label = "image-0"; 141 reg = <0x0000C000 0xe000>; 142 }; 143 slot1_partition: partition@19000 { 144 label = "image-1"; 145 reg = <0x00020000 0xe000>; 146 }; 147 storage_partition: partition@28000 { 148 label = "storage"; 149 reg = <0x00028000 0x00008000>; 150 }; 151 }; 152}; 153