ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys
authorEzra Savard <ezra.savard@xilinx.com>
Fri, 29 Aug 2014 18:10:33 +0000 (11:10 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 31 Jul 2015 08:50:06 +0000 (10:50 +0200)
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>
arch/arm/boot/dts/zynq-zc702.dts

index 79077c5ac60e9b1abbd206276175a2bc77f47e7a..5df8f81f4217968ef094fb33acb98086033f5248 100644 (file)
                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";