Skip to content

Commit fc164f4

Browse files
nordic-seglcfriedt
authored andcommitted
samples: drivers: i2c: rtio_loopback: Enable sample on nrf54lm20dk
Add overlay required to run the sample on nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 589c85d commit fc164f4

File tree

3 files changed

+73
-1
lines changed

3 files changed

+73
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2C_NRFX_TWIS_BUF_SIZE=256
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* SDA = P1.13 and P1.14
9+
* SCL = P1.23 and P1.24
10+
*/
11+
12+
/ {
13+
aliases {
14+
i2c-controller = &i2c21;
15+
i2c-controller-target = &i2c22;
16+
};
17+
};
18+
19+
&pinctrl {
20+
i2c21_default: i2c21_default {
21+
group1 {
22+
psels = <NRF_PSEL(TWIS_SDA, 1, 13)>,
23+
<NRF_PSEL(TWIS_SCL, 1, 23)>;
24+
bias-pull-up;
25+
};
26+
};
27+
28+
i2c21_sleep: i2c21_sleep {
29+
group1 {
30+
psels = <NRF_PSEL(TWIS_SDA, 1, 13)>,
31+
<NRF_PSEL(TWIS_SCL, 1, 23)>;
32+
low-power-enable;
33+
};
34+
};
35+
36+
i2c22_default: i2c22_default {
37+
group1 {
38+
psels = <NRF_PSEL(TWIS_SDA, 1, 14)>,
39+
<NRF_PSEL(TWIS_SCL, 1, 24)>;
40+
bias-pull-up;
41+
};
42+
};
43+
44+
i2c22_sleep: i2c22_sleep {
45+
group1 {
46+
psels = <NRF_PSEL(TWIS_SDA, 1, 14)>,
47+
<NRF_PSEL(TWIS_SCL, 1, 24)>;
48+
low-power-enable;
49+
};
50+
};
51+
};
52+
53+
&i2c21 {
54+
pinctrl-0 = <&i2c21_default>;
55+
pinctrl-1 = <&i2c21_sleep>;
56+
pinctrl-names = "default", "sleep";
57+
zephyr,concat-buf-size = <256>;
58+
status = "okay";
59+
};
60+
61+
&i2c22 {
62+
compatible = "nordic,nrf-twis";
63+
pinctrl-0 = <&i2c22_default>;
64+
pinctrl-1 = <&i2c22_sleep>;
65+
pinctrl-names = "default", "sleep";
66+
status = "okay";
67+
};

samples/drivers/i2c/rtio_loopback/sample.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ tests:
1414
platform_allow:
1515
- b_u585i_iot02a
1616
- nrf5340dk/nrf5340/cpuapp
17-
- nrf54l15dk/nrf54l15/cpuapp
1817
- nrf54h20dk/nrf54h20/cpuapp
18+
- nrf54l15dk/nrf54l15/cpuapp
19+
- nrf54lm20dk/nrf54lm20a/cpuapp
1920
- nucleo_f401re
2021
- nucleo_h503rb
2122
- ophelia4ev/nrf54l15/cpuapp

0 commit comments

Comments
 (0)