dts: add system led control for u200 buildroot
authorwenbiao zhang <wenbiao.zhang@amlogic.com>
Mon, 2 Jul 2018 07:04:27 +0000 (15:04 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 4 Jul 2018 08:21:46 +0000 (01:21 -0700)
PD#169382: dts: add system led control for u200 buildroot

Change-Id: I56686581ff8f5e2e2d36cb91f77a418ae1f9479a
Signed-off-by: wenbiao zhang <wenbiao.zhang@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts

index 28337d3ec7c5c403e7a81b877a8c2c4716bc903f..1e26b76aa959582a68f07be094e51c0d002cc54a 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";
index 26907c27c7449a4c1c3dad697172f1585e57105a..64dff1cb350cda62b84867ac436215a466bd71eb 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";