1/*
2 * Copyright (c) 2020 Seagate Technology LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8
9#include <nxp/nxp_lpc11u68.dtsi>
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12#include "lpcxpresso11u68-pinctrl.dtsi"
13
14/ {
15	model = "NXP LPCXPRESSO11U68 board";
16	compatible = "nxp,lpcxpresso11u68", "nxp,lpc";
17	chosen {
18		zephyr,sram = &sram0;
19		zephyr,flash = &flash0;
20		zephyr,console = &uart0;
21	};
22
23	/* These aliases are provided for compatibility with samples. */
24	aliases {
25		led0 = &led0;
26		led1 = &led1;
27		led2 = &led2;
28		sw0 = &isp_button;
29		sw1 = &wake_up_button;
30		eeprom-0 = &eeprom0;
31	};
32
33	gpio_keys {
34		compatible = "gpio-keys";
35		isp_button: button_0 {
36			gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
37			label = "ISP enable button";
38			zephyr,code = <INPUT_KEY_0>;
39		};
40		wake_up_button: button_1 {
41			gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
42			label = "Wake-up button";
43			zephyr,code = <INPUT_KEY_WAKEUP>;
44		};
45	};
46
47	leds {
48		compatible = "gpio-leds";
49		led0: led_0 {
50			gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
51			label = "Green LED 0";
52		};
53		led1: led_1 {
54			gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
55			label = "Red LED 1";
56		};
57		led2: led_2 {
58			gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
59			label = "Blue LED 2";
60		};
61	};
62
63	arduino_header: connector {
64		compatible = "arduino-header-r3";
65		#gpio-cells = <2>;
66		gpio-map-mask = <0xffffffff 0xffffffc0>;
67		gpio-map-pass-thru = <0 0x3f>;
68		gpio-map = <0 0 &gpio1 9 0>,	/* A0 */
69			   <1 0 &gpio0 14 0>,	/* A1 */
70			   <2 0 &gpio0 13 0>,	/* A2 */
71			   <3 0 &gpio0 12 0>,	/* A3 */
72			   <4 0 &gpio0 23 0>,	/* A4 */
73			   <5 0 &gpio0 11 0>,	/* A5 */
74			   <6 0 &gpio2 11 0>,	/* D0 */
75			   <7 0 &gpio2 12 0>,	/* D1 */
76			   <8 0 &gpio1 18 0>,	/* D2 */
77			   <9 0 &gpio1 24 0>,	/* D3 */
78			   <10 0 &gpio1 19 0>,	/* D4 */
79			   <11 0 &gpio1 26 0>,	/* D5 */
80			   <12 0 &gpio1 27 0>,	/* D6 */
81			   <13 0 &gpio1 25 0>,	/* D7 */
82			   <14 0 &gpio1 28 0>,	/* D8 */
83			   <15 0 &gpio2 3 0>,	/* D9 */
84			   <16 0 &gpio0 2 0>,	/* D10 */
85			   <17 0 &gpio0 9 0>,	/* D11 */
86			   <18 0 &gpio0 9 0>,	/* D12 */
87			   <19 0 &gpio1 29 0>,	/* D13 */
88			   <20 0 &gpio0 5 0>,	/* D14 */
89			   <21 0 &gpio0 4 0>;	/* D15 */
90	};
91
92};
93
94&uart0 {
95	pinctrl-0 = <&uart0_default>;
96	pinctrl-names = "default";
97	current-speed = <115200>;
98	status = "okay";
99};
100
101arduino_serial: &uart4 {
102	pinctrl-0 = <&uart4_default>;
103	pinctrl-names = "default";
104	current-speed = <115200>;
105	status = "okay";
106};
107
108arduino_i2c: &i2c0 {
109	pinctrl-0 = <&i2c0_default>;
110	pinctrl-1 = <&i2c0_fast>;
111	pinctrl-names = "default", "fast-plus";
112	status = "okay";
113};
114
115&cpu0 {
116	clock-frequency = <48000000>;
117};
118
119&gpio0 {
120	status = "okay";
121};
122
123&gpio1 {
124	status = "okay";
125};
126
127&gpio2 {
128	status = "okay";
129};
130
131&syscon {
132	pinctrl-0 = <&syscon_default>;
133	pinctrl-names = "default";
134};
135