From: David Heidelberg Date: Sun, 19 Jul 2026 19:02:00 +0200 Subject: [PATCH v4 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: <20260719-pixel3-camera-v4-2-48cab1236852@ixit.cz> References: <20260719-pixel3-camera-v4-0-48cab1236852@ixit.cz> In-Reply-To: <20260719-pixel3-camera-v4-0-48cab1236852@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2039; i=david@ixit.cz; h=from:subject:message-id; bh=DGM3Fv4RdKtHshwjY+6O56eebAPoOIG36Sp1AU8NOj4=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqXQMKQi3pnILbzVLQKCyvss5gJJWyi0Ec/arN6 Tebue5oHUuJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCal0DCgAKCRBgAj/E00kg ct2pD/9MP4unw/G7okEa8p7tirY4hssCvVwleLlvXgjGiDwfbQu0u1IMPB0AXttoqx9iZLzFE0f 0wXVJtxMkiWjPM+mQTAn9PJ8nZillBEmNXFORj6+jVEielT0FC3wwFQ9djYj3Sw5N4KFKL9ExnV GYj/t+97sVVTMGck6CzlgezyP8MWKVfSr9Ey5sk1OUa1giqqhq9cWkBQMH4DrxkS7xunD7eXXka IIGbENeaoLNWql/VaaoZVFo5DfAaeWRXkkz8/O15MDisaViX95EEv848UrrMT0LfTxq3L/+l5vV ANkMDJsx74Oj2K296N9z5uYb3fBNzHQtVOhBfLcGy9jbP/ljaznZy4rBeKv8Tnr1qF8hZdb02B0 Qvn/6fHJBE/Wn5ZFGM+zdqMN3l0dSzsenOtxHXh5EgRBPTa4d6hvkOEEeTKv920ra/29JRt2Fuh LQUjsl0Sv8AKSV06NDrfOWOGR7txTEbAcaLSBVE4qInUFe0SrLGVWn1Kec7/UAF5hwvvuW+IbnS 5P9IMWW1rpk85DGoLqZTiPQXjwNPzXalFV1f1vcpRapBRcceqICCtqwKo/VQLzsOCH8MhdrCbEj 7nsOEx8Q1YM/GuBm2NP/MbGYzouHjA55oc8RSatr6nCyUUYe94D5q6O9amqp24C+nlfK84v6b8d /DwWmAytnXARSPQ== 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. Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi index ad6f61b3baa21..0ce48c4647f17 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; @@ -601,16 +602,40 @@ &pm8998_resin { }; &pmi8998_charger { monitored-battery = <&battery>; status = "okay"; }; +&pmi8998_flash { + status = "okay"; + + /* upper part */ + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>; + led-max-microamp = <500000>; + flash-max-microamp = <1500000>; + flash-max-timeout-us = <1280000>; + }; + + /* bottom part */ + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <500000>; + flash-max-microamp = <1500000>; + flash-max-timeout-us = <1280000>; + }; +}; + &qupv3_id_0 { status = "okay"; }; &qupv3_id_1 { status = "okay"; }; -- 2.53.0