1/* Copyright (c) 2022 Nordic Semiconductor ASA */
2/* SPDX-License-Identifier: Apache-2.0 */
3
4/dts-v1/;
5#include <nordic/nrf52832_ciaa.dtsi>
6#include "we_proteus2ev_nrf52832-pinctrl.dtsi"
7#include <zephyr/dt-bindings/input/input-event-codes.h>
8
9/ {
10	model = "we_proteus2ev_nrf52832";
11	compatible = "we,we-proteus2ev-nrf52832";
12
13	chosen {
14		zephyr,console = &uart0;
15		zephyr,shell-uart = &uart0;
16		zephyr,uart-mcumgr = &uart0;
17		zephyr,bt-mon-uart = &uart0;
18		zephyr,bt-c2h-uart = &uart0;
19		zephyr,sram = &sram0;
20		zephyr,flash = &flash0;
21		zephyr,code-partition = &slot0_partition;
22	};
23
24	leds {
25		compatible = "gpio-leds";
26		led0: led_0 {
27			gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
28			label = "LED 0";
29		};
30		led1: led_1 {
31			gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
32			label = "LED 1";
33		};
34	};
35
36	buttons {
37		compatible = "gpio-keys";
38		button0: button_0 {
39			gpios = <&gpio0 29 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
40			label = "Wake-up";
41			zephyr,code = <INPUT_KEY_0>;
42		};
43	};
44
45	/* These aliases are provided for compatibility with samples */
46	aliases {
47		led0 = &led0;
48		led1 = &led1;
49		sw0 = &button0;
50		bootloader-led0 = &led0;
51		watchdog0 = &wdt0;
52	};
53};
54
55&reg {
56	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
57};
58
59&adc {
60	status = "okay";
61};
62
63&uicr {
64	gpio-as-nreset;
65};
66
67&gpiote {
68	status = "okay";
69};
70
71&gpio0 {
72	status = "okay";
73};
74
75&uart0 {
76	compatible = "nordic,nrf-uarte";
77	status = "okay";
78	current-speed = <115200>;
79	pinctrl-0 = <&uart0_default>;
80	pinctrl-1 = <&uart0_sleep>;
81	pinctrl-names = "default", "sleep";
82};
83
84&i2c0 {
85	compatible = "nordic,nrf-twi";
86	/* Cannot be used together with spi1. */
87	/* status = "okay"; */
88	pinctrl-0 = <&i2c0_default>;
89	pinctrl-1 = <&i2c0_sleep>;
90	pinctrl-names = "default", "sleep";
91};
92
93&spi0 {
94	compatible = "nordic,nrf-spi";
95	/* Cannot be used together with i2c0. */
96	/* status = "okay"; */
97	pinctrl-0 = <&spi0_default>;
98	pinctrl-1 = <&spi0_sleep>;
99	pinctrl-names = "default", "sleep";
100};
101
102&flash0 {
103	partitions {
104		compatible = "fixed-partitions";
105		#address-cells = <1>;
106		#size-cells = <1>;
107
108		boot_partition: partition@0 {
109			label = "mcuboot";
110			reg = <0x00000000 0xc000>;
111		};
112		slot0_partition: partition@c000 {
113			label = "image-0";
114			reg = <0x0000C000 0x32000>;
115		};
116		slot1_partition: partition@3e000 {
117			label = "image-1";
118			reg = <0x0003E000 0x32000>;
119		};
120		scratch_partition: partition@70000 {
121			label = "image-scratch";
122			reg = <0x00070000 0xa000>;
123		};
124		storage_partition: partition@7a000 {
125			label = "storage";
126			reg = <0x0007a000 0x00006000>;
127		};
128	};
129};
130