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: 64274 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp233067lbc; Wed, 23 Mar 2016 12:49:01 -0700 (PDT) X-Received: by 10.98.71.92 with SMTP id u89mr6854617pfa.100.1458762539359; Wed, 23 Mar 2016 12:48:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si6339330pas.72.2016.03.23.12.48.59; Wed, 23 Mar 2016 12:48:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932854AbcCWTs5 (ORCPT + 29 others); Wed, 23 Mar 2016 15:48:57 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38740 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756662AbcCWTsI (ORCPT ); Wed, 23 Mar 2016 15:48:08 -0400 Received: by mail-wm0-f46.google.com with SMTP id l68so38113747wml.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=Rp5I81KteIIOncnzszxaFpC1Uy//Y3IZaAeYw/vdCRjxLg4rjq11e/YkHw1Rm5bDvG roS6L/3l/g8DgD3eUQToAO1CMKHch973xxT2ZvQRHaFOWbZ/+7o0jUG+9NnCxQfFVoqU AXHktNCnNpd85lxzocEOeb/4sKeWdhlp7kTICb5WUWoi6NjrVDKYVjhnydZ4yASOzbey EoBvI7Ab88JGAQUBKeCAWOeGOAOnaYNrE1GbayH80cf+Gjv1gkXwLEU85XXcKYCVxYoO 6uOGNTQCStzSPlqJXm8CTuC1XJS3t0bbOV1EQm3BksfMPBtQrROW6HGjYOAt21hikYVi CQaw== X-Gm-Message-State: AD7BkJIYzp+S8MNQQy1EckPvB0tp+xO9izZwYfbArLl3ekb4u/FXD8xQ6GzjjhuczLUb9Blz 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 Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-soc@vger.kernel.org, Srinivas Kandagatla 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.5.0 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>;