Skip to content

Commit 82eed24

Browse files
nordic-pikrnordic-piks
authored andcommitted
tests: drivers: i2c: i2c_nrfx_twim: add nrf54ls05dk and nrf54lv10dk
Add support for nrf54ls05dk and nrf54lv10dk in i2c_nrfx_twim tests Signed-off-by: Piotr Krzyzanowski <[email protected]>
1 parent 0ac9462 commit 82eed24

File tree

5 files changed

+129
-0
lines changed

5 files changed

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

tests/zephyr/drivers/i2c/i2c_nrfx_twim/testcase.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ common:
1111
tests:
1212
nrf.extended.drivers.i2c.nrfx_twim_async_api:
1313
platform_allow:
14+
- [email protected]/nrf54ls05b/cpuapp
15+
- nrf54ls05dk/nrf54ls05b/cpuapp
16+
- nrf54lv10dk/nrf54lv10a/cpuapp
1417
- nrf7120pdk/nrf7120/cpuapp
1518
integration_platforms:
19+
- nrf54ls05dk/nrf54ls05b/cpuapp
20+
- nrf54lv10dk/nrf54lv10a/cpuapp
1621
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)