Skip to contentSkip to conversation

ARM: kirkwood: fix buttons on lsxl boards

PATCH New Michael Walle 2 participants 4 messages Sep 27, 2012 – Oct 18, 2012 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/boot/dts/kirkwood-lsxl.dtsi |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/boot/dts/kirkwood-lsxl.dtsi +5 -3
index a1dd36d..8fea375 100644
@@ -48,17 +48,19 @@
 		#size-cells = <0>;
 		button at 1 {
 			label = "Function Button";
-			linux,code = <132>;
+			linux,code = <357>;
 			gpios = <&gpio1 9 1>;
 		};
 		button at 2 {
 			label = "Power-on Switch";
-			linux,code = <116>;
+			linux,code = <0>;
+			linux,input-type = <5>;
 			gpios = <&gpio1 10 1>;
 		};
 		button at 3 {
 			label = "Power-auto Switch";
-			linux,code = <142>;
+			linux,code = <1>;
+			linux,input-type = <5>;
 			gpios = <&gpio1 11 1>;
 		};
 	};
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 ARM: kirkwood: fix buttons on lsxl boards

Hi Andrew,

Can you pick this patch?

Am Donnerstag 27 September 2012, 23:54:37 schrieb Michael Walle:

Quoted 36 lines

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.

---
 arch/arm/boot/dts/kirkwood-lsxl.dtsi |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
(quoted diff) +0 -0

b/arch/arm/boot/dts/kirkwood-lsxl.dtsi index a1dd36d..8fea375 100644

arch/arm/boot/dts/kirkwood-lsxl.dtsi +5 -3
@@ -48,17 +48,19 @@
 		#size-cells = <0>;
 		button at 1 {
 			label = "Function Button";
-			linux,code = <132>;
+			linux,code = <357>;
 			gpios = <&gpio1 9 1>;
 		};
 		button at 2 {
 			label = "Power-on Switch";
-			linux,code = <116>;
+			linux,code = <0>;
+			linux,input-type = <5>;
 			gpios = <&gpio1 10 1>;
 		};
 		button at 3 {
 			label = "Power-auto Switch";
-			linux,code = <142>;
+			linux,code = <1>;
+			linux,input-type = <5>;
 			gpios = <&gpio1 11 1>;
 		};
 	};
Signature · 1 line
Michael
#2 lore raw

PATCH 1/1 ARM: kirkwood: fix buttons on lsxl boards

Quoted 4 lines · Michael Walle

Hi Andrew,

Can you pick this patch?

Michael,

Already in my queue.

thx,

Jason.

#3 lore raw

PATCH 1/1 ARM: kirkwood: fix buttons on lsxl boards

In reply to Michael Walle
Quoted 8 lines · Michael Walle

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.

---
 arch/arm/boot/dts/kirkwood-lsxl.dtsi |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

Applied to:

git://git.infradead.org/users/jcooper/linux.git kirkwood/fixes

thx,

Jason.