97 lines
1.8 KiB
Plaintext
97 lines
1.8 KiB
Plaintext
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Heltec MeshPocket — Device Tree Source
|
|
* SoC: nRF52840-QIAA
|
|
* Radio: SX1262 (crystal oscillator, no TCXO)
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
#include "heltec_meshpocket-pinctrl.dtsi"
|
|
|
|
/ {
|
|
model = "Heltec MeshPocket";
|
|
compatible = "heltec,meshpocket";
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,console = &uart0;
|
|
zephyr,shell-uart = &uart0;
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
|
|
aliases {
|
|
lora0 = &lora;
|
|
};
|
|
};
|
|
|
|
&uicr {
|
|
gpio-as-nreset;
|
|
};
|
|
|
|
&gpiote {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
compatible = "nordic,nrf-uarte";
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart0_default>;
|
|
pinctrl-1 = <&uart0_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&spi1 {
|
|
compatible = "nordic,nrf-spim";
|
|
status = "okay";
|
|
pinctrl-0 = <&spi1_default>;
|
|
pinctrl-names = "default";
|
|
cs-gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
|
|
|
|
lora: lora@0 {
|
|
compatible = "semtech,sx1262";
|
|
reg = <0>;
|
|
spi-max-frequency = <1000000>;
|
|
reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
|
|
busy-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
|
|
dio1-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
|
|
dio2-tx-enable;
|
|
};
|
|
};
|
|
|
|
&flash0 {
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
boot_partition: partition@0 {
|
|
label = "mcuboot";
|
|
reg = <0x00000000 0x0000C000>;
|
|
};
|
|
slot0_partition: partition@c000 {
|
|
label = "image-0";
|
|
reg = <0x0000C000 0x00067000>;
|
|
};
|
|
slot1_partition: partition@73000 {
|
|
label = "image-1";
|
|
reg = <0x00073000 0x00067000>;
|
|
};
|
|
storage_partition: partition@da000 {
|
|
label = "storage";
|
|
reg = <0x000da000 0x00006000>;
|
|
};
|
|
};
|
|
};
|