1/*
2 * Copyright (c) 2020 Tobias Svehagen
3 * Copyright (c) 2024 Jacob Winther
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8/dts-v1/;
9#include <nordic/nrf52840_qiaa.dtsi>
10#include "feather_connector.dtsi"
11#include "adafruit_feather_nrf52840-pinctrl.dtsi"
12#include <zephyr/dt-bindings/input/input-event-codes.h>
13
14/ {
15
16	chosen {
17		zephyr,ieee802154 = &ieee802154;
18	};
19
20	leds {
21		compatible = "gpio-leds";
22		led0: led_0 {
23			label = "Red LED";
24		};
25		led1: led_1 {
26			gpios = <&gpio1 10 0>;
27			label = "Blue LED";
28		};
29	};
30
31	buttons {
32		compatible = "gpio-keys";
33		button0: button_0 {
34			gpios = <&gpio1 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
35			label = "Push button switch";
36			zephyr,code = <INPUT_KEY_0>;
37		};
38	};
39
40	vbatt {
41		compatible = "voltage-divider";
42		io-channels = <&adc 5>;
43		output-ohms = <100000>;
44		full-ohms = <(100000 + 100000)>;
45	};
46
47	/* These aliases are provided for compatibility with samples */
48	aliases {
49		led0 = &led0;
50		led1 = &led1;
51		sw0 = &button0;
52		watchdog0 = &wdt0;
53	};
54};
55
56&reg1 {
57	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
58};
59
60&adc {
61	status = "okay";
62};
63
64&uicr {
65	gpio-as-nreset;
66};
67
68&gpiote {
69	status = "okay";
70};
71
72&gpio0 {
73	status = "okay";
74};
75
76&gpio1 {
77	status = "okay";
78};
79
80&uart0 {
81	compatible = "nordic,nrf-uart";
82	current-speed = <115200>;
83	status = "okay";
84	pinctrl-0 = <&uart0_default>;
85	pinctrl-1 = <&uart0_sleep>;
86	pinctrl-names = "default", "sleep";
87};
88
89&i2c0 {
90	compatible = "nordic,nrf-twi";
91	status = "okay";
92	pinctrl-0 = <&i2c0_default>;
93	pinctrl-1 = <&i2c0_sleep>;
94	pinctrl-names = "default", "sleep";
95};
96
97&spi1 {
98	compatible = "nordic,nrf-spi";
99	status = "okay";
100	pinctrl-0 = <&spi1_default>;
101	pinctrl-1 = <&spi1_sleep>;
102	pinctrl-names = "default", "sleep";
103};
104
105&qspi {
106	status = "okay";
107	pinctrl-0 = <&qspi_default>;
108	pinctrl-1 = <&qspi_sleep>;
109	pinctrl-names = "default", "sleep";
110	gd25q16: gd25q16@0 {
111		compatible = "nordic,qspi-nor";
112		reg = <0>;
113		writeoc = "pp4o";
114		readoc = "read4io";
115		sck-frequency = <16000000>;
116		jedec-id = [ c8 40 15  ];
117		size = <16777216>;
118		has-dpd;
119		t-enter-dpd = <20000>;
120		t-exit-dpd = <20000>;
121		quad-enable-requirements = "S2B1v1";
122	};
123};
124
125&ieee802154 {
126	status = "okay";
127};
128
129zephyr_udc0: &usbd {
130	compatible = "nordic,nrf-usbd";
131	status = "okay";
132};
133