From patchwork Fri Aug 19 08:46:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 74219 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp202689qga; Fri, 19 Aug 2016 01:47:38 -0700 (PDT) X-Received: by 10.98.111.133 with SMTP id k127mr12062128pfc.90.1471596458013; Fri, 19 Aug 2016 01:47:38 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk10si7192055pab.272.2016.08.19.01.47.37 for ; Fri, 19 Aug 2016 01:47:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752430AbcHSIrh (ORCPT ); Fri, 19 Aug 2016 04:47:37 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:34511 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbcHSIrg (ORCPT ); Fri, 19 Aug 2016 04:47:36 -0400 Received: by mail-lf0-f50.google.com with SMTP id l89so28157815lfi.1 for ; Fri, 19 Aug 2016 01:46:56 -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; bh=nGf3D5Nwc+hOocNzneo9zAVw1Y1L06i6rYM94s/p7+4=; b=V2EzqzRHB8wEnHA4nUmpLYleaXEFu/8CcpeTFmgf/3bW1gSVyqUoLPSDfFlVKhbe8M lQuXXkvFDrGKyenvCwdPzauzsHYfEP/ZNzWRv/8cHUivsjTC8cvi0jp+j8mrvDilMg82 HzDKY6r/fyp9kqZMfZUHYz7u+VaXspWql13is= 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; bh=nGf3D5Nwc+hOocNzneo9zAVw1Y1L06i6rYM94s/p7+4=; b=LBDXG5Y2sEzPXzpmRkxAsbo4IjRkYZRhy9qx9SjH2VVys62NDTmn2LL0q8biGgqgyO K0suQyFcbQi8NrJcsQW/rY9UHJYgM7/vY0Z1gj88LDi0hr0XhExUHMyYZCllTGATPfKo DpKuT7U4WUW1H9MCV1xWFd2A0pXT7lFiL/bW+kylqdbGUYFmyofw6lfWf8n1GCcrII/l u34IECKA42YB0MH8d2aFVY6AVcTJ6DsXa02uHXGi0wTriZOgroMxw9K/hIgtIINSDXD5 sr9Evj8MTqjWSk5van/ePxLpoUAaZA2kSMyw/skIkoOBrjj9zzT6JmLWp02UG350f5// ilAA== X-Gm-Message-State: AEkoouuq2RDxY2Z/EbHSR8zU9evff3oVkiN8SUuqOOyJpQNrjHYxCH8xYh1Me39due28n60g X-Received: by 10.25.145.7 with SMTP id t7mr1419996lfd.18.1471596415548; Fri, 19 Aug 2016 01:46:55 -0700 (PDT) Received: from linuslaptop.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 196sm1060749ljf.5.2016.08.19.01.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Aug 2016 01:46:54 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, Andy Gross Cc: Stephen Boyd , Bjorn Andersson , David Brown , Linus Walleij , linux-leds@vger.kernel.org, Jacek Anaszewski Subject: [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard Date: Fri, 19 Aug 2016 10:46:47 +0200 Message-Id: <1471596407-4601-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org This adds the PM8058 LEDs as used in the platform. Cc: linux-arm-msm@vger.kernel.org Cc: linux-leds@vger.kernel.org Cc: Andy Gross Cc: Stephen Boyd Cc: Jacek Anaszewski Reviewed-by: Bjorn Andersson Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rename the infrared LED to "pm8058:infrared:proximitysensor" --- arch/arm/boot/dts/qcom-apq8060-dragonboard.dts | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-leds" 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/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts index 0abc93e5bb00..6c0038398ef2 100644 --- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts @@ -239,6 +239,45 @@ }; }; }; + + led@48 { + /* + * The keypad LED @0x48 is routed to + * the sensor board where it is + * connected to an infrared LED + * SFH4650 (60mW, @850nm) next to the + * ambient light and proximity sensor + * Capella Microsystems CM3605. + */ + compatible = "qcom,pm8058-keypad-led"; + reg = <0x48>; + label = "pm8058:infrared:proximitysensor"; + default-state = "off"; + }; + led@131 { + compatible = "qcom,pm8058-led"; + reg = <0x131>; + label = "pm8058:red"; + default-state = "off"; + }; + led@132 { + /* + * This is actually green too on my + * board, but documented as yellow. + */ + compatible = "qcom,pm8058-led"; + reg = <0x132>; + label = "pm8058:yellow"; + default-state = "off"; + linux,default-trigger = "mmc0"; + }; + led@133 { + compatible = "qcom,pm8058-led"; + reg = <0x133>; + label = "pm8058:green"; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; }; };