From 2d766ad31b36854bc940ddfa74ea8c597651dc1d Mon Sep 17 00:00:00 2001 From: wenbiao zhang Date: Mon, 2 Jul 2018 15:04:27 +0800 Subject: [PATCH] dts: add system led control for u200 buildroot PD#169382: dts: add system led control for u200 buildroot Change-Id: I56686581ff8f5e2e2d36cb91f77a418ae1f9479a Signed-off-by: wenbiao zhang --- arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts | 13 +++++++++++++ .../boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts b/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts index 28337d3..1e26b76 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts @@ -141,6 +141,19 @@ }; }; + 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"; diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts b/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts index 26907c2..64dff1c 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts @@ -142,6 +142,19 @@ }; }; + 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"; -- 2.7.4