2017-06-29 11:02:40 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 VNG IoT Lab Limited
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2018-09-14 23:47:30 -05:00
|
|
|
#include <nordic/nrf51822_qfac.dtsi>
|
2017-06-29 11:02:40 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "VNG VBLUno51 BLE board";
|
2020-04-28 11:56:02 -05:00
|
|
|
compatible = "vng,vbluno51";
|
2017-06-29 11:02:40 +07:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &uart0;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &uart0;
|
2019-03-18 18:11:31 +01:00
|
|
|
zephyr,bt-mon-uart = &uart0;
|
2019-06-20 14:49:15 +02:00
|
|
|
zephyr,bt-c2h-uart = &uart0;
|
2017-06-29 11:02:40 +07:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2018-10-04 17:39:55 -05:00
|
|
|
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
|
|
aliases {
|
|
|
|
led0 = &led0;
|
|
|
|
sw0 = &button0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
/* green led */
|
|
|
|
led0: led_0 {
|
|
|
|
gpios = <&gpio0 7 0>;
|
|
|
|
label = "LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
buttons {
|
|
|
|
/* Push button switch 0 KEY1 */
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
button0: button_0 {
|
|
|
|
/* gpio flags need validation */
|
2019-08-06 00:56:05 +02:00
|
|
|
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
|
2018-10-04 17:39:55 -05:00
|
|
|
label = "Button";
|
|
|
|
};
|
|
|
|
};
|
2017-06-29 11:02:40 +07:00
|
|
|
};
|
|
|
|
|
2018-07-03 16:09:32 +02:00
|
|
|
&gpiote {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-07-03 16:09:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
&gpio0 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-07-03 16:09:32 +02:00
|
|
|
};
|
|
|
|
|
2017-06-29 11:02:40 +07:00
|
|
|
&uart0 {
|
|
|
|
current-speed = <115200>;
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-08-28 16:24:22 +02:00
|
|
|
tx-pin = <10>;
|
|
|
|
rx-pin = <11>;
|
|
|
|
rts-pin = <12>;
|
|
|
|
cts-pin = <13>;
|
2017-06-29 11:02:40 +07:00
|
|
|
};
|
2018-03-07 00:57:09 +02:00
|
|
|
|
|
|
|
&i2c0 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-03-07 00:57:09 +02:00
|
|
|
clock-frequency = <I2C_BITRATE_FAST>;
|
2018-05-28 15:43:25 +02:00
|
|
|
sda-pin = <29>;
|
|
|
|
scl-pin = <30>;
|
2018-03-07 00:57:09 +02:00
|
|
|
};
|