summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-09-27 23:54:37 +0200
committerJason Cooper <jason@lakedaemon.net>2012-10-18 17:07:23 +0000
commit12431634947f4c34015561104c4f8a305bfe6b48 (patch)
treeab41149d9643db789fede71459e33ec84639d6e7
parenta54841e552515a0a09d214ed63701cd0eb3d66c6 (diff)
downloadop-kernel-dev-12431634947f4c34015561104c4f8a305bfe6b48.zip
op-kernel-dev-12431634947f4c34015561104c4f8a305bfe6b48.tar.gz
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: Michael Walle <michael@walle.cc> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/boot/dts/kirkwood-lsxl.dtsi8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/kirkwood-lsxl.dtsi b/arch/arm/boot/dts/kirkwood-lsxl.dtsi
index a1dd36d..8fea375 100644
--- a/arch/arm/boot/dts/kirkwood-lsxl.dtsi
+++ b/arch/arm/boot/dts/kirkwood-lsxl.dtsi
@@ -48,17 +48,19 @@
#size-cells = <0>;
button@1 {
label = "Function Button";
- linux,code = <132>;
+ linux,code = <357>;
gpios = <&gpio1 9 1>;
};
button@2 {
label = "Power-on Switch";
- linux,code = <116>;
+ linux,code = <0>;
+ linux,input-type = <5>;
gpios = <&gpio1 10 1>;
};
button@3 {
label = "Power-auto Switch";
- linux,code = <142>;
+ linux,code = <1>;
+ linux,input-type = <5>;
gpios = <&gpio1 11 1>;
};
};
OpenPOWER on IntegriCloud