Skip to content

Commit be299e1

Browse files
mstasiaknordicNordicBuilder
authored andcommitted
tests: i2c: align to nRF54LV10DK
Aligned i2c tests to nRF54LV10DK. Signed-off-by: Michał Stasiak <[email protected]>
1 parent e1205e9 commit be299e1

File tree

8 files changed

+84
-11
lines changed

8 files changed

+84
-11
lines changed

samples/zephyr/drivers/i2c/rtio_loopback/boards/nrf54lv10dk_nrf54lv10a_cpuapp.overlay

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* SDA = P1.8 and P1.9
3-
* SCL = P1.14 and P1.15
3+
* SCL = P1.10 and P1.11
44
*/
55

66
/ {
@@ -14,31 +14,31 @@
1414
i2c20_default: i2c20_default {
1515
group1 {
1616
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
17-
<NRF_PSEL(TWIS_SCL, 1, 14)>;
17+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
1818
bias-pull-up;
1919
};
2020
};
2121

2222
i2c20_sleep: i2c20_sleep {
2323
group1 {
2424
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
25-
<NRF_PSEL(TWIS_SCL, 1, 14)>;
25+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
2626
low-power-enable;
2727
};
2828
};
2929

3030
i2c21_default: i2c21_default {
3131
group1 {
3232
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
33-
<NRF_PSEL(TWIS_SCL, 1, 15)>;
33+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
3434
bias-pull-up;
3535
};
3636
};
3737

3838
i2c21_sleep: i2c21_sleep {
3939
group1 {
4040
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
41-
<NRF_PSEL(TWIS_SCL, 1, 15)>;
41+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
4242
low-power-enable;
4343
};
4444
};

samples/zephyr/drivers/i2c/rtio_loopback/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tests:
2121
- [email protected]/nrf54lm20a/cpuapp
2222
- nrf54lv10dk/nrf54lv10a/cpuapp
2323
- [email protected]/nrf54lv10a/cpuapp
24+
- [email protected]/nrf54lv10a/cpuapp
2425
integration_platforms:
2526
- nrf54lm20pdk/nrf54lm20a/cpuapp
2627
- nrf54lv10dk/nrf54lv10a/cpuapp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRFX_TWIS21=y
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Two loopbacks are required:
3+
* P1.08 - P1.09
4+
* P1.10 - P1.11
5+
*/
6+
7+
8+
/ {
9+
aliases {
10+
i2c-slave = &i2c21;
11+
};
12+
};
13+
14+
&pinctrl {
15+
i2c20_default_alt: i2c20_default_alt {
16+
group1 {
17+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
18+
<NRF_PSEL(TWIM_SCL, 1, 10)>;
19+
};
20+
};
21+
22+
i2c20_sleep_alt: i2c20_sleep_alt {
23+
group1 {
24+
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
25+
<NRF_PSEL(TWIM_SCL, 1, 10)>;
26+
low-power-enable;
27+
};
28+
};
29+
30+
i2c21_default_alt: i2c21_default_alt {
31+
group1 {
32+
/* Temporary workaround as it is currently not possible
33+
* to configure pins for TWIS with pinctrl.
34+
*/
35+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
36+
<NRF_PSEL(TWIM_SCL, 1, 11)>;
37+
bias-pull-up;
38+
};
39+
};
40+
41+
i2c21_sleep_alt: i2c21_sleep_alt {
42+
group1 {
43+
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
44+
<NRF_PSEL(TWIM_SCL, 1, 11)>;
45+
low-power-enable;
46+
};
47+
};
48+
};
49+
50+
&i2c20 {
51+
compatible = "nordic,nrf-twim";
52+
status = "okay";
53+
pinctrl-0 = <&i2c20_default_alt>;
54+
pinctrl-1 = <&i2c20_sleep_alt>;
55+
pinctrl-names = "default", "sleep";
56+
sensor: sensor@54 {
57+
reg = <0x54>;
58+
};
59+
};
60+
61+
&i2c21 {
62+
compatible = "nordic,nrf-twis";
63+
status = "okay";
64+
pinctrl-0 = <&i2c21_default_alt>;
65+
pinctrl-1 = <&i2c21_sleep_alt>;
66+
pinctrl-names = "default", "sleep";
67+
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ tests:
1313
- [email protected]/nrf54lm20a/cpuapp
1414
- [email protected]/nrf54lm20a/cpuapp
1515
- [email protected]/nrf54lm20a/cpuapp
16+
- nrf54lv10dk/nrf54lv10a/cpuapp
17+
- [email protected]/nrf54lv10a/cpuapp
1618
integration_platforms:
1719
- nrf54lm20pdk/nrf54lm20a/cpuapp
20+
- nrf54lv10dk/nrf54lv10a/cpuapp

tests/zephyr/drivers/i2c/i2c_target_api/boards/nrf54lv10dk_nrf54lv10a_cpuapp.overlay

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
/*
22
* SDA = P1.8 and P1.9
3-
* SCL = P1.14 and P1.15
3+
* SCL = P1.10 and P1.11
44
*/
55

66
&pinctrl {
77
i2c20_default: i2c20_default {
88
group1 {
99
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
10-
<NRF_PSEL(TWIS_SCL, 1, 14)>;
10+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
1111
bias-pull-up;
1212
};
1313
};
1414

1515
i2c20_sleep: i2c20_sleep {
1616
group1 {
1717
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
18-
<NRF_PSEL(TWIS_SCL, 1, 14)>;
18+
<NRF_PSEL(TWIS_SCL, 1, 10)>;
1919
low-power-enable;
2020
};
2121
};
2222

2323
i2c21_default: i2c21_default {
2424
group1 {
2525
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
26-
<NRF_PSEL(TWIS_SCL, 1, 15)>;
26+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
2727
bias-pull-up;
2828
};
2929
};
3030

3131
i2c21_sleep: i2c21_sleep {
3232
group1 {
3333
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
34-
<NRF_PSEL(TWIS_SCL, 1, 15)>;
34+
<NRF_PSEL(TWIS_SCL, 1, 11)>;
3535
low-power-enable;
3636
};
3737
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests:
1717
- [email protected]/nrf54lm20a/cpuapp
1818
- nrf54lv10dk/nrf54lv10a/cpuapp
1919
- [email protected]/nrf54lv10a/cpuapp
20+
- [email protected]/nrf54lv10a/cpuapp
2021
- nrf7120pdk/nrf7120/cpuapp
2122
integration_platforms:
2223
- nrf54lm20pdk/nrf54lm20a/cpuapp

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ manifest:
6565
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
6666
- name: zephyr
6767
repo-path: sdk-zephyr
68-
revision: pull/2947/head
68+
revision: bcf554e67c331a512c67f91b57dc6d797899e356
6969
import:
7070
# In addition to the zephyr repository itself, NCS also
7171
# imports the contents of zephyr/west.yml at the above

0 commit comments

Comments
 (0)