108 lines
1.8 KiB
Plaintext
108 lines
1.8 KiB
Plaintext
// Copyright (c) 2023 Nordic Semiconductor ASA
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
|
|
// https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/getting-started/
|
|
/ {
|
|
model = "nrf52840_test";
|
|
compatible = "nrf52840-test";
|
|
|
|
chosen {
|
|
zephyr,console = &uart0;
|
|
zephyr,shell-uart = &uart0;
|
|
zephyr,uart-mcumgr = &uart0;
|
|
zephyr,bt-mon-uart = &uart0;
|
|
zephyr,bt-c2h-uart = &uart0;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
gpios = <&gpio0 23 0>;
|
|
};
|
|
|
|
led1: led_1 {
|
|
gpios = <&gpio0 22 0>;
|
|
};
|
|
|
|
led2: led_2 {
|
|
gpios = <&gpio0 24 0>;
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "gpio-keys";
|
|
button0: button_0 {
|
|
gpios = <&gpio0 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
};
|
|
};
|
|
|
|
aliases {
|
|
led0 = &led0;
|
|
};
|
|
};
|
|
|
|
&flash0 {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
boot_partition: partition@0 {
|
|
label = "mcuboot";
|
|
reg = <0x0 0xc000>;
|
|
};
|
|
slot0_partition: partition@c000 {
|
|
label = "image-0";
|
|
reg = <0xc000 0x72000>;
|
|
};
|
|
slot1_partition: partition@7e000 {
|
|
label = "image-1";
|
|
reg = <0x7e000 0x72000>;
|
|
};
|
|
scratch_partition: partition@f0000 {
|
|
label = "image-scratch";
|
|
reg = <0xf0000 0xa000>;
|
|
};
|
|
storage_partition: partition@fa000 {
|
|
label = "storage";
|
|
reg = <0xfa000 0x6000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
pinctrl-0 = <&uart0_default>;
|
|
pinctrl-names = "default";
|
|
current-speed = <115200>;
|
|
};
|
|
|
|
&pinctrl {
|
|
uart0_default: uart0_default {
|
|
group1 {
|
|
psels = <NRF_PSEL(UART_TX, 0, 6)>,
|
|
<NRF_PSEL(UART_RX, 0, 8)>,
|
|
<NRF_PSEL(UART_RTS, 0, 5)>,
|
|
<NRF_PSEL(UART_CTS, 0, 7)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&adc {
|
|
status = "okay";
|
|
};
|
|
|
|
&usbd {
|
|
status = "okay";
|
|
};
|