Skip to content

Commit

Permalink
[nrf fromlist] tests: boards: nrf: i2c: Enable test execution on nrf5…
Browse files Browse the repository at this point in the history
…4l20pdk

Add overlay needed to execute i2c_slave tests on nrf54l20pdk.

Upstream PR #: 82965

Signed-off-by: Sebastian Głąb <[email protected]>
  • Loading branch information
nordic-segl committed Dec 13, 2024
1 parent 0f2b574 commit aa50363
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/nordic/nrf54l20pdk/nrf54l20pdk_nrf54l20_cpuapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ flash: 449
supported:
- counter
- gpio
- i2c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_NRFX_TWIS22=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/ {
aliases {
i2c-slave = &i2c22;
};
};

&pinctrl {
i2c21_default_alt: i2c21_default_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 14)>;
};
};

i2c21_sleep_alt: i2c21_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 14)>;
low-power-enable;
};
};

i2c22_default_alt: i2c22_default_alt {
group1 {
/* Temporary workaround as it is currently not possible
* to configure pins for TWIS with pinctrl.
*/
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 15)>;
bias-pull-up;
};
};

i2c22_sleep_alt: i2c22_sleep_alt {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 1, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 15)>;
low-power-enable;
};
};
};

&i2c21 {
compatible = "nordic,nrf-twim";
status = "okay";
pinctrl-0 = <&i2c21_default_alt>;
pinctrl-1 = <&i2c21_sleep_alt>;
pinctrl-names = "default", "sleep";
sensor: sensor@54 {
reg = <0x54>;
};
};

&i2c22 {
compatible = "nordic,nrf-twis";
status = "okay";
pinctrl-0 = <&i2c22_default_alt>;
pinctrl-1 = <&i2c22_sleep_alt>;
pinctrl-names = "default", "sleep";
};
2 changes: 2 additions & 0 deletions tests/boards/nrf/i2c/i2c_slave/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ tests:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpuppr
integration_platforms:
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
- nrf54h20dk/nrf54h20/cpuppr

0 comments on commit aa50363

Please sign in to comment.