Initial import
This commit is contained in:
6
boards/heltec/heltec_t114/Kconfig.defconfig
Normal file
6
boards/heltec/heltec_t114/Kconfig.defconfig
Normal file
@@ -0,0 +1,6 @@
|
||||
if BOARD_HELTEC_T114
|
||||
|
||||
config BOARD
|
||||
default "heltec_t114"
|
||||
|
||||
endif # BOARD_HELTEC_T114
|
||||
2
boards/heltec/heltec_t114/Kconfig.heltec_t114
Normal file
2
boards/heltec/heltec_t114/Kconfig.heltec_t114
Normal file
@@ -0,0 +1,2 @@
|
||||
config BOARD_HELTEC_T114
|
||||
select SOC_NRF52840_QIAA
|
||||
7
boards/heltec/heltec_t114/board.cmake
Normal file
7
boards/heltec/heltec_t114/board.cmake
Normal file
@@ -0,0 +1,7 @@
|
||||
# Heltec T114 — board.cmake
|
||||
# Uses nrfjprog or pyocd for flashing via SWD.
|
||||
# The board exposes a SWD header for programming.
|
||||
board_runner_args(nrfjprog "--nrf-family=NRF52")
|
||||
board_runner_args(pyocd "--target=nrf52840")
|
||||
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
||||
7
boards/heltec/heltec_t114/board.yml
Normal file
7
boards/heltec/heltec_t114/board.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
board:
|
||||
name: heltec_t114
|
||||
full_name: "Heltec Mesh Node T114"
|
||||
vendor: heltec
|
||||
url: https://heltec.org/project/mesh-node-t114/
|
||||
socs:
|
||||
- name: nrf52840
|
||||
46
boards/heltec/heltec_t114/heltec_t114-pinctrl.dtsi
Normal file
46
boards/heltec/heltec_t114/heltec_t114-pinctrl.dtsi
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Heltec T114 — pin control definitions
|
||||
*/
|
||||
|
||||
#include <nordic/nrf52840.dtsi>
|
||||
#include <dt-bindings/pinctrl/nrf-pinctrl.h>
|
||||
|
||||
&pinctrl {
|
||||
uart1_default: uart1_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 10)>;
|
||||
};
|
||||
group2 {
|
||||
psels = <NRF_PSEL(UART_RX, 0, 9)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
uart1_sleep: uart1_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 10)>,
|
||||
<NRF_PSEL(UART_RX, 0, 9)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
/* SPI1 for LR1110 */
|
||||
spi1_default: spi1_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 19)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 22)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 23)>;
|
||||
};
|
||||
};
|
||||
|
||||
spi1_sleep: spi1_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(SPIM_SCK, 0, 19)>,
|
||||
<NRF_PSEL(SPIM_MOSI, 0, 22)>,
|
||||
<NRF_PSEL(SPIM_MISO, 0, 23)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
115
boards/heltec/heltec_t114/heltec_t114.dts
Normal file
115
boards/heltec/heltec_t114/heltec_t114.dts
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
8
boards/heltec/heltec_t114/heltec_t114_defconfig
Normal file
8
boards/heltec/heltec_t114/heltec_t114_defconfig
Normal file
@@ -0,0 +1,8 @@
|
||||
CONFIG_SOC_NRF52840_QIAA=y
|
||||
CONFIG_BOARD_HELTEC_T114=y
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_FLASH_MAP=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_NRFX_POWER=y
|
||||
Reference in New Issue
Block a user