1/*
2 * Copyright (c) 2020 Guillaume Paquet <guillaume.paquet@smile.fr>
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 "rak5010_nrf52840-pinctrl.dtsi"
11
12/ {
13	model = "RAKWireless RAK5010 Wistrio Board with a Nordic NRF52840 SoC";
14	compatible = "nordic,rak5010_nrf52840";
15
16	chosen {
17		zephyr,console = &uart1;
18		zephyr,shell-uart = &uart1;
19		zephyr,uart-mcumgr = &uart1;
20		zephyr,bt-mon-uart = &uart1;
21		zephyr,bt-c2h-uart = &uart1;
22	};
23
24	leds {
25		compatible = "gpio-leds";
26		led0: led_0 {
27			gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
28			label = "Green LED 0";
29		};
30	};
31
32	/* Declaration of aliases */
33	aliases {
34		led0 = &led0;
35		watchdog0 = &wdt0;
36		accel0 = &lis3dh;
37		modem-uart = &uart0;
38		modem = &modem;
39	};
40};
41
42&adc {
43	status = "okay";
44};
45
46&gpiote {
47	status = "okay";
48};
49
50&gpio0 {
51	status = "okay";
52};
53
54&gpio1 {
55	status = "okay";
56};
57
58&uart0 {
59	compatible = "nordic,nrf-uarte";
60	status = "okay";
61	current-speed = <115200>;
62	pinctrl-0 = <&uart0_default>;
63	pinctrl-1 = <&uart0_sleep>;
64	pinctrl-names = "default", "sleep";
65	modem: modem {
66		compatible = "quectel,bg95";
67		mdm-power-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
68		status = "okay";
69	};
70};
71
72&uart1 {
73	current-speed = <115200>;
74	status = "okay";
75	pinctrl-0 = <&uart1_default>;
76	pinctrl-1 = <&uart1_sleep>;
77	pinctrl-names = "default", "sleep";
78};
79
80&i2c1 {
81	compatible = "nordic,nrf-twi";
82	status = "okay";
83
84	/* TI OPT3001 light sensor */
85	pinctrl-0 = <&i2c1_default>;
86	pinctrl-1 = <&i2c1_sleep>;
87	pinctrl-names = "default", "sleep";
88	opt3001@44 {
89		compatible = "ti,opt3001";
90		reg = <0x44>;
91	};
92
93	/* ST Microelectronics LIS3DH motion sensor */
94	lis3dh: lis3dh@19 {
95		compatible = "st,lis3dh", "st,lis2dh";
96		reg = <0x19>;
97		irq-gpios = <&gpio0 16 0>;
98	};
99
100	/* ST Microelectronics LPS22HB pressure sensor */
101	lps22hb-press@5c {
102		compatible = "st,lps22hb-press";
103		reg = <0x5c>;
104	};
105};
106
107&qspi {
108	status = "okay";
109	pinctrl-0 = <&qspi_default>;
110	pinctrl-1 = <&qspi_sleep>;
111	pinctrl-names = "default", "sleep";
112	is25wp064a: is25wp064a@0 {
113		compatible = "nordic,qspi-nor";
114		reg = <0>;
115		writeoc = "pp4o";
116		readoc = "read4io";
117		sck-frequency = <32000000>;
118		jedec-id = [9d 70 17];
119		size = <67108864>;
120		has-dpd;
121		t-enter-dpd = <3000>;
122		t-exit-dpd = <5000>;
123	};
124};
125
126zephyr_udc0: &usbd {
127	compatible = "nordic,nrf-usbd";
128	status = "okay";
129};
130