samples: drivers: i2c: rtio_loopback: add nrf boards
Add nRF boards to the rtio_loopback sample. Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
This commit is contained in:
parent
2e0092356f
commit
7d5a912ced
@ -0,0 +1,4 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_I2C_TARGET_BUFFER_MODE=y
|
||||
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* SDA = P0.26 and P1.2
|
||||
* SCL = P0.25 and P1.3
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
i2c-controller = &i2c1;
|
||||
i2c-controller-target = &i2c2;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
i2c2_default: i2c2_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
|
||||
<NRF_PSEL(TWIS_SCL, 0, 25)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
i2c2_sleep: i2c2_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 0, 26)>,
|
||||
<NRF_PSEL(TWIS_SCL, 0, 25)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
compatible = "nordic,nrf-twis";
|
||||
pinctrl-0 = <&i2c2_default>;
|
||||
pinctrl-1 = <&i2c2_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
status = "okay";
|
||||
};
|
||||
@ -0,0 +1,4 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_I2C_NRFX_TWIS_BUF_SIZE=256
|
||||
@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* SDA = P1.8 and P1.9
|
||||
* SCL = P1.10 and P1.11
|
||||
*/
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
i2c-controller = &i2c21;
|
||||
i2c-controller-target = &i2c22;
|
||||
};
|
||||
};
|
||||
|
||||
&pinctrl {
|
||||
i2c21_default: i2c21_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
|
||||
<NRF_PSEL(TWIS_SCL, 1, 10)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
i2c21_sleep: i2c21_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 1, 8)>,
|
||||
<NRF_PSEL(TWIS_SCL, 1, 10)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
i2c22_default: i2c22_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
|
||||
<NRF_PSEL(TWIS_SCL, 1, 11)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
i2c22_sleep: i2c22_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(TWIS_SDA, 1, 9)>,
|
||||
<NRF_PSEL(TWIS_SCL, 1, 11)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c21 {
|
||||
pinctrl-0 = <&i2c21_default>;
|
||||
pinctrl-1 = <&i2c21_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
zephyr,concat-buf-size = <256>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&i2c22 {
|
||||
compatible = "nordic,nrf-twis";
|
||||
pinctrl-0 = <&i2c22_default>;
|
||||
pinctrl-1 = <&i2c22_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
status = "okay";
|
||||
};
|
||||
@ -7,3 +7,5 @@ tests:
|
||||
- i2c_target
|
||||
platform_allow:
|
||||
- b_u585i_iot02a
|
||||
- nrf5340dk/nrf5340/cpuapp
|
||||
- nrf54l15dk/nrf54l15/cpuapp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user