From patchwork Tue Aug 18 13:10:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 7031331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2D34D9F344 for ; Tue, 18 Aug 2015 13:12:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6703A2065D for ; Tue, 18 Aug 2015 13:12:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 31B9520792 for ; Tue, 18 Aug 2015 13:12:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZRgf1-0006rD-Ht; Tue, 18 Aug 2015 13:10:39 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZRgey-0006js-5v for linux-arm-kernel@lists.infradead.org; Tue, 18 Aug 2015 13:10:36 +0000 Received: by wicja10 with SMTP id ja10so94576837wic.1 for ; Tue, 18 Aug 2015 06:10:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S8ZZk4HySRt+XmPBn7OAcoen2uPyoaOUkLcvI9XkM4I=; b=fKDoutZR48cgS5IC4RvMR2fym86yB7DhG0J53NMhRsduixmKQr75KBtPwYGxWbVOIN lU0On1CVTRL8aUkyXNOa6K/WVBEq2DxlSzo9nvn6gTYRM21huzY5NKCDY5sh5eNQeZas IKwd3biznqbfdvGVQkkWqTE1lnQZSJM8KTxlpaZtiSJ31zIbo9GzZzp+8kjAy2f4dlIX 3BpxUsUzJ+ynocVG5bsamLBrAizHk6ZxDyBCxDXa5oGKDyfGMSlMKQu3D8S/NGei5YBy ABvHoMJWIgswtEVOQ+WyB2EZzzGgmGifEIZcRvXCCcYvhx14sIKMWdHfma5QHZ+gfXyA uGfw== X-Gm-Message-State: ALoCoQnyrLH+43DGU+0a9zrIEDM4Ip5Pf1E0uK0rN4U2j+gok6dm9W82oumyn4KPcXZ2Sx3BUj6x X-Received: by 10.195.18.5 with SMTP id gi5mr13876377wjd.0.1439903414488; Tue, 18 Aug 2015 06:10:14 -0700 (PDT) Received: from localhost.localdomain (host-92-13-246-184.as43234.net. [92.13.246.184]) by smtp.gmail.com with ESMTPSA id bq7sm26392143wjc.31.2015.08.18.06.10.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Aug 2015 06:10:14 -0700 (PDT) From: Srinivas Kandagatla To: agross@codeaurora.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 3/6] ARM: dts: apq8064-ifc6410: add notify led support. Date: Tue, 18 Aug 2015 14:10:09 +0100 Message-Id: <1439903409-20233-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439903069-19752-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1439903069-19752-1-git-send-email-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150818_061036_373241_29A31C68 X-CRM114-Status: GOOD ( 12.86 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , srinivas.kandagatla@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds notify led support on IFC6410, whose trigger can be configured from userspace. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b1f9ddb..08daafe 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -221,6 +221,18 @@ status = "okay"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <¬ify_led>; + + led@1 { + label = "apq8064:green:user1"; + gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + }; + qcom,ssbi@500000 { pmic@0 { gpio@150 { @@ -232,6 +244,15 @@ power-source = ; }; }; + + notify_led: nled { + pios { + pins = "gpio18"; + function = "normal"; + bias-disable; + power-source = ; + }; + }; }; }; };