Initial import

This commit is contained in:
2026-03-25 18:14:45 +01:00
commit d074cd2e43
99 changed files with 3781 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
if BOARD_SENSECAP_T1000E
config BOARD
default "sensecap_t1000e"
endif # BOARD_SENSECAP_T1000E

View File

@@ -0,0 +1,2 @@
config BOARD_SENSECAP_T1000E
select SOC_NRF52840_QIAA

View File

@@ -0,0 +1,6 @@
# SenseCAP T1000-E — board.cmake
# Uses nrfjprog or pyocd for flashing via SWD.
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)

View File

@@ -0,0 +1,7 @@
board:
name: sensecap_t1000e
full_name: "SenseCAP T1000-E"
vendor: sensecap
url: https://www.seeedstudio.com/SenseCAP-Card-Tracker-T1000-E-p-5913.html
socs:
- name: nrf52840

View File

@@ -0,0 +1,47 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* SenseCAP T1000-E — pin control definitions
* NOTE: GPIO numbers are placeholders. Verify from schematic.
*/
#include <nordic/nrf52840.dtsi>
#include <dt-bindings/pinctrl/nrf-pinctrl.h>
&pinctrl {
uart0_default: uart0_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 25)>;
};
group2 {
psels = <NRF_PSEL(UART_RX, 0, 24)>;
bias-pull-up;
};
};
uart0_sleep: uart0_sleep {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 25)>,
<NRF_PSEL(UART_RX, 0, 24)>;
low-power-enable;
};
};
/* SPI1 for LR1110 — verify pins from T1000-E schematic */
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 17)>,
<NRF_PSEL(SPIM_MOSI, 0, 18)>,
<NRF_PSEL(SPIM_MISO, 0, 19)>;
};
};
spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 17)>,
<NRF_PSEL(SPIM_MOSI, 0, 18)>,
<NRF_PSEL(SPIM_MISO, 0, 19)>;
low-power-enable;
};
};
};

View File

@@ -0,0 +1,116 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* SenseCAP T1000-E — Device Tree Source
* SoC: nRF52840
* Radio: Semtech LR1110 (LoRa + GNSS multi-protocol transceiver)
*
* NOTE: GPIO pin numbers are placeholders. Verify against the
* SenseCAP T1000-E schematic before using with real hardware.
* The T1000-E is a different product from the Seeed Wio Tracker 1110,
* despite sharing the same SoC and radio chip.
*/
/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include "sensecap_t1000e-pinctrl.dtsi"
/ {
model = "SenseCAP T1000-E";
compatible = "sensecap,t1000e";
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};
aliases {
lora0 = &lora;
led0 = &led_green;
};
leds {
compatible = "gpio-leds";
led_green: led_0 {
/* TODO: verify LED GPIO from T1000-E schematic */
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
label = "Green LED";
};
};
};
&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-names = "default";
};
/*
* LR1110 on SPI1
* Pin assignments are placeholders — must be verified from schematic.
*/
&spi1 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
cs-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
lora: lora@0 {
compatible = "semtech,lr11xx";
reg = <0>;
spi-max-frequency = <4000000>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
busy-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
event-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
};
};
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>;
};
};
};

View File

@@ -0,0 +1,8 @@
CONFIG_SOC_NRF52840_QIAA=y
CONFIG_BOARD_SENSECAP_T1000E=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_GPIO=y
CONFIG_SPI=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_NRFX_POWER=y