Skip to content

Commit

Permalink
ARM: zynq: DT: Add zc702 pushbuttons to DT as gpio-keys
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ezra Savard authored and Michal Simek committed Jul 31, 2015
1 parent 6de663f commit b76da4d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions arch/arm/boot/dts/zynq-zc702.dts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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";

Expand Down

0 comments on commit b76da4d

Please sign in to comment.