File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed
samples/drivers/i2c/rtio_loopback Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 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+ };
Original file line number Diff line number Diff line change 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+ };
Original file line number Diff line number Diff line change 1616 - nrf5340dk/nrf5340/cpuapp
1717 - nrf54l15dk/nrf54l15/cpuapp
1818 - nrf54h20dk/nrf54h20/cpuapp
19+ - nucleo_f401re
20+ - nucleo_h503rb
1921 - ophelia4ev/nrf54l15/cpuapp
You can’t perform that action at this time.
0 commit comments