1/*
2 * Copyright (c) 2025 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	arduino_header: connector {
9		compatible = "arduino-header-r3";
10		#gpio-cells = <2>;
11		gpio-map-mask = <0xffffffff 0xffffffc0>;
12		gpio-map-pass-thru = <0 0x3f>;
13
14		/* Some pins are not connected to the Arduino
15		 * connector in default hardware configuration.
16		 * Only the connected pins are provided here.
17		 */
18		gpio-map = <0 0 &gpiob 3 0>,	/* A0 */
19			   <1 0 &gpiob 1 0>,	/* A1 */
20			   <2 0 &gpioa 15 0>,	/* A2 */
21			   <3 0 &gpioa 12 0>,	/* A3 */
22			   <4 0 &gpioa 14 0>,	/* A4 */
23			   <5 0 &gpioa 13 0>,	/* A5 */
24						/* D0 - N/C (PA8 via SB9) */
25						/* D1 - N/C (PA9 via SB7) */
26			   <8 0 &gpiob 15 0>,	/* D2 */
27						/* D3 - N/C (PA0 via SB3) */
28			   <10 0 &gpiob 11 0>,	/* D4 */
29			   <11 0 &gpiob 14 0>,	/* D5 */
30			   <12 0 &gpioa 11 0>,	/* D6 */
31			   <13 0 &gpiob 10 0>,	/* D7 */
32			   <14 0 &gpiob 8 0>,	/* D8 */
33			   <15 0 &gpioa 1 0>,	/* D9 */
34			   <16 0 &gpioa 4 0>,	/* D10 */
35			   <17 0 &gpioa 6 0>,	/* D11 */
36			   <18 0 &gpioa 7 0>,	/* D12 */
37			   <19 0 &gpioa 5 0>,	/* D13 */
38			   <20 0 &gpiob 7 0>,	/* D14 */
39			   <21 0 &gpiob 6 0>;	/* D15 */
40	};
41};
42
43arduino_i2c: &i2c2 {};
44arduino_serial: &usart1 {};
45arduino_spi: &spi2 {};
46