1/*
2 * Copyright (c) 2019 Atmark Techno, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52840_qiaa.dtsi>
9#include "degu_evk-pinctrl.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "Degu Evaluation Kit";
14	compatible = "nordic,pca10056-dk";
15
16	chosen {
17		zephyr,sram = &sram0;
18		zephyr,flash = &flash0;
19		zephyr,code-partition = &slot0_partition;
20		zephyr,ieee802154 = &ieee802154;
21	};
22
23	leds {
24		compatible = "gpio-leds";
25		led0: led_0 {
26			gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
27			label = "LED1";
28		};
29		led1: led_1 {
30			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
31			label = "LED2";
32		};
33		led2: led_2 {
34			gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
35			label = "LED3";
36		};
37		led3: led_3 {
38			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
39			label = "LED4";
40		};
41	};
42
43	buttons {
44		compatible = "gpio-keys";
45		button0: button_0 {
46			gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
47			label = "SW2";
48			zephyr,code = <INPUT_KEY_0>;
49		};
50		button1: button_1 {
51			gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
52			label = "SW3";
53			zephyr,code = <INPUT_KEY_1>;
54		};
55		button2: button_2 {
56			gpios = <&gpio1 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
57			label = "SW4";
58			zephyr,code = <INPUT_KEY_2>;
59		};
60	};
61
62	en-3v3-switch {
63		compatible = "regulator-fixed";
64		regulator-name = "en_3v3_switch";
65		enable-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
66		regulator-boot-on;
67	};
68
69	en-vin1-moni {
70		compatible = "regulator-fixed";
71		regulator-name = "en_vin1_moni";
72		enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
73		regulator-boot-on;
74	};
75
76	/* These aliases are provided for compatibility with samples */
77	aliases {
78		led0 = &led0;
79		led1 = &led1;
80		led2 = &led2;
81		led3 = &led3;
82		sw0 = &button0;
83		sw1 = &button1;
84		sw2 = &button2;
85		watchdog0 = &wdt0;
86	};
87};
88
89&reg1 {
90	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
91};
92
93&adc {
94	status ="okay";
95};
96
97&uicr {
98	gpio-as-nreset;
99};
100
101&gpiote {
102	status ="okay";
103};
104
105&gpio0 {
106	status ="okay";
107};
108
109&gpio1 {
110	status ="okay";
111};
112
113&uart0 {
114	compatible = "nordic,nrf-uart";
115	current-speed = <115200>;
116	status = "okay";
117	pinctrl-0 = <&uart0_default>;
118	pinctrl-1 = <&uart0_sleep>;
119	pinctrl-names = "default", "sleep";
120};
121
122&i2c0 {
123	compatible = "nordic,nrf-twim";
124	status = "okay";
125	pinctrl-0 = <&i2c0_default>;
126	pinctrl-1 = <&i2c0_sleep>;
127	pinctrl-names = "default", "sleep";
128};
129
130&i2c1 {
131	compatible = "nordic,nrf-twim";
132	status = "okay";
133	pinctrl-0 = <&i2c1_default>;
134	pinctrl-1 = <&i2c1_sleep>;
135	pinctrl-names = "default", "sleep";
136};
137
138&ieee802154 {
139	status = "okay";
140};
141
142&flash0 {
143	partitions {
144		compatible = "fixed-partitions";
145		#address-cells = <1>;
146		#size-cells = <1>;
147
148		boot_partition: partition@0 {
149			label = "mcuboot";
150			reg = <0x00000000 0x00014000>;
151		};
152		slot0_partition: partition@14000 {
153			label = "image-0";
154			reg = <0x00014000 0x0006e000>;
155		};
156		slot1_partition: partition@82000 {
157			label = "image-1";
158			reg = <0x00082000 0x0006e000>;
159		};
160		scratch_partition: partition@f0000 {
161			label = "image-scratch";
162			reg = <0x000f0000 0x00008000>;
163		};
164		storage_partition: partition@f8000 {
165			label = "storage";
166			reg = <0x000f8000 0x00008000>;
167		};
168	};
169};
170
171zephyr_udc0: &usbd {
172	compatible = "nordic,nrf-usbd";
173	status = "okay";
174};
175
176#include <../boards/common/usb/cdc_acm_serial.dtsi>
177