ARM: dts: atlas7: add a GPIO key for rearview button
authorAndy Sun <Andy.Sun@csr.com>
Tue, 28 Jul 2015 08:38:39 +0000 (16:38 +0800)
committerBarry Song <Baohua.Song@csr.com>
Wed, 5 Aug 2015 14:44:21 +0000 (22:44 +0800)
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>
arch/arm/boot/dts/atlas7-evb.dts

index 49cf59a9557263d4f6b5a823d262544eee574807..1e9cd1a8508e17c2665a4154b124f0d89a32ae11 100644 (file)
@@ -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";
                                };
                        };
                };
+
+               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>;
+                       };
+               };
+
        };
 };
This page took 0.025983 seconds and 5 git commands to generate.