-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add gpio configuration for nrf54l15
allows to initialize FSK/LoRa, but still does not work Signed-off-by: Robert Gałat <[email protected]>
- Loading branch information
1 parent
f08b41c
commit 95b3ce1
Showing
4 changed files
with
103 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
96 changes: 96 additions & 0 deletions
96
samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
|
||
&pinctrl { | ||
spi21_default: spi21_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>, | ||
<NRF_PSEL(SPIM_MISO, 2, 9)>, | ||
<NRF_PSEL(SPIM_MOSI, 2, 8)>; | ||
}; | ||
}; | ||
|
||
spi21_sleep: spi21_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>, | ||
<NRF_PSEL(SPIM_MISO, 2, 9)>, | ||
<NRF_PSEL(SPIM_MOSI, 2, 8)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
sid_semtech: &spi21 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
pinctrl-0 = <&spi21_default>; | ||
pinctrl-1 = <&spi21_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
clock-frequency = <DT_FREQ_M(8)>; | ||
}; | ||
|
||
/{ | ||
semtech_sx1262_gpios{ | ||
compatible = "gpio-keys"; | ||
semtech_sx1262_cs: cs { | ||
gpios = <&gpio2 0xa GPIO_PULL_UP>; | ||
label = "semtech_sx1262 CS"; | ||
}; | ||
semtech_sx1262_reset_gpios: reset { | ||
gpios = <&gpio1 0xb (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>; | ||
label = "semtech_sx1262 Reset"; | ||
}; | ||
semtech_sx1262_busy_gpios: busy { | ||
gpios = <&gpio1 0xc 0x0>; | ||
label = "semtech_sx1262 Busy"; | ||
}; | ||
semtech_sx1262_antenna_enable_gpios: antena_enable { | ||
gpios = <&gpio2 0x7 0x0>; | ||
label = "semtech_sx1262 Antena Enable"; | ||
}; | ||
semtech_sx1262_dio1_gpios: dio1 { | ||
gpios = <&gpio1 0xa 0x0>; | ||
label = "semtech_sx1262 DIO1"; | ||
}; | ||
}; | ||
aliases { | ||
led0 = &led0; | ||
led1 = &led1; | ||
led2 = &led2; | ||
led3 = &led3; | ||
watchdog0 = &wdt30; | ||
/delete-property/ sw0; | ||
/delete-property/ sw1; | ||
/delete-property/ sw2; | ||
/delete-property/ sw3; | ||
}; | ||
}; | ||
|
||
/delete-node/ &button3; | ||
/delete-node/ &button2; | ||
/delete-node/ &button1; | ||
/delete-node/ &button0; | ||
|
||
&gpiote20 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpiote30 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio1 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio2 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio0 { | ||
status = "okay"; | ||
}; |
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