Skip to content

Commit 47ba9f2

Browse files
nordic-baminordic-piks
authored andcommitted
tests: drivers: i2c: Add ls05 to i2c PAN test
Run I2C PAN test on ls05 Signed-off-by: Bartosz Miller <[email protected]>
1 parent 2c2743d commit 47ba9f2

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
26+
<NRF_PSEL(TWIS_SCL, 1, 15)>;
27+
bias-pull-up;
28+
};
29+
};
30+
31+
i2c22_sleep_alt: i2c22_sleep_alt {
32+
group1 {
33+
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
34+
<NRF_PSEL(TWIS_SCL, 1, 15)>;
35+
low-power-enable;
36+
};
37+
};
38+
};
39+
40+
dut_twim: &i2c21 {
41+
compatible = "nordic,nrf-twim";
42+
status = "okay";
43+
pinctrl-0 = <&i2c21_default_alt>;
44+
pinctrl-1 = <&i2c21_sleep_alt>;
45+
pinctrl-names = "default", "sleep";
46+
sensor: sensor@54 {
47+
reg = <0x54>;
48+
};
49+
};
50+
51+
dut_twis: &i2c22 {
52+
compatible = "nordic,nrf-twis";
53+
status = "okay";
54+
pinctrl-0 = <&i2c22_default_alt>;
55+
pinctrl-1 = <&i2c22_sleep_alt>;
56+
pinctrl-names = "default", "sleep";
57+
};

tests/drivers/i2c/i2c_pan/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ common:
1414
- nrf54h20dk/nrf54h20/cpuapp
1515
- nrf54l15dk/nrf54l15/cpuapp
1616
- nrf54lm20dk/nrf54lm20a/cpuapp
17+
- nrf54ls05dk/nrf54ls05b/cpuapp
1718
- nrf54lv10dk/nrf54lv10a/cpuapp
1819
integration_platforms:
1920
- nrf54l15dk/nrf54l15/cpuapp

0 commit comments

Comments
 (0)