[Gta04-owner] [PATCH 2/2] dts/gta04: Add led support.

Marek Belisko marek.belisko at open-nandra.com
Wed Oct 17 22:52:58 CEST 2012


Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
 arch/arm/boot/dts/omap3-gta04.dts |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts
index 3792c9f..308a2e4 100644
--- a/arch/arm/boot/dts/omap3-gta04.dts
+++ b/arch/arm/boot/dts/omap3-gta04.dts
@@ -50,6 +50,35 @@
 		compatible = "bosch,bmp085";
 		reg = <0x77>;
 	};
+
+	/* Led driver */
+	tca6507 at 45 {
+		compatible = "leds-tca6507";
+		#address-cells = <1>;
+		#size-cells = <0>;
+		reg = <0x45>;
+
+		gta04_led0: red_aux at 0 {
+			label = "gta04:red:aux";
+			reg = <0x0>;
+		};
+
+		gta04_led1: green_aux at 1 {
+			label = "gta04:green:aux";
+			reg = <0x1>;
+		};
+
+		gta04_led3: red_power at 3 {
+			label = "gta04:red:power";
+			reg = <0x3>;
+			linux,default-trigger = "default-on";
+		};
+
+		gta04_led4: green_power at 4 {
+			label = "gta04:green:power";
+			reg = <0x4>;
+		};
+	};
 };
 
 &i2c3 {
-- 
1.7.9.5



More information about the Gta04-owner mailing list