From patchwork Wed Mar 23 19:48:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 8653801 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 96EEC9F36E for ; Wed, 23 Mar 2016 19:54:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C30CB203ED for ; Wed, 23 Mar 2016 19:54:46 +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 EC61B203E5 for ; Wed, 23 Mar 2016 19:54:45 +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 1aiopy-0008Fm-5D; Wed, 23 Mar 2016 19:53:02 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aiolZ-00031T-Rh for linux-arm-kernel@lists.infradead.org; Wed, 23 Mar 2016 19:48:35 +0000 Received: by mail-wm0-x229.google.com with SMTP id l68so38113749wml.1 for ; Wed, 23 Mar 2016 12:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0iU+lQ2ElaAf0jPIqavDfkxgLjMFNNAE4yntEYBdf5g=; b=Z4EKkBFlNBUgado5JRGap4KZtfJGAScBHZfpLkx8LDUsI2m8Wt5T49RmBuWeE3WVk+ gol5oj6JjuSGSsAHZ4gW6gml3vrR7/D1qDWy/gnBA6PKOV8fFPWj1pdcBcZ1Zll+tLk/ n7hsktTeK2ZxJTGHXarxw5RF9e/IsccxylEec= 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=0iU+lQ2ElaAf0jPIqavDfkxgLjMFNNAE4yntEYBdf5g=; b=J4293P52AfrQo2tc0VSuFS1Dn4QF/b3azJBhOz9LRwZi0gn4vB0XLuhgVj4gsG2xTp HHGKJJqofvh1SVBxVm9Jp3JV3fwGvnT4qFgJksqTTzLxnVE7wZx6NPTJlPjdy2kCzkby WagKxSDIqu7dsh7R85vmrtHW8ZiP/ht5r4/sL8oq2KrI/BJ+AhQZ6ghv/DpQqBnEdvxK u6Gyj0gTu2u+QygGYEPiZpza4WIyaGP5PDoNil0EDWN9+izU8MPtl954FfN2LsTe8XZ/ qzdoTNBXiJcIlkpYxub7/CcvdZ/8tFMTGl9dpLgqxJukzhnip7F0jB8MAd33011FJqII jrsw== X-Gm-Message-State: AD7BkJKL6LFKFTFAnZxj4OTr0siSyWQ6Eo9ac7+rvSONV4o8a6SKGaSU83Xh3DoTYnggWcFB X-Received: by 10.28.145.196 with SMTP id t187mr5677798wmd.81.1458762487448; Wed, 23 Mar 2016 12:48:07 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id c128sm23678800wma.11.2016.03.23.12.48.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Mar 2016 12:48:07 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross , linux-arm-msm@vger.kernel.org Subject: [PATCH 10/12] ARM: dts: dragonboard-600c: Add on board leds support Date: Wed, 23 Mar 2016 19:48:04 +0000 Message-Id: <1458762484-9768-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1458762366-9233-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1458762366-9233-1-git-send-email-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160323_124830_454278_E37BC4C8 X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -2.0 (--) 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: devicetree@vger.kernel.org, Srinivas Kandagatla , linux-soc@vger.kernel.org, linux-kernel@vger.kernel.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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 support to 4 user leds, wlan and bt led on board. Signed-off-by: Srinivas Kandagatla --- .../arm/boot/dts/qcom-apq8064-dragonboard-600c.dts | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts b/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts index 52f742c..4fecd94 100644 --- a/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts +++ b/arch/arm/boot/dts/qcom-apq8064-dragonboard-600c.dts @@ -53,6 +53,33 @@ bias-disable; }; }; + + user_leds: user_leds { + mux { + pins = "gpio3", "gpio7", "gpio10", "gpio11"; + function = "gpio"; + }; + + conf { + pins = "gpio3", "gpio7", "gpio10", "gpio11"; + function = "gpio"; + output-low; + }; + }; + }; + + qcom,ssbi@500000 { + pmic@0 { + mpps@50 { + mpp_leds: mpp_leds { + pinconf { + pins = "mpp7", "mpp8"; + function = "digital"; + output-low; + }; + }; + }; + }; }; rpm@108000 { @@ -165,6 +192,55 @@ }; }; + leds { + pinctrl-names = "default"; + pinctrl-0 = <&user_leds>, <&mpp_leds>; + + compatible = "gpio-leds"; + + led@1 { + label = "dragonboard-600c:green:user1"; + gpios = <&tlmm_pinmux 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + + led@2 { + label = "dragonboard-600c:green:user2"; + gpios = <&tlmm_pinmux 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + default-state = "off"; + }; + + led@3 { + label = "dragonboard-600c:green:user3"; + gpios = <&tlmm_pinmux 10 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc1"; + default-state = "off"; + }; + + led@4 { + label = "apq8016-sbc:green:user4"; + gpios = <&tlmm_pinmux 11 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + }; + + led@5 { + label = "dragonboard-600c:yellow:wlan"; + gpios = <&pm8921_mpps 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "wlan"; + default-state = "off"; + }; + + led@6 { + label = "dragonboard-600c:blue:bt"; + gpios = <&pm8921_mpps 8 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bt"; + default-state = "off"; + }; + }; + pci@1b500000 { status = "okay"; vdda-supply = <&pm8921_s3>;