1/*
2 * Copyright (c) 2020 Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/ {
7	arduino_header: connector {
8		compatible = "arduino-header-r3";
9		#gpio-cells = <2>;
10		gpio-map-mask = <0xffffffff 0xffffffc0>;
11		gpio-map-pass-thru = <0 0x3f>;
12		gpio-map = <0 0 &gpioa 3 0>,	/* A0 */
13			   <1 0 &gpioc 0 0>,	/* A1 */
14			   <2 0 &gpioc 3 0>,	/* A2 */
15			   <3 0 &gpiob 1 0>,	/* A3 */
16			   <4 0 &gpioc 2 0>,	/* A4 */
17			   <5 0 &gpiof 10 0>,	/* A5 */
18			   <6 0 &gpiob 7 0>,	/* D0 */
19			   <7 0 &gpiob 6 0>,	/* D1 */
20			   <8 0 &gpiog 14 0>,	/* D2 */
21			   <9 0 &gpioe 13 0>,	/* D3 */
22			   <10 0 &gpioe 14 0>,	/* D4 */
23			   <11 0 &gpioe 11 0>,	/* D5 */
24			   <12 0 &gpioe 9 0>,	/* D6 */
25			   <13 0 &gpiog 12 0>,	/* D7 */
26			   <14 0 &gpiof 3 0>,	/* D8 */
27			   <15 0 &gpiod 15 0>,	/* D9 */
28			   <16 0 &gpiod 14 0>,	/* D10 */
29			   <17 0 &gpiob 5 0>,	/* D11 */
30			   <18 0 &gpioa 6 0>,	/* D12 */
31			   <19 0 &gpioa 5 0>,	/* D13 */
32			   <20 0 &gpiob 9 0>,	/* D14 */
33			   <21 0 &gpiob 8 0>;	/* D15 */
34	};
35};
36
37arduino_i2c: &i2c1 {};
38arduino_spi: &spi1 {};
39arduino_serial: &uart8 {};
40