]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ARM64: zynqmp: Add gpio-keys for zcu102
authorMichal Simek <michal.simek@xilinx.com>
Wed, 25 May 2016 18:09:35 +0000 (20:09 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 3 Jun 2016 13:34:07 +0000 (15:34 +0200)
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>
arch/arm/dts/zynqmp-zcu102.dts

index cf25fd68e51144f7252a94b3a782aa019c554837..a171aebea4d3fb988fce50287031ff2c12df6704 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "zynqmp.dtsi"
 #include "zynqmp-clk.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/phy/phy.h>
 
 / {
                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 {