From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752123AbaEUIUh (ORCPT ); Wed, 21 May 2014 04:20:37 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:45730 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbaEUIUe (ORCPT ); Wed, 21 May 2014 04:20:34 -0400 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com Cc: lee.jones@linaro.org, kernel@stlinux.com Subject: [PATCH 2/3] ARM: sti: stih416: Enable board LED support for B2020 RevE Date: Wed, 21 May 2014 09:20:14 +0100 Message-Id: <1400660415-14720-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400660415-14720-1-git-send-email-lee.jones@linaro.org> References: <1400660415-14720-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two LEDs available on the B2020 RevE board, one red, one green. In this patch we enable the red one for "heartbeat" and turn the green one off. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-b2020-revE.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stih416-b2020-revE.dts b/arch/arm/boot/dts/stih416-b2020-revE.dts index 202919a..0a33739 100644 --- a/arch/arm/boot/dts/stih416-b2020-revE.dts +++ b/arch/arm/boot/dts/stih416-b2020-revE.dts @@ -14,6 +14,20 @@ compatible = "st,stih416-b2020", "st,stih416"; soc { + leds { + compatible = "gpio-leds"; + red { + #gpio-cells = <1>; + label = "Front Panel LED"; + gpios = <&PIO4 1>; + linux,default-trigger = "heartbeat"; + }; + green { + gpios = <&PIO1 3>; + default-state = "off"; + }; + }; + ethernet1: ethernet@fef08000 { snps,reset-gpio = <&PIO0 7>; }; -- 1.8.3.2