1/* SPDX-License-Identifier: Apache-2.0 */
2/* Copyright (c) 2017 Synopsys */
3
4#include <zephyr/dt-bindings/input/input-event-codes.h>
5
6/ {
7	aliases {
8		led0 = &led0;
9		led1 = &led1;
10		led2 = &led2;
11		led3 = &led3;
12		led4 = &led4;
13		led5 = &led5;
14		led6 = &led6;
15		led7 = &led7;
16		led8 = &led8;
17		sw0 = &button0;
18		sw1 = &button1;
19		sw2 = &button2;
20	};
21
22	leds {
23		compatible = "gpio-leds";
24		led0: led_0 {
25			gpios = <&gpio1 0 0>;
26			label = "LED 0";
27		};
28		led1: led_1 {
29			gpios = <&gpio1 1 0>;
30			label = "LED 1";
31		};
32		led2: led_2 {
33			gpios = <&gpio1 2 0>;
34			label = "LED 2";
35		};
36		led3: led_3 {
37			gpios = <&gpio1 3 0>;
38			label = "LED 3";
39		};
40		led4: led_4 {
41			gpios = <&gpio1 4 0>;
42			label = "LED 4";
43		};
44		led5: led_5 {
45			gpios = <&gpio1 5 0>;
46			label = "LED 5";
47		};
48		led6: led_6 {
49			gpios = <&gpio1 6 0>;
50			label = "LED 6";
51		};
52		led7: led_7 {
53			gpios = <&gpio1 7 0>;
54			label = "LED 7";
55		};
56		led8: led_8 {
57			gpios = <&gpio1 8 0>;
58			label = "LED 8";
59		};
60
61	};
62
63	buttons {
64		compatible = "gpio-keys";
65		button0: button_0 {
66			/* gpio flags need validation */
67			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
68			label = "Push button switch 0";
69			zephyr,code = <INPUT_KEY_0>;
70		};
71		button1: button_1 {
72			/* gpio flags need validation */
73			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
74			label = "Push button switch 1";
75			zephyr,code = <INPUT_KEY_1>;
76		};
77		button2: button_2 {
78			/* gpio flags need validation */
79			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
80			label = "Push button switch 2";
81			zephyr,code = <INPUT_KEY_2>;
82		};
83		switch0: switch_0 {
84			/* gpio flags need validation */
85			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
86			label = "DIP SW1 - Switch 1";
87			zephyr,code = <INPUT_KEY_3>;
88		};
89		switch1: switch_1 {
90			/* gpio flags need validation */
91			gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
92			label = "DIP SW1 - Switch 2";
93			zephyr,code = <INPUT_KEY_4>;
94		};
95		switch2: switch_2 {
96			/* gpio flags need validation */
97			gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
98			label = "DIP SW1 - Switch 3";
99			zephyr,code = <INPUT_KEY_5>;
100		};
101		switch3: switch_3 {
102			/* gpio flags need validation */
103			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
104			label = "DIP SW1 - Switch 4";
105			zephyr,code = <INPUT_KEY_6>;
106		};
107	};
108
109};
110