1/*
2 * Copyright (c) 2017 VNG IoT Lab Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <nordic/nrf51822_qfac.dtsi>
9#include "nrf51_vbluno51-pinctrl.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "VNG VBLUno51 BLE board";
14	compatible = "vng,vbluno51";
15
16	chosen {
17		zephyr,console = &uart0;
18		zephyr,shell-uart = &uart0;
19		zephyr,bt-mon-uart = &uart0;
20		zephyr,bt-c2h-uart = &uart0;
21		zephyr,sram = &sram0;
22		zephyr,flash = &flash0;
23	};
24
25	/* These aliases are provided for compatibility with samples */
26	aliases {
27		led0 = &led0;
28		sw0 = &button0;
29		watchdog0 = &wdt0;
30	};
31
32	leds {
33		compatible = "gpio-leds";
34		/* green led */
35		led0: led_0 {
36			gpios = <&gpio0 7 0>;
37			label = "LED";
38		};
39	};
40
41	buttons {
42		/* Push button switch 0 KEY1 */
43		compatible = "gpio-keys";
44		button0: button_0 {
45			/* gpio flags need validation */
46			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
47			label = "Button";
48			zephyr,code = <INPUT_KEY_0>;
49		};
50	};
51};
52
53&gpiote {
54	status = "okay";
55};
56
57&gpio0 {
58	status = "okay";
59};
60
61&uart0 {
62	current-speed = <115200>;
63	status = "okay";
64	pinctrl-0 = <&uart0_default>;
65	pinctrl-1 = <&uart0_sleep>;
66	pinctrl-names = "default", "sleep";
67};
68
69&i2c0 {
70	status = "okay";
71	clock-frequency = <I2C_BITRATE_FAST>;
72	pinctrl-0 = <&i2c0_default>;
73	pinctrl-1 = <&i2c0_sleep>;
74	pinctrl-names = "default", "sleep";
75};
76