From: Michal Simek Date: Wed, 25 May 2016 18:09:35 +0000 (+0200) Subject: ARM64: zynqmp: Add gpio-keys for zcu102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de0759728f6c9588520323fb66c4dce94d7b1ee7;p=thirdparty%2Fu-boot.git 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 --- diff --git a/arch/arm/dts/zynqmp-zcu102.dts b/arch/arm/dts/zynqmp-zcu102.dts index cf25fd68e51..a171aebea4d 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 #include / { @@ -41,6 +42,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 {