Commit 12431634 authored by Michael Walle's avatar Michael Walle Committed by Jason Cooper

ARM: kirkwood: fix buttons on lsxl boards

Change event type to switch for the power and autopower switches.
Additionally, this patch aligns the keycodes with the other linkstation
boards already supported by linux.
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent a54841e5
...@@ -48,17 +48,19 @@ gpio_keys { ...@@ -48,17 +48,19 @@ gpio_keys {
#size-cells = <0>; #size-cells = <0>;
button@1 { button@1 {
label = "Function Button"; label = "Function Button";
linux,code = <132>; linux,code = <357>;
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 1>;
}; };
button@2 { button@2 {
label = "Power-on Switch"; label = "Power-on Switch";
linux,code = <116>; linux,code = <0>;
linux,input-type = <5>;
gpios = <&gpio1 10 1>; gpios = <&gpio1 10 1>;
}; };
button@3 { button@3 {
label = "Power-auto Switch"; label = "Power-auto Switch";
linux,code = <142>; linux,code = <1>;
linux,input-type = <5>;
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 1>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment