mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
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>
This commit is contained in:
parent
627830756d
commit
2cd212427f
@ -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>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user