Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2572703pxy; Tue, 3 Aug 2021 09:30:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxknPnz/SKViM8VTlVh9gptMhYUpGaONTGxwzNXd3WmIg9ud0U6CCXgt4Gm0D3DaxNCPhA X-Received: by 2002:aa7:c792:: with SMTP id n18mr27150636eds.269.1628008238939; Tue, 03 Aug 2021 09:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628008238; cv=none; d=google.com; s=arc-20160816; b=prGxc5bBrQILgU+dLNNr7V0O94mzhkO43tCNAiOrHkV9+LN5QlDnkldvFtKZPBfBwR 8m0eJWOJbgiegVWsFEv4TqNMjj+QsI75RwiFPGpI/cuEc7vaywGLeot5ytGGtAzHbva4 qhhWHaO51X06s1GJkpjllraTBNhH+N4kxmJPycypQysFOR9o/9XFse9DR7F9tDLlcjqK DDjojQx3oS444j98+rYyvsyOCaNsE7Zvq+kctm1po2ivNp5GvZVjgn9XsrfW8+elewia zNXXg+wlmkSmQ1yoVqWsYZwTRuIrc6MJXhi6iqFZVVuv2z15rASHjwf5VewnfduuuXye X9zQ== 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=8Z6inuzmyui4VQdcpEko1h0l4lyX8vyI4H89DydIlGc=; b=jbzOCrlwiADNL06hHZVtrMJxJ6mdSkcxKwN0IxrTpk+XSZKxHaHfzhfAXtbxcHfHBz 3ay6OQu0Jr8fO9gQwmm5ch8boCoh5FBkTer2Omkq90mz4PxYTDIGCaghM+lo3znxOJ+5 3FRhsNiFRn71iyNNTVcah/LshLCwrooQ5FNUE3ILgX27KTgv04iaW3EnevjXDYNJ9PTX eY+8lqnrX/3zNPrleqJjKZLRKU1dbTOMHHC8jMGigsub9hg/LdSOdk9nzGwzQL2bwTDo ht3x8jLGD6QCn77XrU83xZ4ddcDfYvBSt3RzoJQmSwvTZ3om32ZJxI87mn+xMstiQwZb hazQ== 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 jr1si13418336ejb.574.2021.08.03.09.30.15; Tue, 03 Aug 2021 09:30:38 -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 S230209AbhHCQ1j (ORCPT + 99 others); Tue, 3 Aug 2021 12:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbhHCQ1i (ORCPT ); Tue, 3 Aug 2021 12:27:38 -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 5096BC0613D5; Tue, 3 Aug 2021 09:27:27 -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 EC4001F42632; Tue, 3 Aug 2021 17:27:20 +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 4/5] ARM: dts: qcom: pm8941: Add nodes for QCOM SPMI Flash LEDs Date: Tue, 3 Aug 2021 13:26:40 -0300 Message-Id: <20210803162641.1525980-5-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 Add nodes for Qualcomm's SPMI Flash LEDs present in PM8941. There are two white LEDs which can be used as flash or torch. Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v3: - Disabled node - Removed LED configuration (moved to hammerhead dts in patch 5) Changes in v2: - Moved from hammerhead dts to pm8941 dtsi, as it was this way downstream - Now using values from leds-qcom-spmi-flash.h arch/arm/boot/dts/qcom-pm8941.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index c1f2012d1c8b..e9e4369a488b 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -2,6 +2,7 @@ #include #include #include +#include &spmi_bus { @@ -189,5 +190,29 @@ pm8941_5vs2: 5vs2 { regulator-initial-mode = <1>; }; }; + + spmi-flash-leds@d300 { + status = "disabled"; + + compatible = "qcom,spmi-flash-leds"; + reg = <0xd300 0x100>; + flash-boost-supply = <&pm8941_5vs1>; + torch-boost-supply = <&pm8941_5v>; + + #address-cells = <1>; + #size-cells = <0>; + + pm8941_flash0: led@0 { + reg = <0>; + function = LED_FUNCTION_FLASH; + color = ; + }; + + pm8941_flash1: led@1 { + reg = <1>; + function = LED_FUNCTION_FLASH; + color = ; + }; + }; }; }; -- 2.32.0