1/*
2 * Copyright (c) 2020 Analog Life LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf52840_qiaa.dtsi>
9#include <nordic/nrf52840_partition.dtsi>
10#include "contextualelectronics_abc-pinctrl.dtsi"
11
12/ {
13	model = "nRF52840 BLE Cell";
14	compatible = "nordic,nrf52840-ble-cell";
15
16	chosen {
17		zephyr,console = &uart0;
18		zephyr,shell-uart = &uart0;
19	};
20
21	aliases {
22		watchdog0 = &wdt0;
23	};
24};
25
26&reg1 {
27	regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
28};
29
30&uicr {
31	gpio-as-nreset;
32};
33
34&gpiote {
35	status = "okay";
36};
37
38&gpio0 {
39	status = "okay";
40};
41
42&gpio1 {
43	status = "okay";
44};
45
46&uart0 {
47	compatible = "nordic,nrf-uart";
48	status = "okay";
49	current-speed = <115200>;
50
51	pinctrl-0 = <&uart0_default>;
52	pinctrl-1 = <&uart0_sleep>;
53	pinctrl-names = "default", "sleep";
54};
55
56arduino_serial: &uart1 {
57	status = "okay";
58	current-speed = <115200>;
59
60	/* UART Pin info. */
61
62	/* Use hardware flow control. */
63	hw-flow-control;
64
65	/* BG9x description. */
66	pinctrl-0 = <&uart1_default>;
67	pinctrl-1 = <&uart1_sleep>;
68	pinctrl-names = "default", "sleep";
69	quectel_bg9x {
70		compatible = "quectel,bg9x";
71		status     = "okay";
72
73		mdm-power-gpios = <&gpio1 5  0>;
74		mdm-reset-gpios = <&gpio1 6  0>;
75		mdm-dtr-gpios   = <&gpio0 22 0>;
76	};
77};
78
79arduino_i2c: &i2c0 {
80	compatible = "nordic,nrf-twi";
81	status = "okay";
82	pinctrl-0 = <&i2c0_default>;
83	pinctrl-1 = <&i2c0_sleep>;
84	pinctrl-names = "default", "sleep";
85};
86
87&spi2 {
88	compatible = "nordic,nrf-spi";
89	status = "okay";
90
91	/* This SPI device is interfaced with the SD card. */
92	pinctrl-0 = <&spi2_default>;
93	pinctrl-1 = <&spi2_sleep>;
94	pinctrl-names = "default", "sleep";
95};
96