dts: g12a: add system led control for u200 [2/2]
authorbichao.zheng <bichao.zheng@amlogic.com>
Thu, 26 Apr 2018 06:03:40 +0000 (14:03 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 4 May 2018 02:20:02 +0000 (19:20 -0700)
PD#165027: gpio-led: g12a_s905d2_u200 add system led

1.Turns on green light when booting and resume.
2.Turns off green light,turns on red light when suspend and shutdown

Change-Id: I170b4745b320a5525fe128c025f2670103950922
Signed-off-by: bichao.zheng <bichao.zheng@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200.dts

index 6811b5b..03644ac 100644 (file)
                };
        };
 
+       gpioleds {
+               compatible = "gpio-leds";
+               status = "okay";
+
+               sys_led {
+                       label="sys_led";
+                       gpios=<&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
+                       default-state ="on";
+                       retain-state-suspended;
+                       linux,default-trigger="cpu0";
+               };
+       };
+
        cvbsout {
                compatible = "amlogic, cvbsout-g12a";
                dev_name = "cvbsout";