Skip to content

Commit 1f8018e

Browse files
committed
[nrf fromlist] tests: boards: nrf: i2c: Enable test execution on nrf54l20pdk
Add overlay needed to execute i2c_slave tests on nrf54l20pdk. Upstream PR #: 82965 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 99faf47 commit 1f8018e

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

boards/nordic/nrf54l20pdk/nrf54l20pdk_nrf54l20_cpuapp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ flash: 449
1515
supported:
1616
- counter
1717
- gpio
18+
- i2c
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRFX_TWIS22=y
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/ {
2+
aliases {
3+
i2c-slave = &i2c22;
4+
};
5+
};
6+
7+
&pinctrl {
8+
i2c21_default_alt: i2c21_default_alt {
9+
group1 {
10+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
11+
<NRF_PSEL(TWIM_SCL, 1, 14)>;
12+
};
13+
};
14+
15+
i2c21_sleep_alt: i2c21_sleep_alt {
16+
group1 {
17+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
18+
<NRF_PSEL(TWIM_SCL, 1, 14)>;
19+
low-power-enable;
20+
};
21+
};
22+
23+
i2c22_default_alt: i2c22_default_alt {
24+
group1 {
25+
/* Temporary workaround as it is currently not possible
26+
* to configure pins for TWIS with pinctrl.
27+
*/
28+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
29+
<NRF_PSEL(TWIM_SCL, 1, 15)>;
30+
bias-pull-up;
31+
};
32+
};
33+
34+
i2c22_sleep_alt: i2c22_sleep_alt {
35+
group1 {
36+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
37+
<NRF_PSEL(TWIM_SCL, 1, 15)>;
38+
low-power-enable;
39+
};
40+
};
41+
};
42+
43+
&i2c21 {
44+
compatible = "nordic,nrf-twim";
45+
status = "okay";
46+
pinctrl-0 = <&i2c21_default_alt>;
47+
pinctrl-1 = <&i2c21_sleep_alt>;
48+
pinctrl-names = "default", "sleep";
49+
sensor: sensor@54 {
50+
reg = <0x54>;
51+
};
52+
};
53+
54+
&i2c22 {
55+
compatible = "nordic,nrf-twis";
56+
status = "okay";
57+
pinctrl-0 = <&i2c22_default_alt>;
58+
pinctrl-1 = <&i2c22_sleep_alt>;
59+
pinctrl-names = "default", "sleep";
60+
};

tests/boards/nrf/i2c/i2c_slave/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ tests:
99
- nrf52840dk/nrf52840
1010
- nrf5340dk/nrf5340/cpuapp
1111
- nrf54l15dk/nrf54l15/cpuapp
12+
- nrf54l20pdk/nrf54l20/cpuapp
1213
- nrf54h20dk/nrf54h20/cpuapp
1314
- nrf54h20dk/nrf54h20/cpuppr
1415
integration_platforms:
1516
- nrf52840dk/nrf52840
1617
- nrf5340dk/nrf5340/cpuapp
1718
- nrf54l15dk/nrf54l15/cpuapp
19+
- nrf54l20pdk/nrf54l20/cpuapp
1820
- nrf54h20dk/nrf54h20/cpuapp
1921
- nrf54h20dk/nrf54h20/cpuppr

0 commit comments

Comments
 (0)