Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /*
* Copyright (c) 2018 Roman Tataurov <diytronic@yandex.ru>
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nordic/nrf51822_qfaa.dtsi>
/ {
model = "Waveshare BLE400";
compatible = "waveshare,BLE400";
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,bt-mon-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
led2 = &led2;
led3 = &led3;
led4 = &led4;
sw0 = &button0;
sw1 = &button1;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpio0 18 0>;
label = "Red LED 0";
};
led1: led_1 {
gpios = <&gpio0 19 0>;
label = "Red LED 1";
};
led2: led_2 {
gpios = <&gpio0 20 0>;
label = "Red LED 2";
};
led3: led_3 {
gpios = <&gpio0 21 0>;
label = "Red LED 3";
};
led4: led_4 {
gpios = <&gpio0 22 0>;
label = "Red LED 4";
};
};
buttons {
/* Push button switch 0 KEY1 */
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 0";
};
/* Push button switch 1 KEY2 */
button1: button_1 {
gpios = <&gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "Push button switch 1";
};
};
};
&gpiote {
status = "okay";
};
&gpio0 {
status = "okay";
};
&i2c0 {
status = "okay";
sda-pin = <0>;
scl-pin = <1>;
/* smba-pin = <2>; */
};
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
sck-pin = <25>;
mosi-pin = <24>;
miso-pin = <23>;
cs-gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
};
&uart0 {
current-speed = <115200>;
status = "okay";
tx-pin = <9>;
rx-pin = <11>;
rts-pin = <8>;
cts-pin = <10>;
};
|