-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromlist] tests: boards: nrf: i2c: add support for nRF54H20 cpuppr
i2c_slave tests can now be run on nRF54H20 cpuppr target. Upstream PR #: 82538 Signed-off-by: Michał Stasiak <[email protected]>
- Loading branch information
1 parent
9548301
commit 1ba2ca2
Showing
6 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/boards/nrf/i2c/i2c_slave/boards/nrf54h20dk_nrf54h20_cpuppr.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_NRFX_TWIS131=y |
61 changes: 61 additions & 0 deletions
61
tests/boards/nrf/i2c/i2c_slave/boards/nrf54h20dk_nrf54h20_cpuppr.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/ { | ||
aliases { | ||
i2c-slave = &i2c131; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
i2c130_default_alt: i2c130_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 2)>; | ||
}; | ||
}; | ||
|
||
i2c130_sleep_alt: i2c130_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 2)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
i2c131_default_alt: i2c131_default_alt { | ||
group1 { | ||
/* Temporary workaround as it is currently not possible | ||
* to configure pins for TWIS with pinctrl. */ | ||
Check warning on line 26 in tests/boards/nrf/i2c/i2c_slave/boards/nrf54h20dk_nrf54h20_cpuppr.overlay GitHub Actions / Run compliance checks on patch series (PR)BLOCK_COMMENT_STYLE
|
||
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 3)>; | ||
bias-pull-up; | ||
}; | ||
}; | ||
|
||
i2c131_sleep_alt: i2c131_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 3)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&i2c130 { | ||
compatible = "nordic,nrf-twim"; | ||
status = "okay"; | ||
clock-frequency = <I2C_BITRATE_STANDARD>; | ||
pinctrl-0 = <&i2c130_default_alt>; | ||
pinctrl-1 = <&i2c130_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
sensor: sensor@54 { | ||
reg = <0x54>; | ||
}; | ||
}; | ||
|
||
&i2c131 { | ||
compatible = "nordic,nrf-twis"; | ||
status = "okay"; | ||
clock-frequency = <I2C_BITRATE_STANDARD>; | ||
pinctrl-0 = <&i2c131_default_alt>; | ||
pinctrl-1 = <&i2c131_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
}; |
51 changes: 51 additions & 0 deletions
51
.../boards/nrf/i2c/i2c_slave/sysbuild/vpr_launcher/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
&pinctrl { | ||
i2c130_default_alt: i2c130_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 2)>; | ||
}; | ||
}; | ||
|
||
i2c130_sleep_alt: i2c130_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 2)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
i2c131_default_alt: i2c131_default_alt { | ||
group1 { | ||
/* Temporary workaround as it is currently not possible | ||
* to configure pins for TWIS with pinctrl. | ||
*/ | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 3)>; | ||
bias-pull-up; | ||
}; | ||
}; | ||
|
||
i2c131_sleep_alt: i2c131_sleep_alt { | ||
group1 { | ||
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>, | ||
<NRF_PSEL(TWIM_SCL, 1, 3)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; | ||
|
||
&i2c130 { | ||
status = "reserved"; | ||
pinctrl-0 = <&i2c130_default_alt>; | ||
pinctrl-1 = <&i2c130_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
interrupt-parent = <&cpuppr_clic>; | ||
}; | ||
|
||
&i2c131 { | ||
status = "reserved"; | ||
pinctrl-0 = <&i2c131_default_alt>; | ||
pinctrl-1 = <&i2c131_sleep_alt>; | ||
pinctrl-names = "default", "sleep"; | ||
interrupt-parent = <&cpuppr_clic>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# nothing here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters