~jshsj/go_quiz

go_quiz/breadboard.dts -rw-r--r-- 902 bytes
7f7816a2 — JSH initial commit 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    /dts-v1/;
    /plugin/;
    / {
       compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
       
       fragment@0 {
          target-path = "/";
          __overlay__ {
             keypad: breadboard_keys {
                compatible = "gpio-keys";
                #address-cells = <1>;
                #size-cells = <0>;
		autorepeat;
                button@22 {
                   label = "breadboard 3";
                   linux,code = <4>;
                   gpios = <&gpio 22 1>;
                };
                button@17 {
                   label = "breadboard 1";
                   linux,code = <2>;
                   gpios = <&gpio 17 1>;
                };
                button@27 {
                   label = "breadboard 2";
                   linux,code = <3>;
                   gpios = <&gpio 27 1>;
                };
             };
          };
       };
    };