From patchwork Wed May 21 08:45:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30513 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 129B120671 for ; Wed, 21 May 2014 08:46:04 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf7544904oag.4 for ; Wed, 21 May 2014 01:46:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=45BHp61W9VTfIl71XQ2TNhhqsb0ISdsv6Pgaxt10948=; b=RjVWDdGNScvdtqhIpxvg+0GIAXyB+enlY91MlAw3O/l2cQzx3CyVQE2b9YISDjamW5 qhG90Wl8Rx+YJyIFLXkiJUoOiRHL5IBCvXqnhPeoOGJRFO0C7XB+grZU6K2CxvAx29SJ lDzfoTh1MzDYu3sLGdLdXH+Yc/6370y44yxAR+s/5f7ePRsvbLOODWGB2yn8hqWfepPr Ubfx7Jh9xrb6Wx4IqVEvOrC6Higd8Ebt0fAFoEDP6yXB6LXDXiOWL56WC+LM6R7oF/ij 7Yo5WxmQzjY08bdu0ycJdAu0KeNPElSOuncwp6BmTqs2tUWj0nkMOax672spQDs3W2VI ajkQ== X-Gm-Message-State: ALoCoQnAr10bygUeG+7STY3gO208iJiFY5XD71Ff7zweQRvsksGdJrbHQBrIkQcS4KcgvL+VZ+y0 X-Received: by 10.182.153.68 with SMTP id ve4mr22325385obb.39.1400661964362; Wed, 21 May 2014 01:46:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.181 with SMTP id 50ls613369qgr.92.gmail; Wed, 21 May 2014 01:46:04 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr8537433vch.22.1400661964188; Wed, 21 May 2014 01:46:04 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ty10si243369vdc.73.2014.05.21.01.46.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id lg15so2089588vcb.21 for ; Wed, 21 May 2014 01:46:04 -0700 (PDT) X-Received: by 10.58.111.99 with SMTP id ih3mr6370780veb.39.1400661964119; Wed, 21 May 2014 01:46:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp94934vcb; Wed, 21 May 2014 01:46:03 -0700 (PDT) X-Received: by 10.68.237.67 with SMTP id va3mr6088483pbc.19.1400661963231; Wed, 21 May 2014 01:46:03 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yl3si5304073pbb.96.2014.05.21.01.46.02; Wed, 21 May 2014 01:46:02 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbaEUIps (ORCPT + 27 others); Wed, 21 May 2014 04:45:48 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:45193 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbaEUIpp (ORCPT ); Wed, 21 May 2014 04:45:45 -0400 Received: by mail-ie0-f182.google.com with SMTP id as1so1657903iec.41 for ; Wed, 21 May 2014 01:45:45 -0700 (PDT) X-Received: by 10.50.22.37 with SMTP id a5mr11809803igf.30.1400661945071; Wed, 21 May 2014 01:45:45 -0700 (PDT) Received: from localhost.localdomain (host109-149-218-223.range109-149.btcentralplus.com. [109.149.218.223]) by mx.google.com with ESMTPSA id is8sm3564841igb.7.2014.05.21.01.45.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:45:44 -0700 (PDT) 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 v2 2/3] ARM: sti: stih416: Enable board LED support for B2020 RevE Date: Wed, 21 May 2014 09:45:23 +0100 Message-Id: <1400661924-10745-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400661924-10745-1-git-send-email-lee.jones@linaro.org> References: <1400661924-10745-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Acked-by: Maxime Coquelin --- 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 da3c1c4..ba0fa2c 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: dwmac@fef08000 { snps,reset-gpio = <&PIO0 7>; };