MIPS: CI20: DTS: Add Leds
authorAlexandre GRIVEAUX <agriveaux@deutnet.info>
Tue, 1 Oct 2019 19:09:30 +0000 (21:09 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:46:22 +0000 (09:46 -0700)
Adding leds and related triggers.

Signed-off-by: Alexandre GRIVEAUX <agriveaux@deutnet.info>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: robh+dt@kernel.org
Cc: mark.rutland@arm.com
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
arch/mips/boot/dts/ingenic/ci20.dts

index c62c36a..37b9316 100644 (file)
                       0x30000000 0x30000000>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               led0 {
+                       label = "ci20:red:led0";
+                       gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "none";
+               };
+
+               led1 {
+                       label = "ci20:red:led1";
+                       gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "nand-disk";
+               };
+
+               led2 {
+                       label = "ci20:red:led2";
+                       gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "cpu1";
+               };
+
+               led3 {
+                       label = "ci20:red:led3";
+                       gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
+                       linux,default-trigger = "cpu0";
+               };
+       };
+
        eth0_power: fixedregulator@0 {
                compatible = "regulator-fixed";
                regulator-name = "eth0_power";