From patchwork Thu Jun 4 09:19:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan T. Ivanov" X-Patchwork-Id: 49515 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 950B921562 for ; Thu, 4 Jun 2015 09:20:27 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf8995276lbb.0 for ; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=+RwaVmz21HzNBp0kSBLPASnfMrxLbKE65EqHn3fiSNA=; b=jVdwaGOEb1pVx3rRT8MbRnUETvxs3jVJa5xIFQE8pB1QoWGNzwe9mxnIahvD/N4K8b QUnqIvEMf3+MG+WkJxTYYwBmRQ91XGZN/4d/JbudJHNHGhbbORRJkrwEa3h2s2l2DwOO p02wIA0A6vbimTt90ub84tz9FG3j1m3xU6noWyUXgEaHZfM561HLkKLqTPYd2LJRotmZ CTB16BmhKZTGZNelvwAMtHY5QlbpXbx0ZSf+TMyHBjno0sXxjSmmkNY/nJfzHpr8XUVo 3DdpJQ7QszEW16MVwStVLaWHsJ6Pv/xgGg04oWXMz8lAYE7DeTq3No4eAAOhRPw4vVOV dAfQ== X-Gm-Message-State: ALoCoQlHBeWZv+JsVf9w0bpdXg8LpNecHSoMMiJdIFzzYhQKYb/HvgJh/e3tNdpe1JO4H8+z0suV X-Received: by 10.112.42.236 with SMTP id r12mr34656058lbl.2.1433409626513; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.67 with SMTP id da3ls201866lad.49.gmail; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr20657307lbb.56.1433409626333; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id lm6si1322065lac.29.2015.06.04.02.20.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 02:20:26 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by laew7 with SMTP id w7so27310567lae.1 for ; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) X-Received: by 10.112.41.196 with SMTP id h4mr11114136lbl.36.1433409626174; Thu, 04 Jun 2015 02:20:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp446476lbb; Thu, 4 Jun 2015 02:20:25 -0700 (PDT) X-Received: by 10.68.246.38 with SMTP id xt6mr2491777pbc.20.1433409619402; Thu, 04 Jun 2015 02:20:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si4994410pdn.147.2015.06.04.02.20.18; Thu, 04 Jun 2015 02:20:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753233AbbFDJUQ (ORCPT + 5 others); Thu, 4 Jun 2015 05:20:16 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36805 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753024AbbFDJTb (ORCPT ); Thu, 4 Jun 2015 05:19:31 -0400 Received: by wibdq8 with SMTP id dq8so118079834wib.1 for ; Thu, 04 Jun 2015 02:19:29 -0700 (PDT) X-Received: by 10.180.206.229 with SMTP id lr5mr50609530wic.86.1433409569491; Thu, 04 Jun 2015 02:19:29 -0700 (PDT) Received: from mms-0439.wifi.mm-sol.com ([37.157.136.206]) by mx.google.com with ESMTPSA id ex5sm5419213wib.2.2015.06.04.02.19.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 02:19:28 -0700 (PDT) From: "Ivan T. Ivanov" To: Kumar Gala , Andy Gross Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Stanimir Varbanov , Srinivas Kandagatla , Olof Johansson , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 7/7] arm64: dts: qcom: Add apq8016-sbc board LED's related device nodes Date: Thu, 4 Jun 2015 12:19:06 +0300 Message-Id: <1433409546-23995-8-git-send-email-ivan.ivanov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433409546-23995-1-git-send-email-ivan.ivanov@linaro.org> References: <1433409546-23995-1-git-send-email-ivan.ivanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.ivanov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , APQ8016 SBC board have 6 user controllable LED's. Add following devices: LED1 green LED triggered by system heartbeat. LED2 green LED triggered by access to eMMC device. LED3 green LED triggered by access to SD card. LED4 green LED no trigger assigned. LED5 yellow LED triggered by access to WLAN. LED6 blue LED triggered by access to Bluetooth. Signed-off-by: Ivan T. Ivanov --- .../arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi | 19 ++++++++ arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi | 11 ++--- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 51 ++++++++++++++++++++++ 3 files changed, 73 insertions(+), 8 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi index b568c49..e03c11d 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi @@ -18,4 +18,23 @@ input-disable; }; }; + + pm8916_gpios_leds: pm8916_gpios_leds { + pinconf { + pins = "gpio1", "gpio2"; + function = PMIC_GPIO_FUNC_NORMAL; + output-low; + }; + }; +}; + +&pm8916_mpps { + + pm8916_mpps_leds: pm8916_mpps_leds { + pinconf { + pins = "mpp2", "mpp3"; + function = PMIC_GPIO_FUNC_NORMAL; + output-low; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi index 27087cf..cbeee0b 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi @@ -3,14 +3,9 @@ &msmgpio { - soc_gpios_default: default { - usr_led_1_ctrl_default: usr_led_1_ctrl_default { - pins = "gpio21"; - function = "gpio"; - output-low; - }; - usr_led_2_ctrl_default: usr_led_2_ctrl_default { - pins = "gpio120"; + msmgpio_leds: msmgpio_leds { + pinconf { + pins = "gpio21", "gpio120"; function = "gpio"; output-low; }; diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 98abece..66804ff 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -32,5 +32,56 @@ pinctrl-0 = <&blsp1_uart2_default>; pinctrl-1 = <&blsp1_uart2_sleep>; }; + + leds { + pinctrl-names = "default"; + pinctrl-0 = <&msmgpio_leds>, + <&pm8916_gpios_leds>, + <&pm8916_mpps_leds>; + + compatible = "gpio-leds"; + + led@1 { + label = "apq8016-sbc:green:user1"; + gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + + led@2 { + label = "apq8016-sbc:green:user2"; + gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + default-state = "off"; + }; + + led@3 { + label = "apq8016-sbc:green:user3"; + gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc1"; + default-state = "off"; + }; + + led@4 { + label = "apq8016-sbc:green:user4"; + gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + default-state = "off"; + }; + + led@5 { + label = "apq8016-sbc:yellow:wlan"; + gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "wlan"; + default-state = "off"; + }; + + led@6 { + label = "apq8016-sbc:blue:bt"; + gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bt"; + default-state = "off"; + }; + }; }; };