Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2574367pxy; Tue, 3 Aug 2021 09:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcinjzr5u1CW95AsaTSsjhULj5rsXjZnZdLHl06TB4RgbB7O7+hw4bMf1d/3D0jDltJmu8 X-Received: by 2002:a17:907:a075:: with SMTP id ia21mr21502480ejc.147.1628008360296; Tue, 03 Aug 2021 09:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628008360; cv=none; d=google.com; s=arc-20160816; b=NuLgYWz4odVsSLmBT2OilI8pjmRI+QUlSit7IzY29JotU/quaeMFYbFuMIn1DIEACr oSboENiO1BnJ+ai4iIy7thlSSgOgzR/nTuoWlagTqYoYsLDTUjZeRXiZ7rnzGvbENRN5 9QDZdooBYsHq8JxfUTpO3pSxQGnUM9NaJ9iDE4a86y1Hf1fmdDzE4dK6ND7aXZZvV9vA ybe8F58320OITAHMj+/MD9ICgKX4H9zHmCOC1NXenxaPzGt4HGqFtDwIeM8U/5O1GkyL bGg7/tQ2ACOSm9ljK4KN5jx70gS5GlLr1gLmM90vj03+sW9wbcDYFbg+iRgxvrroMqvo SZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iBppxkEhdck+F/N29u5xOL8mjWbW12ZMsiYVOpjSk8A=; b=WWh45G1fTEAM4mWjEZbwSbBMI+ZeKJr0PnCSG22+qk0Cp0goX572joSMymHzlq4RLf buGLr2BzA309YMTYe8sLb6AvfjeIIeJyDKQgbmzoRXOE5zcONf6kl7JM770epQOJe5Dj 43iUeAO8wUQ59xmO1fsSOqzW73/c9Nran4PM8NO7i1rBEhYBfZH8JpIpfwwZTzPLORbP PTVX9qpAzvWKkiNDH6kc98MBvhXBZGk7VEKNrXoqw6iv/0ktRJ3DSvKhcujez8pUTzEs bBCh+dc8Mq1QuIoiZrl912GPjQYyk0plH0HwKRmE2cOFuxqotkzddncwicZrt7Apn7++ 1yUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si13019578edt.377.2021.08.03.09.32.16; Tue, 03 Aug 2021 09:32:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233699AbhHCQ1t (ORCPT + 99 others); Tue, 3 Aug 2021 12:27:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232252AbhHCQ1t (ORCPT ); Tue, 3 Aug 2021 12:27:49 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7557C061757; Tue, 3 Aug 2021 09:27:37 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2804:14c:1a9:2434:b693:c9:5cb6:b688]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nfraprado) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 946C51F42408; Tue, 3 Aug 2021 17:27:26 +0100 (BST) From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Pavel Machek , Dan Murphy , Bjorn Andersson , Andy Gross , Rob Herring , Jacek Anaszewski Cc: linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Brian Masney , Luca Weiss , Russell King , Georgi Djakov , linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, ~lkcamp/patches@lists.sr.ht, =?UTF-8?q?Andr=C3=A9=20Almeida?= , kernel@collabora.com Subject: [PATCH v3 5/5] ARM: dts: qcom: msm8974-hammerhead: Enable and configure flash LED node Date: Tue, 3 Aug 2021 13:26:41 -0300 Message-Id: <20210803162641.1525980-6-nfraprado@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210803162641.1525980-1-nfraprado@collabora.com> References: <20210803162641.1525980-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the flash LED node from PM8941 and configure the LEDs. This enables the Nexus 5 to make use of the LEDs as flash or lantern. Signed-off-by: NĂ­colas F. R. A. Prado --- Added in v3 .../qcom-msm8974-lge-nexus5-hammerhead.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index 30ee913faae6..78ac56be81b3 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -759,4 +759,24 @@ otg { }; }; }; + + pm8941@1 { + spmi-flash-leds@d300 { + status = "okay"; + + led@0 { + led-max-microamp = <200000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + default-state = "off"; + }; + + led@1 { + led-max-microamp = <200000>; + flash-max-microamp = <1000000>; + flash-max-timeout-us = <1280000>; + default-state = "off"; + }; + }; + }; }; -- 2.32.0