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
10/ {
11	model = "Nordic nRF52 DK NRF52805";
12	compatible = "nordic,nrf52-dk-nrf52805";
13
14	chosen {
15		zephyr,console = &uart0;
16		zephyr,shell-uart = &uart0;
17		zephyr,uart-mcumgr = &uart0;
18		zephyr,bt-mon-uart = &uart0;
19		zephyr,bt-c2h-uart = &uart0;
20		zephyr,sram = &sram0;
21		zephyr,flash = &flash0;
22		zephyr,code-partition = &slot0_partition;
23	};
24
25	leds {
26		compatible = "gpio-leds";
27		led0: led_0 {
28			gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
29			label = "Green LED 0";
30		};
31		led1: led_1 {
32			gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
33			label = "Green LED 1";
34		};
35		led2: led_2 {
36			gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
37			label = "Green LED 2";
38		};
39		led3: led_3 {
40			gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
41			label = "Green LED 3";
42		};
43	};
44
45	gpio_keys {
46		compatible = "gpio-keys";
47		button0: button_0 {
48			label = "Push button switch 0";
49			gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
50		};
51		button1: button_1 {
52			label = "Push button switch 1";
53			gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
54		};
55		button2: button_2 {
56			label = "Push button switch 2";
57			gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
58		};
59		button3: button_3 {
60			label = "Push button switch 3";
61			gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
62		};
63	};
64
65	/* These aliases are provided for compatibility with samples */
66	aliases {
67		led0 = &led0;
68		led1 = &led1;
69		led2 = &led2;
70		led3 = &led3;
71		sw0 = &button0;
72		sw1 = &button1;
73		sw2 = &button2;
74		sw3 = &button3;
75		bootloader-led0 = &led0;
76	};
77};
78
79&adc {
80	status = "okay";
81};
82
83&gpio0 {
84	status = "okay";
85};
86
87&gpiote {
88	status = "okay";
89};
90
91&i2c0 {
92	compatible = "nordic,nrf-twi";
93	status = "okay";
94	sda-pin = <26>;
95	scl-pin = <27>;
96};
97
98&spi0 {
99	compatible = "nordic,nrf-spi";
100	status = "okay";
101	sck-pin = <29>;
102	mosi-pin = <31>;
103	miso-pin = <30>;
104};
105
106&uart0 {
107	compatible = "nordic,nrf-uarte";
108	status = "okay";
109	current-speed = <115200>;
110	tx-pin = <6>;
111	rx-pin = <8>;
112	rts-pin = <5>;
113	cts-pin = <7>;
114};
115
116&flash0 {
117	/*
118	 * For more information, see:
119	 * http://docs.zephyrproject.org/latest/guides/dts/index.html#flash-partitions
120	 */
121	partitions {
122		compatible = "fixed-partitions";
123		#address-cells = <1>;
124		#size-cells = <1>;
125
126		boot_partition: partition@0 {
127			label = "mcuboot";
128			reg = <0x00000000 0xc000>;
129		};
130		slot0_partition: partition@c000 {
131			label = "image-0";
132			reg = <0x0000C000 0xd000>;
133		};
134		slot1_partition: partition@19000 {
135			label = "image-1";
136			reg = <0x00019000 0xd000>;
137		};
138		scratch_partition: partition@26000 {
139			label = "image-scratch";
140			reg = <0x00026000 0x3000>;
141		};
142		storage_partition: partition@29000 {
143			label = "storage";
144			reg = <0x00029000 0x00007000>;
145		};
146	};
147};
148