Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: atlas7: add a GPIO key for rearview button

Touching this key will trigger a camera event for rearview.

Signed-off-by: Andy Sun <Andy.Sun@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>

authored by

Andy Sun and committed by
Barry Song
2cd21242 62783075

+18
+18
arch/arm/boot/dts/atlas7-evb.dts
··· 10 10 11 11 /include/ "atlas7.dtsi" 12 12 13 + #include <dt-bindings/input/input.h> 14 + #include <dt-bindings/gpio/gpio.h> 15 + 13 16 / { 14 17 model = "CSR SiRFatlas7 Evaluation Board"; 15 18 compatible = "sirf,atlas7-cb", "sirf,atlas7"; ··· 109 106 }; 110 107 }; 111 108 }; 109 + 110 + gpio_keys { 111 + compatible = "gpio-keys"; 112 + status = "okay"; 113 + #address-cells = <1>; 114 + #size-cells = <0>; 115 + 116 + rearview_key { 117 + label = "rearview key"; 118 + linux,code = <KEY_CAMERA>; 119 + gpios = <&gpio_1 3 GPIO_ACTIVE_LOW>; 120 + debounce_interval = <100>; 121 + }; 122 + }; 123 + 112 124 }; 113 125 };