1 // Definitions for gpio-key module
6 compatible = "brcm,bcm2835";
9 // Configure the gpio pin controller
12 pin_state: button_pins@0 {
13 brcm,pins = <3>; // gpio number
14 brcm,function = <0>; // 0 = input, 1 = output
15 brcm,pull = <2>; // 0 = none, 1 = pull down, 2 = pull up
23 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pin_state>;
38 gpio = <&key>,"gpios:4",
40 <&pin_state>,"brcm,pins:0",
42 label = <&key>,"label";
43 keycode = <&key>,"linux,code:0";
44 gpio_pull = <&pin_state>,"brcm,pull:0";
45 active_low = <&key>,"gpios:8";