diff options
author | Andy Sun <Andy.Sun@csr.com> | 2015-07-28 11:38:39 +0300 |
---|---|---|
committer | Barry Song <Baohua.Song@csr.com> | 2015-08-05 17:44:21 +0300 |
commit | 2cd212427fa9cbf19c1f353d6e14b959e8f112f7 (patch) | |
tree | f5da44167d3f9d0abe35a4bc66963ad82fa275e3 /arch/arm/boot/dts/atlas7-evb.dts | |
parent | 627830756dcf647349c25f4212e777e2146465d4 (diff) | |
download | linux-2cd212427fa9cbf19c1f353d6e14b959e8f112f7.tar.xz |
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>
Diffstat (limited to 'arch/arm/boot/dts/atlas7-evb.dts')
-rw-r--r-- | arch/arm/boot/dts/atlas7-evb.dts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/atlas7-evb.dts b/arch/arm/boot/dts/atlas7-evb.dts index 49cf59a95572..1e9cd1a8508e 100644 --- a/arch/arm/boot/dts/atlas7-evb.dts +++ b/arch/arm/boot/dts/atlas7-evb.dts @@ -10,6 +10,9 @@ /include/ "atlas7.dtsi" +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + / { model = "CSR SiRFatlas7 Evaluation Board"; compatible = "sirf,atlas7-cb", "sirf,atlas7"; @@ -106,5 +109,20 @@ }; }; }; + + gpio_keys { + compatible = "gpio-keys"; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + rearview_key { + label = "rearview key"; + linux,code = <KEY_CAMERA>; + gpios = <&gpio_1 3 GPIO_ACTIVE_LOW>; + debounce_interval = <100>; + }; + }; + }; }; |