Skip to content

Commit ceb2d33

Browse files
nordic-seglnordicjm
authored andcommitted
boards: shields: pca63565: Enable shield on nrf54lm20dk
Add overlys that enable use of pca63565 on nrf54lm20dk. Extend tests that use pca63565 with configurations that execute on nrf54lm20dk. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 55a0bb7 commit ceb2d33

File tree

8 files changed

+213
-119
lines changed

8 files changed

+213
-119
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Copyright (C) 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/ {
7+
aliases {
8+
sensor-bme688 = &i2c22;
9+
accel0 = &adxl362;
10+
accel-gyro = &bmi270;
11+
/delete-property/ led0;
12+
/delete-property/ led1;
13+
/delete-property/ sw0;
14+
/delete-property/ mcuboot-button0;
15+
/delete-property/ mcuboot-led0;
16+
};
17+
};
18+
19+
/delete-node/ &led0; // P1.22 is adxl362 SPIM_SCK
20+
/delete-node/ &led1; // P1.25 is adxl362 SPIM_MISO
21+
/delete-node/ &button0; // P1.26 is adxl362 chip select signal
22+
23+
&pinctrl {
24+
i2c22_default: i2c22_default {
25+
group1 {
26+
psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
27+
<NRF_PSEL(TWIM_SDA, 1, 12)>;
28+
};
29+
};
30+
31+
i2c22_sleep: i2c22_sleep {
32+
group1 {
33+
psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
34+
<NRF_PSEL(TWIM_SDA, 1, 12)>;
35+
low-power-enable;
36+
};
37+
};
38+
39+
spi21_default: spi21_default {
40+
group1 {
41+
psels = <NRF_PSEL(SPIM_SCK, 1, 22)>,
42+
<NRF_PSEL(SPIM_MISO, 1, 25)>,
43+
<NRF_PSEL(SPIM_MOSI, 1, 24)>;
44+
};
45+
};
46+
47+
spi21_sleep: spi21_sleep {
48+
group1 {
49+
psels = <NRF_PSEL(SPIM_SCK, 1, 22)>,
50+
<NRF_PSEL(SPIM_MISO, 1, 25)>,
51+
<NRF_PSEL(SPIM_MOSI, 1, 24)>;
52+
low-power-enable;
53+
};
54+
};
55+
};
56+
57+
&i2c22 {
58+
status = "okay";
59+
zephyr,concat-buf-size = <512>;
60+
pinctrl-0 = <&i2c22_default>;
61+
pinctrl-1 = <&i2c22_sleep>;
62+
pinctrl-names = "default", "sleep";
63+
64+
bme688: bme688@76 {
65+
compatible = "bosch,bme680";
66+
status = "okay";
67+
reg = <0x76>;
68+
};
69+
};
70+
71+
&spi21 {
72+
status = "okay";
73+
pinctrl-0 = <&spi21_default>;
74+
pinctrl-1 = <&spi21_sleep>;
75+
pinctrl-names = "default", "sleep";
76+
cs-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>,
77+
<&gpio1 26 GPIO_ACTIVE_LOW>;
78+
79+
bmi270: bmi270@0 {
80+
compatible = "bosch,bmi270";
81+
status = "okay";
82+
reg = <0>;
83+
spi-max-frequency = <DT_FREQ_M(8)>;
84+
};
85+
86+
adxl362: adxl362@1 {
87+
compatible = "adi,adxl362";
88+
status = "okay";
89+
reg = <1>;
90+
int1-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH)>;
91+
spi-max-frequency = <DT_FREQ_M(8)>;
92+
};
93+
};
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Copyright (C) 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
*/
5+
6+
/ {
7+
aliases {
8+
sensor-bme688 = &i2c22;
9+
accel0 = &adxl362;
10+
accel-gyro = &bmi270;
11+
/delete-property/ led0;
12+
/delete-property/ led1;
13+
/delete-property/ sw0;
14+
/delete-property/ mcuboot-button0;
15+
/delete-property/ mcuboot-led0;
16+
};
17+
};
18+
19+
/delete-node/ &led0; // P1.22 is adxl362 SPIM_SCK
20+
/delete-node/ &led1; // P1.25 is adxl362 SPIM_MISO
21+
/delete-node/ &button0; // P1.26 is adxl362 chip select signal
22+
23+
&pinctrl {
24+
i2c22_default: i2c22_default {
25+
group1 {
26+
psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
27+
<NRF_PSEL(TWIM_SDA, 1, 12)>;
28+
};
29+
};
30+
31+
i2c22_sleep: i2c22_sleep {
32+
group1 {
33+
psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
34+
<NRF_PSEL(TWIM_SDA, 1, 12)>;
35+
low-power-enable;
36+
};
37+
};
38+
39+
spi21_default: spi21_default {
40+
group1 {
41+
psels = <NRF_PSEL(SPIM_SCK, 1, 22)>,
42+
<NRF_PSEL(SPIM_MISO, 1, 25)>,
43+
<NRF_PSEL(SPIM_MOSI, 1, 24)>;
44+
};
45+
};
46+
47+
spi21_sleep: spi21_sleep {
48+
group1 {
49+
psels = <NRF_PSEL(SPIM_SCK, 1, 22)>,
50+
<NRF_PSEL(SPIM_MISO, 1, 25)>,
51+
<NRF_PSEL(SPIM_MOSI, 1, 24)>;
52+
low-power-enable;
53+
};
54+
};
55+
};
56+
57+
&i2c22 {
58+
status = "okay";
59+
zephyr,concat-buf-size = <512>;
60+
pinctrl-0 = <&i2c22_default>;
61+
pinctrl-1 = <&i2c22_sleep>;
62+
pinctrl-names = "default", "sleep";
63+
64+
bme688: bme688@76 {
65+
compatible = "bosch,bme680";
66+
status = "okay";
67+
reg = <0x76>;
68+
};
69+
};
70+
71+
&spi21 {
72+
status = "okay";
73+
pinctrl-0 = <&spi21_default>;
74+
pinctrl-1 = <&spi21_sleep>;
75+
pinctrl-names = "default", "sleep";
76+
cs-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>,
77+
<&gpio1 26 GPIO_ACTIVE_LOW>;
78+
79+
bmi270: bmi270@0 {
80+
compatible = "bosch,bmi270";
81+
status = "okay";
82+
reg = <0>;
83+
spi-max-frequency = <DT_FREQ_M(8)>;
84+
};
85+
86+
adxl362: adxl362@1 {
87+
compatible = "adi,adxl362";
88+
status = "okay";
89+
reg = <1>;
90+
int1-gpios = <&gpio1 14 (GPIO_ACTIVE_HIGH)>;
91+
spi-max-frequency = <DT_FREQ_M(8)>;
92+
};
93+
};

samples/zephyr/sensor/accel_polling/boards/nrf54lm20pdk_nrf54lm20a_cpuapp.overlay

Lines changed: 0 additions & 49 deletions
This file was deleted.

samples/zephyr/sensor/accel_polling/sample.yaml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ tests:
6464
extra_configs:
6565
- CONFIG_LOG=y
6666
- CONFIG_SENSOR_LOG_LEVEL_DBG=y
67-
platform_allow: nrf54l15dk/nrf54l15/cpuapp
67+
platform_allow:
68+
- nrf54l15dk/nrf54l15/cpuapp
69+
- nrf54lm20dk/nrf54lm20a/cpuapp
6870

6971
nrf.extended.sample.sensor.accel_polling.nrf54l_coverage:
7072
filter: CONFIG_COVERAGE
@@ -76,9 +78,11 @@ tests:
7678
s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
7779
extra_args:
7880
- SHIELD=pca63565;coverage_support
79-
platform_allow: nrf54l15dk/nrf54l15/cpuapp
81+
platform_allow:
82+
- nrf54l15dk/nrf54l15/cpuapp
83+
- nrf54lm20dk/nrf54lm20a/cpuapp
8084

81-
nrf.extended.sample.sensor.accel_polling.nrf54l15_cpuflpr:
85+
nrf.extended.sample.sensor.accel_polling.nrf54l_cpuflpr:
8286
filter: not CONFIG_COVERAGE
8387
sysbuild: true
8488
harness_config:
@@ -89,22 +93,10 @@ tests:
8993
s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
9094
extra_args:
9195
- SHIELD=pca63565
92-
- vpr_launcher_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/boards/shields/pca63565/boards/nrf54l15dk_nrf54l15_vpr_launcher.overlay"
93-
extra_configs:
94-
- CONFIG_LOG=y
95-
- CONFIG_SENSOR_LOG_LEVEL_DBG=y
96-
platform_allow: nrf54l15dk/nrf54l15/cpuflpr
97-
98-
nrf.extended.sample.sensor.accel_polling.nrf54lm20:
99-
harness_config:
100-
fixture: pca63565
101-
type: one_line
102-
regex:
103-
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m/s\\^2\\]: \\(\\s*-?[0-9\\.]*,\\\
104-
s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
96+
- vpr_launcher_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/boards/shields/pca63565/boards/nrf54l_vpr_launcher.overlay"
10597
extra_configs:
10698
- CONFIG_LOG=y
10799
- CONFIG_SENSOR_LOG_LEVEL_DBG=y
108100
platform_allow:
109-
- nrf54lm20pdk/nrf54lm20a/cpuapp
110-
- [email protected]/nrf54lm20a/cpuapp
101+
- nrf54l15dk/nrf54l15/cpuflpr
102+
- nrf54lm20dk/nrf54lm20a/cpuflpr

samples/zephyr/sensor/bme680/boards/nrf54lm20pdk_nrf54lm20a_cpuapp.overlay

Lines changed: 0 additions & 36 deletions
This file was deleted.

samples/zephyr/sensor/bme680/sample.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ tests:
5858
.]*$"
5959
extra_args:
6060
- SHIELD=pca63565
61-
platform_allow: nrf54l15dk/nrf54l15/cpuapp
61+
platform_allow:
62+
- nrf54l15dk/nrf54l15/cpuapp
63+
- nrf54lm20dk/nrf54lm20a/cpuapp
6264

6365
nrf.extended.sample.sensor.bme680.nrf54l_coverage:
6466
filter: CONFIG_COVERAGE
@@ -70,7 +72,9 @@ tests:
7072
.]*$"
7173
extra_args:
7274
- SHIELD=pca63565;coverage_support
73-
platform_allow: nrf54l15dk/nrf54l15/cpuapp
75+
platform_allow:
76+
- nrf54l15dk/nrf54l15/cpuapp
77+
- nrf54lm20dk/nrf54lm20a/cpuapp
7478

7579
nrf.extended.sample.sensor.bme680.nrf54l_cpuflpr:
7680
filter: not CONFIG_COVERAGE
@@ -83,16 +87,7 @@ tests:
8387
.]*$"
8488
extra_args:
8589
- SHIELD=pca63565
86-
- vpr_launcher_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/boards/shields/pca63565/boards/nrf54l15dk_nrf54l15_vpr_launcher.overlay"
87-
platform_allow: nrf54l15dk/nrf54l15/cpuflpr
88-
89-
nrf.extended.sample.sensor.bme680.nrf54lm20:
90-
harness_config:
91-
fixture: pca63565
92-
type: one_line
93-
regex:
94-
- "^\\s*T:\\s*-?[0-9\\.]*; P:\\s*-?[0-9\\.]*; H: \\s*-?[0-9\\.]*; G:\\s*-?[0-9\\\
95-
.]*$"
90+
- vpr_launcher_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/boards/shields/pca63565/boards/nrf54l_vpr_launcher.overlay"
9691
platform_allow:
97-
- nrf54lm20pdk/nrf54lm20a/cpuapp
98-
- [email protected]/nrf54lm20a/cpuapp
92+
- nrf54l15dk/nrf54l15/cpuapp
93+
- nrf54lm20dk/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)