boards: arm: b_l072z_lrwan1: Add the SX1276 LoRa radio
Wire up the SX1276 LoRa radio inside the CMWX1ZZABZ module. Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
This commit is contained in:
parent
0171bd9578
commit
2de3e7bd82
@ -54,6 +54,7 @@
|
||||
led3 = &red_led;
|
||||
sw0 = &user_button;
|
||||
eeprom-0 = &eeprom;
|
||||
lora0 = &lora;
|
||||
};
|
||||
};
|
||||
|
||||
@ -73,6 +74,26 @@ arduino_i2c: &i2c1 {};
|
||||
|
||||
&spi1 {
|
||||
status = "okay";
|
||||
cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
|
||||
|
||||
lora: sx1276@0 {
|
||||
compatible = "semtech,sx1276";
|
||||
reg = <0>;
|
||||
label = "sx1276";
|
||||
reset-gpios = <&gpioc 0 GPIO_ACTIVE_LOW>;
|
||||
dio-gpios = <&gpiob 4 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
|
||||
<&gpiob 1 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
|
||||
<&gpiob 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
|
||||
<&gpioc 13 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
|
||||
<&gpioa 5 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
|
||||
<&gpioa 4 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
||||
rfi-enable-gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
|
||||
rfo-enable-gpios = <&gpioc 2 GPIO_ACTIVE_HIGH>;
|
||||
pa-boost-enable-gpios = <&gpioc 1 GPIO_ACTIVE_HIGH>;
|
||||
tcxo-power-gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>;
|
||||
tcxo-power-startup-delay-ms = <5>;
|
||||
spi-max-frequency = <1000000>;
|
||||
};
|
||||
};
|
||||
|
||||
&spi2 {
|
||||
|
||||
@ -141,6 +141,8 @@ The Zephyr B-L072Z-LRWAN1 Discovery board configuration supports the following h
|
||||
+-----------+------------+-------------------------------------+
|
||||
| USB | on-chip | usb |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| LoRa | on-module | sx1276 |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other hardware features are not yet supported on this Zephyr port.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user