Skip to content

Commit 234efe4

Browse files
tests: drivers: i2c: target_api: add nrf54l15 to test suite
Add nrf54l15 cpuapp to test suite. Signed-off-by: Bjarki Arge Andreasen <[email protected]>
1 parent 8337f4d commit 234efe4

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2C_NRFX_TWIS_BUF_SIZE=256
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* SDA = P1.8 and P1.9
9+
* SCL = P1.10 and P1.11
10+
*/
11+
12+
&pinctrl {
13+
i2c21_default: i2c21_default {
14+
group1 {
15+
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
16+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
17+
bias-pull-up;
18+
};
19+
};
20+
21+
i2c21_sleep: i2c21_sleep {
22+
group1 {
23+
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
24+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
25+
low-power-enable;
26+
};
27+
};
28+
29+
i2c22_default: i2c22_default {
30+
group1 {
31+
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
32+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
33+
bias-pull-up;
34+
};
35+
};
36+
37+
i2c22_sleep: i2c22_sleep {
38+
group1 {
39+
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
40+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
41+
low-power-enable;
42+
};
43+
};
44+
};
45+
46+
&i2c21 {
47+
pinctrl-0 = <&i2c21_default>;
48+
pinctrl-1 = <&i2c21_sleep>;
49+
pinctrl-names = "default", "sleep";
50+
zephyr,concat-buf-size = <256>;
51+
status = "okay";
52+
53+
eeprom1: eeprom@56 {
54+
compatible = "zephyr,i2c-target-eeprom";
55+
reg = <0x56>;
56+
address-width = <8>;
57+
size = <256>;
58+
};
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+
68+
eeprom0: eeprom@54 {
69+
compatible = "zephyr,i2c-target-eeprom";
70+
reg = <0x54>;
71+
address-width = <8>;
72+
size = <256>;
73+
};
74+
};

tests/drivers/i2c/i2c_target_api/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,8 @@ tests:
5454
- max32675evkit
5555
- max32680evkit/max32680/m4
5656
- max32690evkit/max32690/m4
57+
- nrf5340dk/nrf5340/cpuapp
58+
- nrf54h20dk/nrf54h20/cpuapp
59+
- nrf54l15dk/nrf54l15/cpuapp
5760
integration_platforms:
5861
- max32690evkit/max32690/m4

0 commit comments

Comments
 (0)