Skip to content

Commit

Permalink
ARM: at91: at91sam9m10g45ek/dt: add gpio-keys support
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Jean-Christophe PLAGNIOL-VILLARD committed Mar 1, 2012
1 parent f2ee7ac commit 8a087b0
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions arch/arm/boot/dts/at91sam9m10g45ek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,54 @@
linux,default-trigger = "mmc0";
};
};

gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;

left_click {
label = "left_click";
gpios = <&pioB 6 1>;
linux,code = <272>;
gpio-key,wakeup;
};

right_click {
label = "right_click";
gpios = <&pioB 7 1>;
linux,code = <273>;
gpio-key,wakeup;
};

left {
label = "Joystick Left";
gpios = <&pioB 14 1>;
linux,code = <105>;
};

right {
label = "Joystick Right";
gpios = <&pioB 15 1>;
linux,code = <106>;
};

up {
label = "Joystick Up";
gpios = <&pioB 16 1>;
linux,code = <103>;
};

down {
label = "Joystick Down";
gpios = <&pioB 17 1>;
linux,code = <108>;
};

enter {
label = "Joystick Press";
gpios = <&pioB 18 1>;
linux,code = <28>;
};
};
};

0 comments on commit 8a087b0

Please sign in to comment.