From patchwork Wed Aug 22 16:25:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1362461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 333CADF280 for ; Wed, 22 Aug 2012 16:28:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T4Dky-0004Wp-AT; Wed, 22 Aug 2012 16:26:12 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T4DkY-0004Qr-5Q for linux-arm-kernel@lists.infradead.org; Wed, 22 Aug 2012 16:25:46 +0000 Received: by mail-yx0-f177.google.com with SMTP id q9so849809yen.36 for ; Wed, 22 Aug 2012 09:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=oZjlBIl3zk4Q7DwTpd/QD13EU395O9sZpuYoGzvBoEY=; b=pMLGNm4kvJ5rwE5WS270dz9SiuWQdnQT6RRFvULnxtYbU1u6o4b/474VLJam1YPWgb 1ATC5t3P0XhH9nSchuKgot7XHU0chTcyOu3ZW3RLBH+dB4V4q4F9y/LisiMGOvq4xHde +zdPJDb9UPiDQqTkKiwrY5W2zStBnxGPJVQDcaIFcdqnwAch5h7Yb0tTORr5F/xsdI9v QZU43LTFi7fX+LoV3KdDZeE1OKBxCWEJ1l8QVjpwy4FbX6Pma1xmLBs9JJWPkEPGS5H8 xYu9DmyV5A8U3QhHeW2ksk0ihUJtJj/uM3a7XR6OWR4msUqfe+IG5QnJZcQTsld6MpJF 5i3w== Received: by 10.236.193.105 with SMTP id j69mr29669385yhn.21.1345652745979; Wed, 22 Aug 2012 09:25:45 -0700 (PDT) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.222]) by mx.google.com with ESMTPS id c64sm8649613yhj.17.2012.08.22.09.25.44 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 09:25:45 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH 3/3] ARM: olinuxino: Add gpio-led support Date: Wed, 22 Aug 2012 13:25:33 -0300 Message-Id: <1345652733-13265-3-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345652733-13265-1-git-send-email-festevam@gmail.com> References: <1345652733-13265-1-git-send-email-festevam@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Fabio Estevam Olinuxino has a LED connected to MX23_PAD_SSP1_DETECT__GPIO_2_1 pin. Add support for it. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx23-olinuxino.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts index a286873..711dcf5 100644 --- a/arch/arm/boot/dts/imx23-olinuxino.dts +++ b/arch/arm/boot/dts/imx23-olinuxino.dts @@ -31,6 +31,21 @@ bus-width = <4>; status = "okay"; }; + + pinctrl@80018000 { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + 0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + }; }; apbx@80040000 { @@ -47,4 +62,14 @@ }; }; }; + + leds { + compatible = "gpio-leds"; + + user { + label = "green"; + gpios = <&gpio2 1 0>; + linux,default-trigger = "default-on"; + }; + }; };