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 126FE21254B; Tue, 21 Jul 2026 12:33:35 +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=1784637215; cv=none; b=ZFmoNu9+jSKuf94+jqIjbptQVMGgefGNnjYG4FjwIaxm3YuOl5ej2p3KJKJodTf6H6uHCGmYITjlOjzXI2Kt2Mp6Bas4s9SIuvGMythgVECfgsWM6HhtUvXTAeJHDC0RSXm1XdDoCshQDGmi+gubKMKs6FKXDgezNovTIDP2NWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784637215; c=relaxed/simple; bh=fSm+rwaSqW41z/ssedX1DSKOcvdJQBDv6lvorMv/VX8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZolZUZZW7SJMvZn5+1EzNgSxKch9nKPG1iuzl6dwvxlzDfGuFfjE6QU4k4/m5wEASoQkZRk3yUwLtp0fDPE1sseRUubzkGphKd6/23ZCxFCr1JvcnVqRndNA7FC4LbiGbyfXZhn1AqzgVXGt5B6jU5RjK/VCZtMpykVC2WTjKT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pHxkBhsc; 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="pHxkBhsc" Received: by smtp.kernel.org (Postfix) with ESMTPS id C5063C2BCFA; Tue, 21 Jul 2026 12:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784637214; bh=fSm+rwaSqW41z/ssedX1DSKOcvdJQBDv6lvorMv/VX8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pHxkBhscM2InB6nKul27INhiSOoE/vs+MnuQoo6VvBN9C7Y/FZbR9kDlz6UKV6FKF QJvNYCJv40gxMFzBPkX8Wkk00BMF+Gx1nxcQyeV6cP/1fVs/RFQpkx5JJ1k/QufzJj IcJS8jAO46e43MebkA8CT5hX1PGNtvVi5MAtREpHfmmMMQoDuvxFKtZtRILybfFGz4 B/EpBN0s5WLhKfsKugAwy8439Wbh5vjuD40venJp23FEekH2IHQkuht5eACdMLcbVq NlRaW0nlAZ8wPuRJrAFd021n8FIzLT5/rLVnXB+Xy6lXWczSWvqH333O8rA+RbPiiH 6wboN5VE6jxeQ== 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 A5FA8C44532; Tue, 21 Jul 2026 12:33:34 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Tue, 21 Jul 2026 14:33:30 +0200 Subject: [PATCH v7 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs Precedence: bulk X-Mailing-List: phone-devel@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: <20260721-pixel3-camera-v7-2-82d323c6c5d2@ixit.cz> References: <20260721-pixel3-camera-v7-0-82d323c6c5d2@ixit.cz> In-Reply-To: <20260721-pixel3-camera-v7-0-82d323c6c5d2@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.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2228; i=david@ixit.cz; h=from:subject:message-id; bh=GKWXzv/TxU8dE0wKdWqwHqCHilW6WCLiUExNVd3EEOY=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqX2cdsBDfQDws8pt12X/+MAzVNHbG5gl5b9gVF +67k6vKJ9iJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCal9nHQAKCRBgAj/E00kg crAWEACiSuiELlkV8+B+zSPjf1LQTGORMpJnPldKqvwbUhQ/3doyxpUXEDqP9LvMEFuYxOiSxl9 5jtggpJhm3nJzFo28c/Wy8sXjLHZ+3rKNHJUVY8Hfflbx1DErW7mDYXfS17E0FUGnjFqj0DfJ24 /7+bmtLLaxa3VBt3dGhBkns7nXBBhg0ju0vciiz/SM6/yR1sl7OzWTn34BXrxW7L92b5gfQZStw 7pDo4rJDlWcbGnofCeAwGfoucWARll/ttEfRkBxbJtHyXflZakmhP0I1+IXTXVzjrtPKs5ab+/L yU9saNsQz0lZHkWdIeY7mLBZm6SB4mA2XSPJO5gpqt9AvpgEqxcdSRp8flNb1FqVAqkNJkyqP9G Uv+navPDGf2znsx6VSZ6tZhBGaIeDX+ZkMMXC9wPp+xXKMUSnQzdqWMT2w9hbO2GpXjnPytKz/4 ylqjR+xreqZZwQv7/zSj8Xusplj1Hbhq2b0pOO1qU9Mx67I1hWhqTkBnpGxuJfEMGtZrqT0uUIL g3k9F8qe+gWM+lzhNycFihy1pP3hJYRGbLBTiiZGMkQ4I7oca84o/ZjtdkogMNJL/pPBQo7XKlV FnUPdvfWOCcZrIWnH3V8GZV2h3usKpdwmeU/MuwPBAR3YzKEpLLBThqru6zajvz6zpEKtaHMZvI NQgaF+YqBx2GShw== 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 c8a28133fb38d..8d35e33ef7aaf 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.53.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Heidelberg Date: Tue, 21 Jul 2026 14:33:30 +0200 Subject: [PATCH v7 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: <20260721-pixel3-camera-v7-2-82d323c6c5d2@ixit.cz> References: <20260721-pixel3-camera-v7-0-82d323c6c5d2@ixit.cz> In-Reply-To: <20260721-pixel3-camera-v7-0-82d323c6c5d2@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.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2228; i=david@ixit.cz; h=from:subject:message-id; bh=GKWXzv/TxU8dE0wKdWqwHqCHilW6WCLiUExNVd3EEOY=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqX2cdsBDfQDws8pt12X/+MAzVNHbG5gl5b9gVF +67k6vKJ9iJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCal9nHQAKCRBgAj/E00kg crAWEACiSuiELlkV8+B+zSPjf1LQTGORMpJnPldKqvwbUhQ/3doyxpUXEDqP9LvMEFuYxOiSxl9 5jtggpJhm3nJzFo28c/Wy8sXjLHZ+3rKNHJUVY8Hfflbx1DErW7mDYXfS17E0FUGnjFqj0DfJ24 /7+bmtLLaxa3VBt3dGhBkns7nXBBhg0ju0vciiz/SM6/yR1sl7OzWTn34BXrxW7L92b5gfQZStw 7pDo4rJDlWcbGnofCeAwGfoucWARll/ttEfRkBxbJtHyXflZakmhP0I1+IXTXVzjrtPKs5ab+/L yU9saNsQz0lZHkWdIeY7mLBZm6SB4mA2XSPJO5gpqt9AvpgEqxcdSRp8flNb1FqVAqkNJkyqP9G Uv+navPDGf2znsx6VSZ6tZhBGaIeDX+ZkMMXC9wPp+xXKMUSnQzdqWMT2w9hbO2GpXjnPytKz/4 ylqjR+xreqZZwQv7/zSj8Xusplj1Hbhq2b0pOO1qU9Mx67I1hWhqTkBnpGxuJfEMGtZrqT0uUIL g3k9F8qe+gWM+lzhNycFihy1pP3hJYRGbLBTiiZGMkQ4I7oca84o/ZjtdkogMNJL/pPBQo7XKlV FnUPdvfWOCcZrIWnH3V8GZV2h3usKpdwmeU/MuwPBAR3YzKEpLLBThqru6zajvz6zpEKtaHMZvI NQgaF+YqBx2GShw== 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 c8a28133fb38d..8d35e33ef7aaf 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.53.0