From patchwork Sun Sep 23 19:18:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1495711 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 762AADFFD0 for ; Sun, 23 Sep 2012 19:20:41 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TFrhd-0000aC-EJ; Sun, 23 Sep 2012 19:18:53 +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 1TFrha-0000Zy-OV for linux-arm-kernel@lists.infradead.org; Sun, 23 Sep 2012 19:18:51 +0000 Received: by yenr1 with SMTP id r1so206714yen.36 for ; Sun, 23 Sep 2012 12:18:48 -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; bh=lDGxf3n1f760st0asb7oG7HqHg1dgfkU3dS1EYq9yhY=; b=o7UOcRr6nKqVue7VjXy5AXlBE8T7qN58bcA6L6TiPuHA6009IXCz+fk5uD9Vxd+I9b 1rsb+YKAvGPhHmezzmK+1NYuLIia+tEE2ioJrnlnvXNFjbH+hAczw9hdOhjv6juFgjFc 5DWg5Ir/4VfG0O1ozAR39qQgiXrPtPfXt1rwON3eQfZk8CzK7Im1rTiAzxauzXpXCVB1 XucC1UwrY1T7oDplggroRbKwnkUPv2KZ+9sDgoNj0MoD85FHR9EVt+NlEVVQaihSl0al pMiUWoFq2gqoDFD7WQq5iwLIAFYariAUsWSlxqBaBJ9B28s0TlyIaYeiuOmrIQ9t1teW bcIw== Received: by 10.236.143.237 with SMTP id l73mr10081213yhj.68.1348427928769; Sun, 23 Sep 2012 12:18:48 -0700 (PDT) Received: from localhost.localdomain ([189.101.140.114]) by mx.google.com with ESMTPS id a6sm11265630anm.22.2012.09.23.12.18.45 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 12:18:47 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Subject: [PATCH v2] ARM: dts: imx28-evk: Use pinctrl for gpio-led Date: Sun, 23 Sep 2012 16:18:38 -0300 Message-Id: <1348427918-19143-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -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 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 Since commit 8fe4554f (leds: leds-gpio: adopt pinctrl support) gpio-led driver has pinctrl support, so setup the gpio led pin via pinctrl and avoid the following warning: leds-gpio leds.12: pins are not configured from the driver Signed-off-by: Fabio Estevam --- Changes since v1: Place "pinctrl-0 = <&led_pin_gpio3_5>" into "leds" level, now the warning is not shown anymore. - arch/arm/boot/dts/imx28-evk.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts index a0ad71c..2da316e 100644 --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts @@ -76,7 +76,6 @@ 0x20c3 /* MX28_PAD_SSP1_SCK__GPIO_2_12 */ 0x31c3 /* MX28_PAD_PWM3__GPIO_3_28 */ 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */ - 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */ 0x3083 /* MX28_PAD_AUART2_RX__GPIO_3_8 */ 0x3093 /* MX28_PAD_AUART2_TX__GPIO_3_9 */ >; @@ -85,6 +84,16 @@ fsl,pull-up = <0>; }; + led_pin_gpio3_5: led_gpio3_5@0 { + reg = <0>; + fsl,pinmux-ids = < + 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + gpmi_pins_evk: gpmi-nand-evk@0 { reg = <0>; fsl,pinmux-ids = < @@ -288,6 +297,8 @@ leds { compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pin_gpio3_5>; user { label = "Heartbeat";