From: Andy Sun Date: Tue, 28 Jul 2015 08:38:39 +0000 (+0800) Subject: ARM: dts: atlas7: add a GPIO key for rearview button X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cd212427fa9cbf19c1f353d6e14b959e8f112f7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Barry Song --- 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 +#include + / { 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 = ; + gpios = <&gpio_1 3 GPIO_ACTIVE_LOW>; + debounce_interval = <100>; + }; + }; + }; };