1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52805_caaa.dtsi>
9#include "we_ophelia1ev_nrf52805-pinctrl.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "we_ophelia1ev_nrf52805";
14	compatible = "we,we-ophelia1ev-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 0 GPIO_ACTIVE_HIGH>;
31			label = "LED 0";
32		};
33		led1: led_1 {
34			gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
35			label = "LED 1";
36		};
37	};
38
39	buttons {
40		compatible = "gpio-keys";
41		button0: button_0 {
42			label = "Example button";
43			gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
44			zephyr,code = <INPUT_KEY_0>;
45		};
46	};
47
48	/* These aliases are provided for compatibility with samples */
49	aliases {
50		led0 = &led0;
51		led1 = &led1;
52		sw0 = &button0;
53		bootloader-led0 = &led0;
54		mcuboot-button0 = &button0;
55		mcuboot-led0 = &led0;
56		watchdog0 = &wdt0;
57	};
58};
59
60&reg {
61	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
62};
63
64&adc {
65	status = "okay";
66};
67
68&uicr {
69	gpio-as-nreset;
70};
71
72&gpio0 {
73	status = "okay";
74};
75
76&gpiote {
77	status = "okay";
78};
79
80&i2c0 {
81	compatible = "nordic,nrf-twi";
82	status = "okay";
83	pinctrl-0 = <&i2c0_default>;
84	pinctrl-1 = <&i2c0_sleep>;
85	pinctrl-names = "default", "sleep";
86};
87
88&spi0 {
89	compatible = "nordic,nrf-spi";
90	status = "okay";
91	pinctrl-0 = <&spi0_default>;
92	pinctrl-1 = <&spi0_sleep>;
93	pinctrl-names = "default", "sleep";
94};
95
96&uart0 {
97	compatible = "nordic,nrf-uarte";
98	status = "okay";
99	current-speed = <115200>;
100	pinctrl-0 = <&uart0_default>;
101	pinctrl-1 = <&uart0_sleep>;
102	pinctrl-names = "default", "sleep";
103};
104
105&flash0 {
106	partitions {
107		compatible = "fixed-partitions";
108		#address-cells = <1>;
109		#size-cells = <1>;
110
111		boot_partition: partition@0 {
112			label = "mcuboot";
113			reg = <0x00000000 0xc000>;
114		};
115		slot0_partition: partition@c000 {
116			label = "image-0";
117			reg = <0x0000C000 0xd000>;
118		};
119		slot1_partition: partition@19000 {
120			label = "image-1";
121			reg = <0x00019000 0xd000>;
122		};
123		scratch_partition: partition@26000 {
124			label = "image-scratch";
125			reg = <0x00026000 0x3000>;
126		};
127		storage_partition: partition@29000 {
128			label = "storage";
129			reg = <0x00029000 0x00007000>;
130		};
131	};
132};
133