From patchwork Tue Aug 16 19:45:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 74040 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2166827qga; Tue, 16 Aug 2016 12:46:19 -0700 (PDT) X-Received: by 10.66.177.7 with SMTP id cm7mr7077285pac.132.1471376779899; Tue, 16 Aug 2016 12:46:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r73si33473814pfi.287.2016.08.16.12.46.19 for ; Tue, 16 Aug 2016 12:46:19 -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 S1752671AbcHPTqT (ORCPT ); Tue, 16 Aug 2016 15:46:19 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:35226 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676AbcHPTqS (ORCPT ); Tue, 16 Aug 2016 15:46:18 -0400 Received: by mail-wm0-f47.google.com with SMTP id f65so160678834wmi.0 for ; Tue, 16 Aug 2016 12:46:17 -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=2vA7aiX/Hzqpxjgn0AzXFi4oMZafSTnv9TpcrLKhGNM=; b=GGbptd9UsHkh48UVX0ygGysaWYWEKY4O6cwCQzweBYXz9GVhMOxfUHDwQ8J1e8fdq0 iQhSF22J5y3QKEleCNvAqJQhYV/On9UgC8OpUdrPYLhfIW1nA9rlfQWQkBaHUo1KqVBA 2UXu/8eRkk2c+bjlZnc+fnr2C5ycSPD2erl5g= 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=2vA7aiX/Hzqpxjgn0AzXFi4oMZafSTnv9TpcrLKhGNM=; b=MCcsJD9BxSl4qND2LV4nqAj3lN2s7F+35m6OUgbUBmdIMdVo2XlYPLeBwLGSoWDpo+ QhGABQ5Gb+GTd0ssLklGpY/TdvuVUwsSrsRM3Zif0VZxwsdznrKPw48rnw1ddwM0Eef6 JbJCWQ0fDjpRgA/Uy3Ghn3s1YWC+0k8HX1IvGJPVM0ZHxY2hoHEelU3GGzsPriWX2qL1 6bSpckzv6QzXUINLi1DKNRnRoMj1r/BXqX7wGn0I/ZV+MV78vGR+cSTJhoPlRsVbPMsL FpnwI03oPIXMmVLaNk4P6xB1Pm4ViYIRon9lNw+i18MNR6wu204ek6VDPSwWIxTboC0w cBiQ== X-Gm-Message-State: AEkoouv4mIJmStlWS/2kcEX3HTN1w0cc1v+vtnPsOQEpv6GHSQx2bfp/yl67Z0gOrD/dzbos X-Received: by 10.25.196.19 with SMTP id u19mr6194586lff.77.1471376776547; Tue, 16 Aug 2016 12:46:16 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id r196sm4408229lfd.41.2016.08.16.12.46.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Aug 2016 12:46:15 -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] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard Date: Tue, 16 Aug 2016 21:45:59 +0200 Message-Id: <1471376759-9561-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: Bjorn Andersson Cc: Jacek Anaszewski Signed-off-by: Linus Walleij --- These DT bindings have been ACKed by Rob Herring and Bjorn Andersson so I think the patch is safe to merge to the Qcom tree. --- 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 Reviewed-by: Bjorn Andersson diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts index 0abc93e5bb00..b0800b988174 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 = "proximity0"; + 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"; + }; }; };