diff --git a/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.conf b/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.conf index 31a1ed29e2..d6a0780fe6 100644 --- a/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.conf +++ b/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.conf @@ -10,5 +10,4 @@ # which does not support interrupts. CONFIG_DK_LIBRARY_BUTTON_NO_ISR=y -CONFIG_SIDEWALK_SUBGHZ_SUPPORT=n CONFIG_SOC_FLASH_NRF_TIMEOUT_MULTIPLIER=100 diff --git a/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay b/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay new file mode 100644 index 0000000000..6ea036b65f --- /dev/null +++ b/samples/sid_end_device/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2024 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + + +&pinctrl { + spi21_default: spi21_default { + group1 { + psels = , + , + ; + }; + }; + + spi21_sleep: spi21_sleep { + group1 { + psels = , + , + ; + 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 = ; +}; + +/{ + 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"; +}; diff --git a/subsys/sal/sid_pal/src/sid_gpio_utils.c b/subsys/sal/sid_pal/src/sid_gpio_utils.c index 3e26e7dcdf..fabfc91ae0 100644 --- a/subsys/sal/sid_pal/src/sid_gpio_utils.c +++ b/subsys/sal/sid_pal/src/sid_gpio_utils.c @@ -81,6 +81,9 @@ uint32_t sid_gpio_utils_register_gpio(struct gpio_dt_spec gpio_from_dts) static bool initialized = false; if (!initialized) { initialized = true; + sid_gpio_utils_gpio_set_flags( + ctx.next_free_slot, + ctx.supported_pins[ctx.next_free_slot].configuration_cache); k_work_queue_init(&sidewalk_gpio_workq); k_work_queue_start(&sidewalk_gpio_workq, sidewalk_gpio_workq_stack, CONFIG_SIDEWALK_GPIO_IRQ_STACK_SIZE, diff --git a/utils/include/application_states.h b/utils/include/application_states.h index 7f1c3d2f78..09eb55425b 100644 --- a/utils/include/application_states.h +++ b/utils/include/application_states.h @@ -31,14 +31,14 @@ X(receiving, gpio1, 3) #elif defined(NRF54L15_ENGA_XXAA) #define X_APPLICAITON_STATES \ - X(error, gpio1, 4) \ + X(error, gpio0, 4) \ X(working, gpio1, 14) \ X(registered, gpio1, 13) \ X(time_sync, gpio1, 8) \ X(connected, gpio0, 4) \ - X(dfu, gpio1, 5) \ - X(sending, gpio1, 6) \ - X(receiving, gpio1, 7) + X(dfu, gpio0, 4) \ + X(sending, gpio0, 4) \ + X(receiving, gpio0, 4) #else #error "Unknow device application states." #endif