1/*
2 * Copyright (c) 2024 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include "arduino_uno_r4_common.dtsi"
9#include "arduino_uno_r4_wifi-pinctrl.dtsi"
10
11/ {
12	model = "Arduino Uno R4 WiFi";
13
14	leds {
15		compatible = "gpio-leds";
16		led: led {
17			gpios = <&ioport1 2 GPIO_ACTIVE_HIGH>;
18		};
19	};
20
21	aliases {
22		led0 = &led;
23	};
24
25	arduino_header: connector {
26		compatible = "arduino-header-r3";
27		#gpio-cells = <2>;
28		gpio-map-mask = <0xffffffff 0xffffffc0>;
29		gpio-map-pass-thru = <0 0x3f>;
30		gpio-map = <0 0 &ioport0 14 0>,   /* A0 */
31			   <1 0 &ioport0 0 0>,    /* A1 */
32			   <2 0 &ioport0 1 0>,    /* A2 */
33			   <3 0 &ioport0 2 0>,    /* A3 */
34			   <4 0 &ioport1 1 0>,    /* A4 */
35			   <5 0 &ioport1 0 0>,    /* A5 */
36			   <6 0 &ioport3 1 0>,    /* D0 */
37			   <7 0 &ioport3 2 0>,    /* D1 */
38			   <8 0 &ioport1 4 0>,    /* D2 */
39			   <9 0 &ioport1 5 0>,    /* D3 */
40			   <10 0 &ioport1 6 0>,   /* D4 */
41			   <11 0 &ioport1 7 0>,   /* D5 */
42			   <12 0 &ioport1 11 0>,  /* D6 */
43			   <13 0 &ioport1 12 0>,  /* D7 */
44			   <14 0 &ioport3 4 0>,   /* D8 */
45			   <15 0 &ioport3 3 0>,   /* D9 */
46			   <16 0 &ioport1 3 0>,   /* D10 */
47			   <17 0 &ioport4 11 0>,  /* D11 */
48			   <18 0 &ioport4 10 0>,  /* D12 */
49			   <19 0 &ioport1 2 0>,   /* D13 */
50			   <20 0 &ioport1 1 0>,   /* D14 */
51			   <21 0 &ioport1 0 0>;   /* D15 */
52	};
53};
54