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