diff mbox

ARM: shmobile: Enable GPIO LEDs on Genmai

Message ID 20131113234230.1579.9739.sendpatchset@w520 (mailing list archive)
State New, archived
Headers show

Commit Message

Magnus Damm Nov. 13, 2013, 11:42 p.m. UTC
From: Magnus Damm <damm@opensource.se>

Enable led1 and led2 on the Genmai board using
the r7s72100 SoC and the GPIO RZ driver.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/boot/dts/r7s72100-genmai-reference.dts |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

Comments

Simon Horman Nov. 19, 2013, 2:04 a.m. UTC | #1
On Thu, Nov 14, 2013 at 08:42:30AM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> 
> Enable led1 and led2 on the Genmai board using
> the r7s72100 SoC and the GPIO RZ driver.

Thanks, I have queued this up.

I think there should be an accompanying defconfig update.
Would you like me to prepare something?
Simon Horman Nov. 19, 2013, 2:08 a.m. UTC | #2
On Tue, Nov 19, 2013 at 11:04:25AM +0900, Simon Horman wrote:
> On Thu, Nov 14, 2013 at 08:42:30AM +0900, Magnus Damm wrote:
> > From: Magnus Damm <damm@opensource.se>
> > 
> > Enable led1 and led2 on the Genmai board using
> > the r7s72100 SoC and the GPIO RZ driver.
> 
> Thanks, I have queued this up.

I was a little to hasty. I have unqueued this patch
as it depends on "ARM: shmobile: r7s72100 GPIO DT nodes for GPIO RZ"
which appears to still be under discussion.

> 
> I think there should be an accompanying defconfig update.
> Would you like me to prepare something?
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
diff mbox

Patch

--- 0001/arch/arm/boot/dts/r7s72100-genmai-reference.dts
+++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts	2013-11-13 22:39:40.000000000 +0900
@@ -9,7 +9,8 @@ 
  */
 
 /dts-v1/;
-/include/ "r7s72100.dtsi"
+#include "r7s72100.dtsi"
+#include <dt-bindings/gpio/gpio.h>
 
 / {
 	model = "Genmai";
@@ -28,4 +29,14 @@ 
 		#address-cells = <1>;
 		#size-cells = <1>;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+		led1 {
+			gpios = <&p4 10 GPIO_ACTIVE_LOW>;
+		};
+		led2 {
+			gpios = <&p4 11 GPIO_ACTIVE_LOW>;
+		};
+	};
 };