1/* SPDX-License-Identifier: Apache-2.0 */
2
3#include <zephyr/dt-bindings/input/input-event-codes.h>
4
5/ {
6	aliases {
7		led0 = &led0;
8		led1 = &led1;
9		led2 = &led2;
10		led3 = &led3;
11		led4 = &led4;
12		led5 = &led5;
13		led6 = &led6;
14		led7 = &led7;
15		sw0 = &switch0;
16		sw1 = &switch1;
17		sw2 = &switch2;
18		sw2 = &switch3;
19	};
20
21	leds {
22		compatible = "gpio-leds";
23		led0: led_0 {
24			gpios = <&gpio1 0 0>;
25			label = "LED 0";
26		};
27		led1: led_1 {
28			gpios = <&gpio1 1 0>;
29			label = "LED 1";
30		};
31		led2: led_2 {
32			gpios = <&gpio1 2 0>;
33			label = "LED 2";
34		};
35		led3: led_3 {
36			gpios = <&gpio1 3 0>;
37			label = "LED 3";
38		};
39		led4: led_4 {
40			gpios = <&gpio1 4 0>;
41			label = "LED 4";
42		};
43		led5: led_5 {
44			gpios = <&gpio1 5 0>;
45			label = "LED 5";
46		};
47		led6: led_6 {
48			gpios = <&gpio1 6 0>;
49			label = "LED 6";
50		};
51		led7: led_7 {
52			gpios = <&gpio1 7 0>;
53			label = "LED 7";
54		};
55	};
56
57	buttons {
58		compatible = "gpio-keys";
59		switch0: switch_0 {
60			/* gpio flags need validation */
61			gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
62			label = "DIP SW1 - Switch 1";
63			zephyr,code = <INPUT_KEY_0>;
64		};
65		switch1: switch_1 {
66			/* gpio flags need validation */
67			gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
68			label = "DIP SW1 - Switch 2";
69			zephyr,code = <INPUT_KEY_1>;
70		};
71		switch2: switch_2 {
72			/* gpio flags need validation */
73			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
74			label = "DIP SW1 - Switch 3";
75			zephyr,code = <INPUT_KEY_2>;
76		};
77		switch3: switch_3 {
78			/* gpio flags need validation */
79			gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
80			label = "DIP SW1 - Switch 4";
81			zephyr,code = <INPUT_KEY_3>;
82		};
83	};
84
85};
86