Commit 2cd21242 authored by Andy Sun's avatar Andy Sun Committed by Barry Song

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

Touching this key will trigger a camera event for rearview.
Signed-off-by: default avatarAndy Sun <Andy.Sun@csr.com>
Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
parent 62783075
......@@ -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 @@ timing0: timing0 {
};
};
};
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>;
};
};
};
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment