samples: drivers: i2c: rtio_loopback: add nrf54h20

Add nrf54h20 board support to the i2c rtio loopback sample.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
This commit is contained in:
Bjarki Arge Andreasen 2025-02-11 10:40:38 +01:00 committed by Benjamin Cabé
commit 5c7f47de0f
3 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
CONFIG_I2C_NRFX_TWIS_BUF_SIZE=256

View file

@ -0,0 +1,71 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* SDA = P2.8 and P2.9
* SCL = P1.2 and P1.3
*/
/ {
aliases {
i2c-controller = &i2c130;
i2c-controller-target = &i2c131;
};
};
&pinctrl {
i2c130_default: i2c130_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 2)>;
bias-pull-up;
};
};
i2c130_sleep: i2c130_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 2, 8)>,
<NRF_PSEL(TWIM_SCL, 1, 2)>;
low-power-enable;
};
};
i2c131_default: i2c131_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 3)>;
bias-pull-up;
};
};
i2c131_sleep: i2c131_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 2, 9)>,
<NRF_PSEL(TWIM_SCL, 1, 3)>;
low-power-enable;
};
};
};
&i2c130 {
clock-frequency = <I2C_BITRATE_STANDARD>;
pinctrl-0 = <&i2c130_default>;
pinctrl-1 = <&i2c130_sleep>;
pinctrl-names = "default", "sleep";
zephyr,concat-buf-size = <256>;
memory-regions = <&cpuapp_dma_region>;
status = "okay";
};
&i2c131 {
compatible = "nordic,nrf-twis";
clock-frequency = <I2C_BITRATE_STANDARD>;
pinctrl-0 = <&i2c131_default>;
pinctrl-1 = <&i2c131_sleep>;
pinctrl-names = "default", "sleep";
memory-regions = <&cpuapp_dma_region>;
status = "okay";
};

View file

@ -12,3 +12,4 @@ tests:
- b_u585i_iot02a
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54h20dk/nrf54h20/cpuapp