LoRa device type + SX1262 kernel driver (first checkpoint) (#565)
Adds sub-GHz radio support to Tactility as a first-class kernel device type, plus a driver for the Semtech SX1262. Continues the radio work discussed in #342, brought up to the current kernel driver model (rather than the deprecated tt::hal layer the earlier prototype targeted).
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
dependencies:
|
||||
- Platforms/platform-esp32
|
||||
- Drivers/sx126x-module
|
||||
- Drivers/xl9555-module
|
||||
- Drivers/cst66xx-module
|
||||
- Drivers/gdeq031t10-module
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <tactility/bindings/esp32_sdspi.h>
|
||||
#include <tactility/bindings/esp32_pwm_ledc.h>
|
||||
#include <tactility/bindings/pwm_backlight.h>
|
||||
#include <bindings/sx1262.h>
|
||||
#include <bindings/xl9555.h>
|
||||
#include <bindings/cst66xx.h>
|
||||
#include <bindings/gdeq031t10.h>
|
||||
@@ -136,7 +137,7 @@
|
||||
host = <SPI2_HOST>;
|
||||
cs-gpios = <&gpio0 34 GPIO_FLAG_NONE>, // 0: EPD display
|
||||
<&gpio0 48 GPIO_FLAG_NONE>, // 1: SD card
|
||||
<&gpio0 3 GPIO_FLAG_NONE>; // 2: LoRa radio (SX1262, not wired up yet)
|
||||
<&gpio0 3 GPIO_FLAG_NONE>; // 2: LoRa radio (SX1262)
|
||||
pin-mosi = <&gpio0 33 GPIO_FLAG_NONE>;
|
||||
pin-miso = <&gpio0 47 GPIO_FLAG_NONE>;
|
||||
pin-sclk = <&gpio0 36 GPIO_FLAG_NONE>;
|
||||
@@ -160,5 +161,22 @@
|
||||
status = "disabled";
|
||||
frequency-khz = <20000>;
|
||||
};
|
||||
|
||||
// SX1262 LoRa transceiver, wired per the vendor docs/pinmap.md and
|
||||
// examples/LoRa_sx1262: CS/RST/DIO1/BUSY = GPIO 3/4/5/6, TCXO 2.4 V,
|
||||
// DIO2 drives the antenna TX/RX switch. Module power (LORA_EN, P01)
|
||||
// and antenna select (LORA_SEL, P04: high = internal antenna) are
|
||||
// gated by the XL9555 IO expander.
|
||||
radio@2 {
|
||||
compatible = "semtech,sx1262";
|
||||
reg = <2>;
|
||||
pin-reset = <&gpio0 4 GPIO_FLAG_NONE>;
|
||||
pin-dio1 = <&gpio0 5 GPIO_FLAG_NONE>;
|
||||
pin-busy = <&gpio0 6 GPIO_FLAG_NONE>;
|
||||
pin-enable = <&xl9555 1 GPIO_FLAG_NONE>;
|
||||
pin-antenna-select = <&xl9555 4 GPIO_FLAG_NONE>;
|
||||
tcxo-millivolts = <2400>;
|
||||
dio2-as-rf-switch;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user