Skip to content

Commit 3ca8977

Browse files
etienne-lmsnordic-segl
authored andcommitted
[nrf fromtree] samples: drivers: i2c: rtio_loopback: add nucleo_f401re/nucleo_h503rb
Add nucleo_f401re and nucleo_h503rb boards to rtio_loopback tests on the I2C driver. Signed-off-by: Etienne Carriere <[email protected]> (cherry picked from commit f32cd93)
1 parent aa5af40 commit 3ca8977

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/* I2C bus pins are exposed on the ST morpho and Arduino headers.
4+
*
5+
* Bus SDA SCL
6+
* Pin Hdr Pin Hdr
7+
* i2c1 PB9 CN5:9 PB8 CN5:10
8+
* i2c3 PC9 CN10:1 PA8 CN9:8
9+
*
10+
* Short Pin PB9 to PC9, and PB8 to PA8, for the test to pass.
11+
*/
12+
13+
/ {
14+
aliases {
15+
i2c-controller = &i2c1;
16+
i2c-controller-target = &i2c3;
17+
};
18+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
/* I2C bus pins are exposed on the ST morpho and Arduino headers.
4+
*
5+
* Bus SDA SCL
6+
* Pin Hdr Pin Hdr
7+
* i2c1 PB7 CN5:9 PB6 CN5:10/CN10:3
8+
* i2c2 PB4 CN9:6/CN10:27 PB5 CN9:5/CN10:29
9+
*
10+
* Short Pin PB7 to PB4, and PB6 to PB5, for the test to pass.
11+
*/
12+
13+
/ {
14+
aliases {
15+
i2c-controller = &i2c1;
16+
i2c-controller-target = &i2c2;
17+
};
18+
};
19+
20+
&i2c1 {
21+
pinctrl-0 = <&i2c1_scl_pb6 &i2c1_sda_pb7>;
22+
pinctrl-names = "default";
23+
clock-frequency = <I2C_BITRATE_FAST>;
24+
status = "okay";
25+
};
26+
27+
&i2c2 {
28+
pinctrl-0 = <&i2c2_scl_pb5 &i2c2_sda_pb4>;
29+
pinctrl-names = "default";
30+
clock-frequency = <I2C_BITRATE_FAST>;
31+
status = "okay";
32+
};

samples/drivers/i2c/rtio_loopback/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ tests:
1616
- nrf5340dk/nrf5340/cpuapp
1717
- nrf54l15dk/nrf54l15/cpuapp
1818
- nrf54h20dk/nrf54h20/cpuapp
19+
- nucleo_f401re
20+
- nucleo_h503rb
1921
- ophelia4ev/nrf54l15/cpuapp

0 commit comments

Comments
 (0)