1#include <zephyr/dt-bindings/input/input-event-codes.h>
2
3/ {
4	leds:	leds {
5		compatible = "gpio-leds";
6		rgb1_red: led_0 {
7			gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
8			label = "0 LED_RGB_RED";
9		};
10		rgb1_green: led_1 {
11			gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
12			label = "0 LED_RGB_GREEN";
13		};
14		rgb1_blue: led_2 {
15			gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
16			label = "0 LED_RGB_BLUE";
17		};
18		rgb2_red: led_3 {
19			gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
20			label = "1 LED_RGB_RED";
21		};
22		rgb2_green: led_4 {
23			gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
24			label = "1 LED_RGB_GREEN";
25		};
26		rgb2_blue: led_5 {
27			gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
28			label = "1 LED_RGB_BLUE";
29		};
30		led1_blue: led_6 {
31			gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
32			label = "2 LED_MONO_BLUE";
33		};
34		led2_green: led_7 {
35			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
36			label = "3 LED_MONO_GREEN";
37		};
38		led3_green: led_8 {
39			gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
40			label = "4 LED_MONO_GREEN";
41		};
42	};
43
44	buttons {
45		compatible = "gpio-keys";
46		button_1_vol_dn: button_1_vol_dn {
47			gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
48			label = "Push button 1";
49			zephyr,code = <INPUT_KEY_VOLUMEDOWN>;
50		};
51		button_2_vol_up: button_2_vol_up {
52			gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
53			label = "Push button 2";
54			zephyr,code = <INPUT_KEY_VOLUMEUP>;
55		};
56		button3: button_3 {
57			gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
58			label = "Push button 3";
59			zephyr,code = <INPUT_KEY_3>;
60		};
61		button4: button_4 {
62			gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
63			label = "Push button 4";
64			zephyr,code = <INPUT_KEY_4>;
65		};
66		button5: button_5 {
67			gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
68			label = "Push button 5";
69			zephyr,code = <INPUT_KEY_5>;
70		};
71	};
72
73	arduino_header: connector {
74		compatible = "arduino-header-r3";
75		#gpio-cells = <2>;
76		gpio-map-mask = <0xffffffff 0xffffffc0>;
77		gpio-map-pass-thru = <0 0x3f>;
78		gpio-map = <0 0 &gpio0 4 0>,	/* A0 */
79			   <1 0 &gpio0 5 0>,	/* A1 */
80			   <2 0 &gpio0 6 0>,	/* A2 */
81			   <3 0 &gpio0 7 0>,	/* A3 */
82			   <4 0 &gpio0 25 0>,	/* A4 */
83			   <5 0 &gpio0 26 0>,	/* A5 */
84			   <6 0 &gpio1 9 0>,	/* D0 */
85			   <7 0 &gpio1 8 0>,	/* D1 */
86			   <8 0 &gpio0 31 0>,	/* D2 */
87			   <9 0 &gpio1 0 0>,	/* D3 */
88			   <10 0 &gpio1 1 0>,	/* D4 */
89			   <11 0 &gpio1 14 0>,	/* D5 */
90			   <12 0 &gpio1 7 0>,	/* D6 */
91			   <13 0 &gpio1 11 0>,	/* D7 */
92			   <14 0 &gpio1 10 0>,	/* D8 */
93			   <15 0 &gpio1 13 0>,	/* D9 */
94			   <16 0 &gpio1 12 0>,	/* D10 */
95			   <17 0 &gpio0 9 0>,	/* D11 */
96			   <18 0 &gpio0 10 0>,	/* D12 */
97			   <19 0 &gpio0 8 0>,	/* D13 */
98			   <20 0 &gpio1 2 0>,	/* D14 */
99			   <21 0 &gpio1 3 0>;	/* D15 */
100	};
101
102	aliases {
103		led0 = &rgb1_red;
104		led1 = &rgb1_green;
105		led2 = &rgb1_blue;
106		led3 = &rgb2_red;
107		led4 = &rgb2_green;
108		led5 = &rgb2_blue;
109		led6 = &led1_blue;
110		led7 = &led2_green;
111		led8 = &led3_green;
112		sw0 = &button_1_vol_dn;
113		sw1 = &button_2_vol_up;
114		sw2 = &button3;
115		sw3 = &button4;
116		sw4 = &button5;
117		mcuboot-led0 = &led1_blue;
118		mcuboot-button0 = &button3;
119		watchdog0 = &wdt0;
120	};
121};
122