zephyr/boards/arm/rak4631_nrf52840/rak4631_nrf52840.dts

167 lines
3.0 KiB
Plaintext
Raw Normal View History

/*
* Copyright (c) 2021 Guillaume Paquet <guillaume.paquet@smile.fr>
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include <dt-bindings/lora/sx126x.h>
/ {
model = "RAKWireless RAK4631 WisBlock LPWAN Module with a Nordic NRF52840 SoC";
compatible = "nordic,rak4631_nrf52840";
chosen {
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
zephyr,uart-mcumgr = &uart1;
zephyr,bt-mon-uart = &uart1;
zephyr,bt-c2h-uart = &uart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};
leds {
compatible = "gpio-leds";
blue_led: led_2 {
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
label = "Blue LED";
};
green_led: led_1 {
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
label = "Green LED";
};
};
/* Declaration of aliases */
aliases {
led0 = &blue_led;
lora0 = &lora;
};
};
&adc {
status = "okay";
};
&gpiote {
status = "okay";
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&uart0 {
compatible = "nordic,nrf-uart";
status = "okay";
current-speed = <115200>;
tx-pin = <20>;
rx-pin = <19>;
};
&uart1 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <16>;
rx-pin = <15>;
};
&i2c0 {
compatible = "nordic,nrf-twi";
status = "okay";
sda-pin = <13>;
scl-pin = <14>;
};
&i2c1 {
compatible = "nordic,nrf-twi";
/* Cannot be used together with spi1. */
/* status = "okay"; */
sda-pin = <24>;
scl-pin = <25>;
};
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
sck-pin = <43>;
mosi-pin = <44>;
miso-pin = <45>;
cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
lora: sx1262@0 {
compatible = "semtech,sx1262";
reg = <0>;
label = "sx1262";
reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
busy-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
tx-enable-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
rx-enable-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
dio1-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
dio2-tx-enable;
dio3-tcxo-voltage = <SX126X_DIO3_TCXO_3V3>;
tcxo-power-startup-delay-ms = <5>;
spi-max-frequency = <1000000>;
};
};
&qspi {
status = "okay";
sck-pin = <3>;
io-pins = <30>, <29>, <28>, <2>;
csn-pins = <26>;
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x000000000 0x0000C000>;
};
slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000C000 0x00067000>;
};
slot1_partition: partition@73000 {
label = "image-1";
reg = <0x00073000 0x00067000>;
};
scratch_partition: partition@da000 {
label = "image-scratch";
reg = <0x000da000 0x0001e000>;
};
/*
* The flash starting at 0x000f8000 and ending at
* 0x000fffff is reserved for use by the application.
*/
/*
* Storage partition will be used by FCB/LittleFS/NVS
* if enabled.
*/
storage_partition: partition@f8000 {
label = "storage";
reg = <0x000f8000 0x00008000>;
};
};
};
zephyr_udc0: &usbd {
compatible = "nordic,nrf-usbd";
status = "okay";
};