116 lines
2.3 KiB
Plaintext
116 lines
2.3 KiB
Plaintext
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Heltec Mesh Node T114 — Device Tree Source
|
|
* SoC: nRF52840 QIAAVariant
|
|
* Radio: SX1262
|
|
*
|
|
* NOTE: GPIO pin numbers are placeholders. Verify against the T114
|
|
* schematic/documentation before using with real hardware.
|
|
* The T114 uses the nRF52840 SoC in a similar form factor to the
|
|
* RAK4631, but with different GPIO assignments.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
#include "heltec_t114-pinctrl.dtsi"
|
|
|
|
/ {
|
|
model = "Heltec Mesh Node T114";
|
|
compatible = "heltec,mesh-node-t114";
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,code-partition = &slot0_partition;
|
|
};
|
|
|
|
aliases {
|
|
lora0 = &lora;
|
|
led0 = &led0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
/* TODO: verify LED GPIO from T114 schematic */
|
|
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
|
|
label = "LED 0";
|
|
};
|
|
};
|
|
};
|
|
|
|
&uicr {
|
|
gpio-as-nreset;
|
|
};
|
|
|
|
&gpiote {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart1 {
|
|
compatible = "nordic,nrf-uarte";
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart1_default>;
|
|
pinctrl-1 = <&uart1_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&spi1 {
|
|
compatible = "nordic,nrf-spim";
|
|
status = "okay";
|
|
pinctrl-0 = <&spi1_default>;
|
|
pinctrl-names = "default";
|
|
|
|
lora: lora@0 {
|
|
compatible = "semtech,sx1262";
|
|
reg = <0>;
|
|
spi-max-frequency = <1000000>;
|
|
reset-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
|
|
busy-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
|
|
dio1-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
|
|
dio2-tx-enable;
|
|
dio3-tcxo-voltage = <SX126X_DIO3_TCXO_3V3>;
|
|
tcxo-power-startup-delay-ms = <5>;
|
|
};
|
|
};
|
|
|
|
zephyr_udc0: &usbd {
|
|
compatible = "nordic,nrf-usbd";
|
|
status = "okay";
|
|
};
|
|
|
|
&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>;
|
|
};
|
|
};
|
|
};
|