Skip to content

Commit

Permalink
nrf54: add support for v0.3.0 of the pdk
Browse files Browse the repository at this point in the history
KRKNWK-18781

add semtech configuration for [email protected]

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed May 7, 2024
1 parent 4ecfae4 commit 661a649
Show file tree
Hide file tree
Showing 24 changed files with 223 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SOC_FLASH_NRF_TIMEOUT_MULTIPLIER=100
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* 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, 1, 11)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
};
};

spi21_sleep: spi21_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
<NRF_PSEL(SPIM_MISO, 1, 11)>,
<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 = <&gpio0 0x2 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
label = "semtech_sx1262 Reset";
};
semtech_sx1262_busy_gpios: busy {
gpios = <&gpio0 0x0 0x0>;
label = "semtech_sx1262 Busy";
};
semtech_sx1262_antenna_enable_gpios: antena_enable {
gpios = <&gpio0 0x1 0x0>;
label = "semtech_sx1262 Antena Enable";
};
semtech_sx1262_dio1_gpios: dio1 {
gpios = <&gpio0 0x3 0x0>;
label = "semtech_sx1262 DIO1";
};
};
};

&gpio1 {
status = "okay";
};

&gpio2 {
status = "okay";
};

&gpio0 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SOC_FLASH_NRF_TIMEOUT_MULTIPLIER=100
4 changes: 2 additions & 2 deletions samples/sid_end_device/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ common:
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tests:
sample.sidewalk.hello:
extra_configs:
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/critical_region/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tests:
sidewalk.functional.critical_region:
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
4 changes: 2 additions & 2 deletions tests/functional/crypto/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests:
sidewalk.functional.crypto:
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
4 changes: 2 additions & 2 deletions tests/functional/interrupts/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests:
unity.sidewalk.functional.interrupts:
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
4 changes: 2 additions & 2 deletions tests/functional/mfg_storage/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ tests:
sidewalk.functional.mfg_storage:
skip: true
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
4 changes: 2 additions & 2 deletions tests/functional/pal_delay/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests:
sidewalk.functional.delay:
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tags: Sidewalk
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@
*/


&pinctrl {
&pinctrl {
spi00_default: spi00_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
<NRF_PSEL(SPIM_MISO, 2, 9)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
<NRF_PSEL(SPIM_MISO, 2, 9)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
};
};

spi00_sleep: spi00_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
<NRF_PSEL(SPIM_MISO, 2, 9)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
<NRF_PSEL(SPIM_MISO, 2, 9)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
low-power-enable;
};
};
};

sid_semtech: &spi00 {
sid_semtech: &spi00 {
compatible = "nordic,nrf-spim";
status = "okay";
pinctrl-0 = <&spi00_default>;
Expand Down Expand Up @@ -56,7 +56,7 @@
gpios = <&gpio1 0xa 0x0>;
label = "semtech_sx1262 DIO1";
};
};
};
aliases {
led0 = &led0;
led1 = &led1;
Expand All @@ -74,3 +74,23 @@
/delete-node/ &button2;
/delete-node/ &button1;
/delete-node/ &button0;

&gpiote20 {
status = "okay";
};

&gpiote30 {
status = "okay";
};

&gpio1 {
status = "okay";
};

&gpio2 {
status = "okay";
};

&gpio0 {
status = "okay";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* 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, 1, 11)>,
<NRF_PSEL(SPIM_MOSI, 2, 8)>;
};
};

spi21_sleep: spi21_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
<NRF_PSEL(SPIM_MISO, 1, 11)>,
<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 = <&gpio0 0x2 (GPIO_ACTIVE_LOW|GPIO_PULL_UP)>;
label = "semtech_sx1262 Reset";
};
semtech_sx1262_busy_gpios: busy {
gpios = <&gpio0 0x0 0x0>;
label = "semtech_sx1262 Busy";
};
semtech_sx1262_antenna_enable_gpios: antena_enable {
gpios = <&gpio0 0x1 0x0>;
label = "semtech_sx1262 Antena Enable";
};
semtech_sx1262_dio1_gpios: dio1 {
gpios = <&gpio0 0x3 0x0>;
label = "semtech_sx1262 DIO1";
};
};
};

&gpio1 {
status = "okay";
};

&gpio2 {
status = "okay";
};

&gpio0 {
status = "okay";
};
10 changes: 5 additions & 5 deletions tests/functional/spi_bus/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
tests:
sidewalk.functional.spi_bus:
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tags: Sidewalk
# harness: ztest
# harness_config:
# fixture: semtech_shield
harness: ztest
harness_config:
fixture: semtech_shield
4 changes: 2 additions & 2 deletions tests/functional/storage/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests:
sidewalk.functional.storage:
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
2 changes: 1 addition & 1 deletion tests/functional/temperature/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ ZTEST(temperature, test_valid_temperature_range_for_SoC)
{
test_initialize();
int16_t die_temp = sid_pal_temperature_get();
validate_temp_reading(die_temp);
printk("die temperature = %d", die_temp);
validate_temp_reading(die_temp);
}

static void analyze_temp_readings(int16_t *values, size_t count, double limit)
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/temperature/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ tests:
platform_allow:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
# - nrf54l15pdk/nrf54l15/cpuapp
# - nrf54l15pdk@0.3.0/nrf54l15/cpuapp temperature sensor not working
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
# - nrf54l15pdk/nrf54l15/cpuapp
# - nrf54l15pdk@0.3.0/nrf54l15/cpuapp temperature sensor not working
tags: Sidewalk
4 changes: 2 additions & 2 deletions tests/functional/time/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
tests:
sidewalk.functional.time:
tags: Sidewalk
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
4 changes: 2 additions & 2 deletions tests/manual/ble/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ sample:
description: Test Bluetooth with controller (e.g. smartphone with nRF Connect App)
tests:
sidewalk.test.ble:
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
build_only: true
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tags: Sidewalk
4 changes: 2 additions & 2 deletions tests/manual/log/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ sample:
description: Test printing different sidewalk logs
tests:
sidewalk.test.log:
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
build_only: true
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tags: Sidewalk
4 changes: 2 additions & 2 deletions tests/manual/simple_bootloader/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ sample:
tests:
sidewalk.test.simple_bootloader:
build_only: true
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk/nrf54l15/cpuapp
platform_allow: nrf52840dk/nrf52840 nrf5340dk/nrf5340/cpuapp nrf54l15pdk@0.3.0/nrf54l15/cpuapp
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15pdk/nrf54l15/cpuapp
- nrf54l15pdk@0.3.0/nrf54l15/cpuapp
tags: Sidewalk
Loading

0 comments on commit 661a649

Please sign in to comment.