summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-07-22 11:41:11 +0200
committerMichal Simek <michal.simek@xilinx.com>2015-07-28 11:56:26 +0200
commit91f9f17262ab38f8ec5b018424a0311093e3b8fb (patch)
tree38f7f168ed1c824e8133ab0e1d8af6a31a576bd1 /arch/arm
parentd50cb3d64bba648998e65adf224d286d090fa43f (diff)
downloadu-boot-imx-91f9f17262ab38f8ec5b018424a0311093e3b8fb.zip
u-boot-imx-91f9f17262ab38f8ec5b018424a0311093e3b8fb.tar.gz
u-boot-imx-91f9f17262ab38f8ec5b018424a0311093e3b8fb.tar.bz2
ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys
Adds the two MIO connected pushbuttons on the zc702 board to the devicetree as a single multi-key device for us with the gpio-keys driver. Signed-off-by: Ezra Savard <ezra.savard@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/zynq-zc702.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
index 1c87984..6691a8d 100644
--- a/arch/arm/dts/zynq-zc702.dts
+++ b/arch/arm/dts/zynq-zc702.dts
@@ -29,6 +29,27 @@
stdout-path = "serial0:115200n8";
};
+ gpio-keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ sw14 {
+ label = "sw14";
+ gpios = <&gpio0 12 0>;
+ linux,code = <108>; /* down */
+ gpio-key,wakeup;
+ autorepeat;
+ };
+ sw13 {
+ label = "sw13";
+ gpios = <&gpio0 14 0>;
+ linux,code = <103>; /* up */
+ gpio-key,wakeup;
+ autorepeat;
+ };
+ };
+
leds {
compatible = "gpio-leds";