From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B96E93AB283; Tue, 1 Sep 2026 09:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788256009; cv=none; b=YkfaFdegnqQ45nKhojlyLf12b/6UUgQwEVsCYkFF1daNGHK7ki9yc6cmjAdpg0+5JzrfIsAQyeymHRkrKe+4pB/ivcBVhQQ/DnxEjCkox2NbnAMD9xIVt6LbbdxFVdAn7yQZ321DL6X/srzfQQ2uA0eiYsIScpmgNrtfnjrJhGg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788256009; c=relaxed/simple; bh=QJ70/rRqWI5J6lpcr9K41yKXmzCIJOscvBqB/evryFc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PDemCNgPLYW7phNV93TDvmNN2I7ZIjVuqkcAcybxnJTejNvGmNLJ5ImbDGHMzpFBB8BoYgFFyCCtPCTNT4hAuC+dP/U3oIwUcXBNvONk4erzGQbKua92gDO5c+S3eR3jG6kN2a0ax6v6c68xNlZ0pDeZ0EG1nsk8fc0sM8qvnMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IhWqS1ed; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IhWqS1ed" Received: by smtp.kernel.org (Postfix) with ESMTPS id 55FEDC2BCF5; Tue, 1 Sep 2026 09:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1788256009; bh=QJ70/rRqWI5J6lpcr9K41yKXmzCIJOscvBqB/evryFc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=IhWqS1edrfE1stsGR1h8EoEypdEpjdSVyFI0wm1EnrbFpIaijBxzK+uyQQylkG4Ar ApWWbkZYrVXCW28HUhnD38uMs7m5tsArLSfc4/Tlcd5pAGEimhVrcWp42tyxzAeEFN hGHU45N9s9iBpqLgC9IlDFms1IHBlKqzzloGkPkjjgs0VsxGcKI+PtlyPuWpmwOT6R V+sUq74N+6rOm/mJw3khd735YqgaJYPyIh781xaXcHGZsRVYWNEF+tCdxnARkI/ZoU WoLoao1itss8xiAuwS4lFQSagYJ7VIqXUWMiu/x3N9HGCkP0yvvxh2Rhw3A55yQPcy qFvRO6m1IAc9A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40E21C624D0; Tue, 1 Sep 2026 09:46:49 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 01 Sep 2026 11:46:46 +0200 Subject: [PATCH v8 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260901-pixel3-camera-v8-2-99f159883348@ixit.cz> References: <20260901-pixel3-camera-v8-0-99f159883348@ixit.cz> In-Reply-To: <20260901-pixel3-camera-v8-0-99f159883348@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Konrad Dybcio , Petr Hodina , Richard Acayan , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2228; i=david@ixit.cz; h=from:subject:message-id; bh=prTj+YvVw1o8d4g7Tl+HH1FctxXrbb97DHabaxSpRN4=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqlp8H0JS9hyifhRSwlIuOsIYEeGMwFiabxbPvS uqVf8Ieh9aJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCapafBwAKCRBgAj/E00kg cuKcEADQT8OYqJANMbHWK5Z9NGf1W9K3Z2ahdoyDK4UsPMaupYFh12K9xbtfcOkUEZ0JZoUXGap XlnHOEKlsleiTHNSc1//UgSm0NCaXs1yapw8hgh/K8+RcM4yMOQo0K6p2sbGpalhgFxQxYpdy+p BmVpJ5BVC2P9ZlgJr9HXTVGxhlUAs61g4o7JCuSWcAaPrbQ67fPVGq1+HzeoANw1CWiDEBQ3O+j raaA75TZfZ+ELqk195Gq6hIAs/sDunnjdcMceD+oxRDtRPsQqVso9pqn8M6Z+VeIxm15NKHat9x vhUZDHRH16Yoru4NXCBnZfWP2JURtaK4QXj8uVxzMcJ27m/RI/ADCr+1RSmdFgrjwKLmltI+854 DsxQGz4PbgInyuj8RvZuwzfKulWDsQOlwakk58ARtY/IeMu24kwuZdRi6PQ9/ikeBU42xrrD3Aq GSnXoYuUEd78NyND7H1/76sk0b/sdQrrOxLN6I9HmYo3ulSNu3yL/E3U9yF2CEULZnJydOj48Cf DQQWGEIJuEJHsTnEav80JUUEYHv9y+Lr6fnhlxFSUNY8zXOjQy2cVqITuCAKf9c0kI8/8sSvpOs qpDFPtkoWam2AznYdnzRKk2Gb/ASqCbchB3yzRFG/aNvy+2BhbaYEeeRifyfN19Y6rW7i2zDQRv 4kh0yZzXNyH9ZTw== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Enable the PMI8998 flash LED block and describe two white flash LEDs used for the rear camera. Configure the LED in flash mode with hardware limits matching the original device configuration, including maximum current and timeout. In contrary to downstream, we can control both LEDs separately. Reviewed-by: Konrad Dybcio Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi index 913e2032e6472..365fd6d9287e1 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -1,16 +1,17 @@ // SPDX-License-Identifier: GPL-2.0-only /dts-v1/; #include #include #include #include +#include #include #include #include #include "sdm845.dtsi" #include "pm8998.dtsi" #include "pmi8998.dtsi" @@ -591,16 +592,42 @@ &pm8998_resin { }; &pmi8998_charger { monitored-battery = <&battery>; status = "okay"; }; +&pmi8998_flash { + status = "okay"; + + /* upper part of the flash module */ + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>; + led-max-microamp = <500000>; + flash-max-microamp = <1500000>; + flash-max-timeout-us = <1280000>; + function-enumerator = <0>; + }; + + /* lower part of the flash module */ + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <500000>; + flash-max-microamp = <1500000>; + flash-max-timeout-us = <1280000>; + function-enumerator = <1>; + }; +}; + &qupv3_id_0 { status = "okay"; }; &qupv3_id_1 { status = "okay"; }; -- 2.55.0