Skip to contentSkip to conversation

ARM: mvebu: Add button on Armada 370 Reference Design board

PATCH New Ezequiel Garcia 3 participants 3 messages Mar 21, 2013 – Mar 30, 2013 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board

The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.

---
 arch/arm/boot/dts/armada-370-rd.dts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/armada-370-rd.dts +11 -0
index f8e4855..df3fdf4 100644
@@ -65,4 +65,15 @@
 			/* No CD or WP GPIOs */
 		};
 	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		button at 1 {
+			label = "Software Button";
+			linux,code = <116>;
+			gpios = <&gpio0 6 1>;
+		};
+	};
 };
Signature · 1 line
1.7.8.6
#1 lore raw

PATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board

Hello Ezequiel,

Le 03/21/13 20:43, Ezequiel Garcia a ?crit :

Quoted 3 lines

The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.

This is also what I found out while playing with gpio exporting, looks good!

Quoted 2 lines
Quoted 25 lines
---
  arch/arm/boot/dts/armada-370-rd.dts |   11 +++++++++++
  1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/boot/dts/armada-370-rd.dts +11 -0
index f8e4855..df3fdf4 100644
@@ -65,4 +65,15 @@
  			/* No CD or WP GPIOs */
  		};
  	};
+
+	gpio-keys {
+		compatible = "gpio-keys";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		button at 1 {
+			label = "Software Button";
+			linux,code = <116>;
+			gpios = <&gpio0 6 1>;
+		};
+	};
  };
Applied
#2 lore raw

PATCH 1/1 ARM: mvebu: Add button on Armada 370 Reference Design board

In reply to Ezequiel Garcia
Quoted 8 lines · Ezequiel Garcia

The Marvell Armada 370 Reference Design board has a software-controlled button on the front side, marked as "SW".
This patch adds minimal support for this button.

---
 arch/arm/boot/dts/armada-370-rd.dts |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

Applied to mvebu/dt

thx,

Jason.