1/*
2 * Copyright (c) 2020 Pete Johanson
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7/ {
8	pro_micro: connector {
9		compatible = "sparkfun,pro-micro";
10		#gpio-cells = <2>;
11		gpio-map-mask = <0xffffffff 0xffffffc0>;
12		gpio-map-pass-thru = <0 0x3f>;
13		gpio-map
14			= <1 0 &gpio0 0 0>		/* D1 */
15			, <0 0 &gpio0 1 0>		/* D0 */
16			, <2 0 &gpio0 2 0>		/* D2 */
17			, <3 0 &gpio0 3 0>		/* D3 */
18			, <4 0 &gpio0 4 0>		/* D4/A6 */
19			, <5 0 &gpio0 5 0>		/* D5 */
20			, <6 0 &gpio0 6 0>		/* D6/A7 */
21			, <7 0 &gpio0 7 0>		/* D7 */
22			, <8 0 &gpio0 8 0>		/* D8/A8 */
23			, <9 0 &gpio0 9 0>		/* D9/A9 */
24			, <10 0 &gpio0 10 0>		/* D10/A10 */
25			, <16 0 &gpio0 19 0>	/* D16 */
26			, <14 0 &gpio0 20 0>	/* D14 */
27			, <15 0 &gpio0 18 0>	/* D15 */
28			, <18 0 &gpio0 26 0>	/* D18/A0 */
29			, <19 0 &gpio0 27 0>	/* D19/A1 */
30			, <20 0 &gpio0 28 0>	/* D20/A2 */
31			, <21 0 &gpio0 29 0>	/* D21/A3 */
32			;
33	};
34
35};
36
37pro_micro_i2c: &i2c1 {};
38pro_micro_spi: &spi0 {};
39pro_micro_serial: &uart0 {};
40