1/*
2 * Copyright (c) 2017 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52832_qfaa.dtsi>
9#include "96b_lscon.dtsi"
10#include "96b_nitrogen-pinctrl.dtsi"
11#include <zephyr/dt-bindings/input/input-event-codes.h>
12
13/ {
14	model = "Seeed Studio Nitrogen 96board";
15	compatible = "seeed,nitrogen";
16
17	chosen {
18		zephyr,console = &uart0;
19		zephyr,shell-uart = &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	/* These aliases are provided for compatibility with samples */
28	aliases {
29		led0 = &led0;
30		led1 = &led1;
31		bt = &led1;
32		sw0 = &button0;
33		watchdog0 = &wdt0;
34	};
35
36	leds {
37		compatible = "gpio-leds";
38		/* green led */
39		led0: led_0 {
40			gpios = <&gpio0 29 0>;
41			label = "USR1 LED";
42		};
43		/* blue led */
44		led1: led_1 {
45			gpios = <&gpio0 28 0>;
46			label = "BT LED";
47		};
48	};
49
50	buttons {
51		compatible = "gpio-keys";
52		button0: button_0 {
53			/* gpio flags need validation */
54			gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
55			label = "User Push Button";
56			zephyr,code = <INPUT_KEY_0>;
57		};
58	};
59};
60
61&uicr {
62	gpio-as-nreset;
63};
64
65&gpiote {
66	status = "okay";
67};
68
69&gpio0 {
70	status = "okay";
71};
72
73&uart0 {
74	compatible = "nordic,nrf-uart";
75	current-speed = <115200>;
76	status = "okay";
77	pinctrl-0 = <&uart0_default>;
78	pinctrl-1 = <&uart0_sleep>;
79	pinctrl-names = "default", "sleep";
80};
81
82&i2c0 {
83	compatible = "nordic,nrf-twi";
84	status = "okay";
85	pinctrl-0 = <&i2c0_default>;
86	pinctrl-1 = <&i2c0_sleep>;
87	pinctrl-names = "default", "sleep";
88};
89
90&spi1 {
91	compatible = "nordic,nrf-spi";
92	status = "okay";
93	pinctrl-0 = <&spi1_default>;
94	pinctrl-1 = <&spi1_sleep>;
95	pinctrl-names = "default", "sleep";
96};
97
98&flash0 {
99
100	partitions {
101		compatible = "fixed-partitions";
102		#address-cells = <1>;
103		#size-cells = <1>;
104
105		boot_partition: partition@0 {
106			label = "mcuboot";
107			reg = <0x00000000 0xa000>;
108		};
109		slot0_partition: partition@a000 {
110			label = "image-0";
111			reg = <0x0000a000 0x33000>;
112		};
113		slot1_partition: partition@3d000 {
114			label = "image-1";
115			reg = <0x0003d000 0x33000>;
116		};
117		scratch_partition: partition@70000 {
118			label = "image-scratch";
119			reg = <0x00070000 0xa000>;
120		};
121
122		/*
123		 * The flash starting at 0x0007a000 and ending at
124		 * 0x0007ffff (sectors 122-127) is reserved for use
125		 * by the application. If enabled, partition for FCB/LittleFS
126		 * will be created in this area.
127		 */
128		storage_partition: partition@7a000 {
129			label = "storage";
130			reg = <0x0007a000 0x00006000>;
131		};
132	};
133};
134