Skip to content

Commit 8aa6557

Browse files
nordic-bamihenrikbrixandersen
authored andcommitted
tests: boards: nrf: i2c: Fix nrf52 and nrf53 pin assignment
Fix the i2c loopbacks pins assignments for nrf52 and nrf53 to allow automated testing. Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
1 parent 5c422a9 commit 8aa6557

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

tests/boards/nrf/i2c/i2c_slave/boards/nrf52840dk_nrf52840.overlay

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,31 @@
77
&pinctrl {
88
i2c0_default_alt: i2c0_default_alt {
99
group1 {
10-
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
11-
<NRF_PSEL(TWIM_SCL, 0, 3)>;
10+
psels = <NRF_PSEL(TWIM_SDA, 1, 1)>,
11+
<NRF_PSEL(TWIM_SCL, 1, 3)>;
1212
};
1313
};
1414

1515
i2c0_sleep_alt: i2c0_sleep_alt {
1616
group1 {
17-
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
18-
<NRF_PSEL(TWIM_SCL, 0, 3)>;
17+
psels = <NRF_PSEL(TWIM_SDA, 1, 1)>,
18+
<NRF_PSEL(TWIM_SCL, 1, 3)>;
1919
low-power-enable;
2020
};
2121
};
2222

2323
i2c1_default_alt: i2c1_default_alt {
2424
group1 {
25-
/* Temporary workaround as it is currently not possible
26-
* to configure pins for TWIS with pinctrl. */
27-
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
28-
<NRF_PSEL(TWIM_SCL, 0, 31)>;
25+
psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
26+
<NRF_PSEL(TWIM_SCL, 1, 4)>;
2927
bias-pull-up;
3028
};
3129
};
3230

3331
i2c1_sleep_alt: i2c1_sleep_alt {
3432
group1 {
35-
psels = <NRF_PSEL(TWIM_SDA, 0, 30)>,
36-
<NRF_PSEL(TWIM_SCL, 0, 31)>;
33+
psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
34+
<NRF_PSEL(TWIM_SCL, 1, 4)>;
3735
low-power-enable;
3836
};
3937
};

tests/boards/nrf/i2c/i2c_slave/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,30 @@
88
i2c1_default_alt: i2c1_default_alt {
99
group1 {
1010
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
11-
<NRF_PSEL(TWIM_SCL, 0, 5)>;
11+
<NRF_PSEL(TWIM_SCL, 0, 6)>;
1212
};
1313
};
1414

1515
i2c1_sleep_alt: i2c1_sleep_alt {
1616
group1 {
1717
psels = <NRF_PSEL(TWIM_SDA, 0, 4)>,
18-
<NRF_PSEL(TWIM_SCL, 0, 5)>;
18+
<NRF_PSEL(TWIM_SCL, 0, 6)>;
1919
low-power-enable;
2020
};
2121
};
2222

2323
i2c2_default_alt: i2c2_default_alt {
2424
group1 {
25-
/* Temporary workaround as it is currently not possible
26-
* to configure pins for TWIS with pinctrl. */
27-
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
28-
<NRF_PSEL(TWIM_SCL, 0, 25)>;
25+
psels = <NRF_PSEL(TWIM_SDA, 0, 5)>,
26+
<NRF_PSEL(TWIM_SCL, 0, 7)>;
2927
bias-pull-up;
3028
};
3129
};
3230

3331
i2c2_sleep_alt: i2c2_sleep_alt {
3432
group1 {
35-
psels = <NRF_PSEL(TWIM_SDA, 0, 26)>,
36-
<NRF_PSEL(TWIM_SCL, 0, 25)>;
33+
psels = <NRF_PSEL(TWIM_SDA, 0, 5)>,
34+
<NRF_PSEL(TWIM_SCL, 0, 7)>;
3735
low-power-enable;
3836
};
3937
};

0 commit comments

Comments
 (0)