From: David Heidelberg Date: Thu, 17 Sep 2026 11:46:21 +0200 Subject: [PATCH v10 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260917-pixel3-camera-v10-2-df631279b39d@ixit.cz> References: <20260917-pixel3-camera-v10-0-df631279b39d@ixit.cz> In-Reply-To: <20260917-pixel3-camera-v10-0-df631279b39d@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=2201; i=david@ixit.cz; h=from:subject:message-id; bh=cHGJQST27WPLwUlkNSzkEUOgMKHYsptlnCzlkuUIwyE=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqq7bteUn6D31oSkBN2bZksG1/pzGqbcQD++rK9 M7sv2GgMwyJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaqu27QAKCRBgAj/E00kg cp6pEACmO1fBW/XrjvHhxfo48EKhX/jxhDOlDDje5zavkW12a7nXHzSWTI4JsJWHMcJbcA8vs1s PWB8fGyMnlfVKEGi8HI2T0oZGBx97LsXo7K9Pb3xSKP5TEeoVdZjHmWgZxC0j5WbBirhuP88ji+ 6gfOvOYxHuupEQysScjZrYwE3tDEhXfMtlkk1oQ1iuc1CcHO4iCyazi0izlFnNOMa5lNr6yfeVL qwr6914/3ZR7EoqOLM2Viw682YQqeSQSJC2vKzicYyyQ2qpOzMfAxivgxRqUTzEPnZLq58+xpjf cHwub1Zn9IkQZcHWagekdm+ElS/dOktQrVFj5EkhzPAJcEx5tbcvawLwVYLBESXrxsPZDPpTB7d tnlbGVM9jN2ual3U86HsZMRVIkehpDX5ZrFGPPyYKp6QAylbLYMRyJG7ilAEL7j6l5/yDA7DfHX VqWbBE+imTgWgKHn9qiFCxf8QHNO+CLTsx1qM2+R1ogymmxmU/fYhfejYvuTlnj/Qr8YESgBLAG zr61WaFjqBYhJT9dnDOhWd2TJOE/FL2phBzFug1zKUhbyKmT0hJM8F8funi91FCeUNMiay7Xlh2 1xb+ZoSVoCEDbSo6W6UR6euRQpTzExbcPbTShwD+88AV1GRjRk0EONbbarSKfQhP8HxLlJnl90S nCavqb1dwHhwO3g== 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 List-Id: B4 Relay Submissions 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 8b430776e8a54..0ee226f0e48e6 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 "sdm845.dtsi" #include "pm8998.dtsi" #include "pmi8998.dtsi" /delete-node/ &mpss_region; @@ -592,16 +593,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