d1c935e55c
initial application skeleton demonstrating: - custom boards - custom DT bindings - Out-of-tree drivers Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
40 lines
665 B
Plaintext
40 lines
665 B
Plaintext
/*
|
|
* Copyright (c) 2021 Nordic Semiconductor ASA
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
|
|
/ {
|
|
model = "Custom Plank Board";
|
|
compatible = "vendor,custom-plank";
|
|
|
|
chosen {
|
|
zephyr,console = &uart0;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
|
|
examplesensor0: examplesensor_0 {
|
|
compatible = "zephyr,examplesensor";
|
|
label = "EXAMPLESENSOR_0";
|
|
input-gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
};
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
compatible = "nordic,nrf-uarte";
|
|
status = "okay";
|
|
|
|
current-speed = <115200>;
|
|
tx-pin = <6>;
|
|
rx-pin = <8>;
|
|
rts-pin = <5>;
|
|
cts-pin = <7>;
|
|
};
|