diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-02-03 23:42:35 -0500 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-03-01 09:34:20 -0500 |
commit | 8a087b0c15d976a71cafbb12aeac77e304c84db5 (patch) | |
tree | 144942fdd8f38c6c168a20a1197cec8214d57f92 | |
parent | f2ee7acd3d0bfcdaf4a76e0a152f373d415a4e31 (diff) |
ARM: at91: at91sam9m10g45ek/dt: add gpio-keys support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r-- | arch/arm/boot/dts/at91sam9m10g45ek.dts | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9m10g45ek.dts b/arch/arm/boot/dts/at91sam9m10g45ek.dts index ae8ed6a304dd..15e25f903cad 100644 --- a/arch/arm/boot/dts/at91sam9m10g45ek.dts +++ b/arch/arm/boot/dts/at91sam9m10g45ek.dts | |||
@@ -59,4 +59,54 @@ | |||
59 | linux,default-trigger = "mmc0"; | 59 | linux,default-trigger = "mmc0"; |
60 | }; | 60 | }; |
61 | }; | 61 | }; |
62 | |||
63 | gpio_keys { | ||
64 | compatible = "gpio-keys"; | ||
65 | #address-cells = <1>; | ||
66 | #size-cells = <0>; | ||
67 | |||
68 | left_click { | ||
69 | label = "left_click"; | ||
70 | gpios = <&pioB 6 1>; | ||
71 | linux,code = <272>; | ||
72 | gpio-key,wakeup; | ||
73 | }; | ||
74 | |||
75 | right_click { | ||
76 | label = "right_click"; | ||
77 | gpios = <&pioB 7 1>; | ||
78 | linux,code = <273>; | ||
79 | gpio-key,wakeup; | ||
80 | }; | ||
81 | |||
82 | left { | ||
83 | label = "Joystick Left"; | ||
84 | gpios = <&pioB 14 1>; | ||
85 | linux,code = <105>; | ||
86 | }; | ||
87 | |||
88 | right { | ||
89 | label = "Joystick Right"; | ||
90 | gpios = <&pioB 15 1>; | ||
91 | linux,code = <106>; | ||
92 | }; | ||
93 | |||
94 | up { | ||
95 | label = "Joystick Up"; | ||
96 | gpios = <&pioB 16 1>; | ||
97 | linux,code = <103>; | ||
98 | }; | ||
99 | |||
100 | down { | ||
101 | label = "Joystick Down"; | ||
102 | gpios = <&pioB 17 1>; | ||
103 | linux,code = <108>; | ||
104 | }; | ||
105 | |||
106 | enter { | ||
107 | label = "Joystick Press"; | ||
108 | gpios = <&pioB 18 1>; | ||
109 | linux,code = <28>; | ||
110 | }; | ||
111 | }; | ||
62 | }; | 112 | }; |