Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932268AbcCILF5 (ORCPT ); Wed, 9 Mar 2016 06:05:57 -0500 Received: from down.free-electrons.com ([37.187.137.238]:40604 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752635AbcCILFH (ORCPT ); Wed, 9 Mar 2016 06:05:07 -0500 From: Maxime Ripard To: Linus Walleij , Alexandre Courbot , Lee Jones , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Hans de Goede , Maxime Ripard Subject: [PATCH 4/4] ARM: sun5i: chip: Add status LED Date: Wed, 9 Mar 2016 11:50:14 +0100 Message-Id: <1457520614-32239-5-git-send-email-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1457520614-32239-1-git-send-email-maxime.ripard@free-electrons.com> References: <1457520614-32239-1-git-send-email-maxime.ripard@free-electrons.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 31 The CHIP has a status LED connected to one of the AXP GPIOs. Add the gpio-leds node to be able to use the proper LED framework to control it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun5i-r8-chip.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-r8-chip.dts b/arch/arm/boot/dts/sun5i-r8-chip.dts index f6898c6b84d4..9a54df81ece7 100644 --- a/arch/arm/boot/dts/sun5i-r8-chip.dts +++ b/arch/arm/boot/dts/sun5i-r8-chip.dts @@ -64,6 +64,16 @@ chosen { stdout-path = "serial0:115200n8"; }; + + leds { + compatible = "gpio-leds"; + + status { + label = "chip:white:status"; + gpios = <&axp_gpio 2 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; }; &codec { -- 2.7.2