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

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
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -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>;
			};
		};

	};
};