-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from DynamicDevices/shreya/nRF5340Tag_overlay
modified: boards/nrf5340tag_nrf5340_cpuapp.overlay
- Loading branch information
Showing
3 changed files
with
138 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,103 @@ | ||
/* Copyright (c) 2020 Nordic Semiconductor ASA | ||
/* Copyright (c) 2021 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/lora/sx126x.h> | ||
|
||
//&temp { | ||
// status = "okay"; | ||
//}; | ||
|
||
/ { | ||
/* | ||
* In some default configurations within the nRF Connect SDK, | ||
* e.g. on nRF52840, the chosen zephyr,entropy node is &cryptocell. | ||
* This devicetree overlay ensures that default is overridden wherever it | ||
* is set, as this application uses the RNG node for entropy exclusively. | ||
*/ | ||
// chosen { | ||
// zephyr,entropy = &rng; | ||
// }; | ||
|
||
aliases { | ||
lora0 = &lora; | ||
}; | ||
|
||
GNSS: zephyr,user { | ||
gnss_vbckp_on-gpios = <&gpio0 5 0>; | ||
gnss_vcc_on-gpios = <&gpio1 0 0>; | ||
gnss_reset-gpios = <&gpio1 6 0>; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
|
||
uart0_default: uart0_default { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 0, 25)>, <NRF_PSEL(UART_RTS, 0, 19)>; | ||
}; | ||
group2 { | ||
psels = <NRF_PSEL(UART_RX, 0, 24)>, <NRF_PSEL(UART_CTS, 0, 21)>; | ||
}; | ||
}; | ||
|
||
uart0_sleep: uart0_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(UART_TX, 0, 25)>, | ||
<NRF_PSEL(UART_RX, 0, 24)>, | ||
<NRF_PSEL(UART_RTS, 0, 19)>, | ||
<NRF_PSEL(UART_CTS, 0, 21)>; | ||
}; | ||
}; | ||
|
||
spi1_default: spi1_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 20)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 22)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 23)>; | ||
}; | ||
}; | ||
|
||
spi1_sleep: spi1_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 0, 20)>, | ||
<NRF_PSEL(SPIM_MOSI, 0, 22)>, | ||
<NRF_PSEL(SPIM_MISO, 0, 23)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
hw-flow-control; | ||
current-speed = <9600>; | ||
pinctrl-0 = <&uart0_default>; | ||
pinctrl-1 = <&uart0_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&spi1 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; | ||
|
||
pinctrl-0 = <&spi1_default>; | ||
pinctrl-1 = <&spi1_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
lora: lora@0 { | ||
compatible = "semtech,sx1262"; | ||
reg = <0>; | ||
reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; | ||
busy-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; | ||
// tx-enable-gpios = <&gpio0 25 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; | ||
// rx-enable-gpios = <&gpio0 24 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; | ||
dio1-gpios = <&gpio0 6 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >; | ||
antenna-enable-gpios = <&gpio1 7 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH) >; | ||
spi-max-frequency = <125000>; | ||
}; | ||
}; | ||
&gpio_fwd { | ||
uart { | ||
gpios = <&gpio0 11 0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters