From patchwork Tue Apr 12 09:33:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 65603 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1814406qge; Tue, 12 Apr 2016 02:35:16 -0700 (PDT) X-Received: by 10.98.64.4 with SMTP id n4mr3245441pfa.58.1460453716273; Tue, 12 Apr 2016 02:35:16 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si9022804pfi.125.2016.04.12.02.35.15; Tue, 12 Apr 2016 02:35:16 -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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756692AbcDLJfH (ORCPT + 29 others); Tue, 12 Apr 2016 05:35:07 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:36750 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756633AbcDLJez (ORCPT ); Tue, 12 Apr 2016 05:34:55 -0400 Received: by mail-wm0-f44.google.com with SMTP id v188so119202278wme.1 for ; Tue, 12 Apr 2016 02:34:49 -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=VksHBWoITRIMvAeeKQt+aoFXaM9W64V88ytjmxkU+AM=; b=XR3V03OWToT+yHZjE5zazX7+xM58iV1BixuZ0dIut1L5c6CvOGuMeSxCmoGUbRhWGr vONFbJp162WNKB0Sq6lktn0oFxx6vgqe+3kfuEIT5YT3pAUlVpBBWx33jnrczZ6kLuQx dtOzfAJ/kenKqZVKwuq6+yhMyuXxOGSMTAWSc= 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=VksHBWoITRIMvAeeKQt+aoFXaM9W64V88ytjmxkU+AM=; b=Cjd5odowqMZytvEqyYqcqv6uZOemPu8T2bd1kDsJDltLDyYom8hOYD3hrA7S3DPirK kSWw+/J4dpMrP8eOwdB4QuWCSkBRIVCNputvLPurymJHP/AE9bx7DBkNxu98vgZZiqZU mak2m/Gtmx98pY7bkVhyanBLxauxPX4ViXxJNemV13HjjRQh9HqoG+1bh08JTtMl/7Je Vub6sk9Wgsdy6HijuOZQN2yzQmeuaxzjmezlHXZR/iUpHaR5DcaykO6217YgU2vmjVph Y8RaFni0Sxgwr/kR0hiXL36f8mCISml+SfVRDJ2qlUdFTCjTUDARxrltqWlG+WlI2m3X gUEA== X-Gm-Message-State: AOPr4FVrGxooACAHJg2ZkStIWrER3ssf5a+p1lI5yp5gJyxjJrBJXg/hDyM3BRIB+fF/wE7N X-Received: by 10.194.216.227 with SMTP id ot3mr2631410wjc.69.1460453689122; Tue, 12 Apr 2016 02:34:49 -0700 (PDT) Received: from localhost.localdomain (host-92-17-247-99.as13285.net. [92.17.247.99]) by smtp.gmail.com with ESMTPSA id gt7sm32431907wjc.1.2016.04.12.02.34.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Apr 2016 02:34:48 -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@linaro.org Subject: [PATCH v2 10/13] ARM: dts: db600c: Add on board leds support Date: Tue, 12 Apr 2016 10:33:59 +0100 Message-Id: <1460453642-5809-11-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460453642-5809-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1460453642-5809-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 --- .../boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi | 23 +++++++++++ arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts | 47 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) -- 2.5.0 diff --git a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi index 0610f00..3b55bb9 100644 --- a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi +++ b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c-pins.dtsi @@ -18,4 +18,27 @@ bias-disable; }; }; + + user_leds: user-leds { + mux { + pins = "gpio3", "gpio7", "gpio10", "gpio11"; + function = "gpio"; + }; + + conf { + pins = "gpio3", "gpio7", "gpio10", "gpio11"; + function = "gpio"; + output-low; + }; + }; +}; + +&pm8921_mpps { + mpp_leds: mpp-leds { + pinconf { + pins = "mpp7", "mpp8"; + function = "digital"; + output-low; + }; + }; }; diff --git a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts index 6f97ddc..8c18a4b 100644 --- a/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts +++ b/arch/arm/boot/dts/qcom-apq8064-arrow-db600c.dts @@ -153,6 +153,53 @@ }; }; + leds { + pinctrl-names = "default"; + pinctrl-0 = <&user_leds>, <&mpp_leds>; + + compatible = "gpio-leds"; + + user-led0 { + label = "user0-led"; + gpios = <&tlmm_pinmux 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + + user-led1 { + label = "user1-led"; + gpios = <&tlmm_pinmux 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + default-state = "off"; + }; + + user-led2 { + label = "user2-led"; + gpios = <&tlmm_pinmux 10 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc1"; + default-state = "off"; + }; + + user-led3 { + label = "user3-led"; + gpios = <&tlmm_pinmux 11 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + }; + + wifi-led { + label = "WiFi-led"; + gpios = <&pm8921_mpps 7 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + + bt-led { + label = "BT-led"; + gpios = <&pm8921_mpps 8 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + }; + pci@1b500000 { status = "okay"; vdda-supply = <&pm8921_s3>;