/* * SPDX-License-Identifier: Apache-2.0 * * LilyGo T-Beam V1.1 — Device Tree Source (PROCPU) * * SoC: ESP32-D0WD * Radio: SX1276 / SX1278 (LORA32 module) * Flash: 4 MB * * LoRa: MOSI=27 MISO=19 SCK=5 NSS=18 RST=23 DIO0=26 * UART0: TX=1 RX=3 (via CP2104 USB-serial) */ /dts-v1/; #include #include "lilygo_tbeam-pinctrl.dtsi" #include / { model = "LilyGo T-Beam V1.1 PROCPU"; compatible = "lilygo,t-beam"; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,flash-controller = &flash; }; aliases { lora0 = &lora; }; buttons { compatible = "gpio-keys"; boot_button: button_0 { gpios = <&gpio0 38 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Boot Button"; zephyr,code = ; }; }; }; &uart0 { status = "okay"; current-speed = <115200>; pinctrl-0 = <&uart0_default>; pinctrl-names = "default"; }; &spi3 { status = "okay"; #address-cells = <1>; #size-cells = <0>; pinctrl-0 = <&spim3_default>; pinctrl-names = "default"; cs-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; lora: lora@0 { compatible = "semtech,sx1276"; reg = <0>; spi-max-frequency = <8000000>; reset-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; dio1-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; power-amplifier-output = "pa-boost"; }; }; &gpio0 { status = "okay"; }; &gpio1 { status = "okay"; }; &flash0 { status = "okay"; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0x00010000>; }; slot0_partition: partition@10000 { label = "image-0"; reg = <0x00010000 0x00180000>; }; slot1_partition: partition@190000 { label = "image-1"; reg = <0x00190000 0x00180000>; }; storage_partition: partition@310000 { label = "storage"; reg = <0x00310000 0x000F0000>; }; }; };