summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-05-25 20:09:35 +0200
committerMichal Simek <michal.simek@xilinx.com>2016-11-15 15:30:38 +0100
commite4e7f2f962af2a662a1314a69a58afae6359b66b (patch)
tree6146b67258142c174dbfefac0c152d16afb3e5ae /arch/arm
parent4ae78e55b051a416942c00266327869b8e5bd4c8 (diff)
downloadu-boot-imx-e4e7f2f962af2a662a1314a69a58afae6359b66b.zip
u-boot-imx-e4e7f2f962af2a662a1314a69a58afae6359b66b.tar.gz
u-boot-imx-e4e7f2f962af2a662a1314a69a58afae6359b66b.tar.bz2
ARM64: zynqmp: Add gpio-keys for zcu102
There is gpio push button on MIO22. Add it to DTS to have full board description. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/zynqmp-zcu102.dts15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/dts/zynqmp-zcu102.dts b/arch/arm/dts/zynqmp-zcu102.dts
index d6cee07..770d987 100644
--- a/arch/arm/dts/zynqmp-zcu102.dts
+++ b/arch/arm/dts/zynqmp-zcu102.dts
@@ -12,6 +12,7 @@
#include "zynqmp.dtsi"
#include "zynqmp-clk.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "ZynqMP ZCU102 RevA";
@@ -40,6 +41,20 @@
reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
};
+ gpio-keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+ sw19 {
+ label = "sw19";
+ gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
+ linux,code = <108>; /* down */
+ gpio-key,wakeup;
+ autorepeat;
+ };
+ };
+
leds {
compatible = "gpio-leds";
heartbeat_led {