From patchwork Wed May 21 08:20:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 30511 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78F9420675 for ; Wed, 21 May 2014 08:20:48 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id i17sf5001777qcy.6 for ; Wed, 21 May 2014 01:20:47 -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=p/9BtvvVCSjMuUD62SHrFLGpkI5rz4LAos4v06JNzss=; b=VmPZNcbEmixwbXRip5WUcHEqXF4Vh33J9BNDHufCzJy2KJ9Ri1e6PK6Dd7GG2U8vlY D6nn6AIRt0RsswlDxH/gVNWXu86j6ux1d4V+f0qAYyvvi+2QEq0zCDkujQ4t88OKwy8H r404auAeHX9gHRWfIzIHOZ/GBsRglXVxLqqP9MB+BF6HhT7GcnuT/qXLVNAuza0VyLnz bmrC8bGX/wGwRGkxNRU5ayjFeAjWS865xdu00ECdBVoPx1bVutyq08FepZtBM8+1R6Hl 46ZaT1Yuawh+Eh7nwP675SIMkF9EBixTrS2rBo0liKOcMElhbl7KBoCoEI9Rh0iurjUQ bfOw== X-Gm-Message-State: ALoCoQl+51fs4gfNCu1C+9d1HnNKYa+ftkbjgwV6hDn/XxW4Ya+koDnRb/5EgEj5HVElKsDJVQIn X-Received: by 10.58.141.200 with SMTP id rq8mr14259164veb.31.1400660447920; Wed, 21 May 2014 01:20:47 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.36 with SMTP id f33ls612913qga.19.gmail; Wed, 21 May 2014 01:20:47 -0700 (PDT) X-Received: by 10.58.188.37 with SMTP id fx5mr33387934vec.17.1400660447307; Wed, 21 May 2014 01:20:47 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id ty10si219865vdc.73.2014.05.21.01.20.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:20:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id lf12so2082984vcb.1 for ; Wed, 21 May 2014 01:20:47 -0700 (PDT) X-Received: by 10.58.182.129 with SMTP id ee1mr36693989vec.14.1400660447213; Wed, 21 May 2014 01:20:47 -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 ib8csp93465vcb; Wed, 21 May 2014 01:20:46 -0700 (PDT) X-Received: by 10.66.66.202 with SMTP id h10mr57106603pat.70.1400660446430; Wed, 21 May 2014 01:20:46 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fu6si8827829pac.106.2014.05.21.01.20.45; Wed, 21 May 2014 01:20:45 -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 S1752124AbaEUIUh (ORCPT + 27 others); 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 Received: by mail-ie0-f169.google.com with SMTP id at1so1643269iec.14 for ; Wed, 21 May 2014 01:20:34 -0700 (PDT) X-Received: by 10.42.47.208 with SMTP id p16mr10434308icf.16.1400660434132; Wed, 21 May 2014 01:20:34 -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 ql7sm3381064igc.19.2014.05.21.01.20.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 01:20:33 -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 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 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.170 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 --- 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>; };