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 28CC23ACA4C; Sun, 19 Jul 2026 18:03:57 +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=1784484237; cv=none; b=qii0IYZo/Vncx58ogSA/OIkZwlULrNkV2MLSycgO9jRIh/iRPtYqi3MirayXfQNEeWN1CEWfClxlvw8ZZN9sTgUFjqVXjEdIJ9vd0Jrevo6h085joDqoCZ8dEl5xQuehGdx/DUIBWpsrramiGQT3OXjOkx902PrsWaelVSrBVJI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784484237; c=relaxed/simple; bh=7hIbDQFieHIJIIejJlbmWDrhP35HnnhVLEBBSGFMGVk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q5rYTTw8PvPG5gffyxRZE+Ggy7uA8EKqAanLFbIkx6Yb8hPcXUYqNTInFEMtdklh6hQxjF5kZPbAdeIqllUgSwrW5v3+H+9MMUyu//VR2IuD29m+vtE+5Tz0CrmVe2KJIwkzN8tkVc6YS8lpKR8GLvAvasZBsAwDOjz6LSZELR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bVA0sAn4; 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="bVA0sAn4" Received: by smtp.kernel.org (Postfix) with ESMTPS id 602D5C2BCFA; Sun, 19 Jul 2026 18:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784484236; bh=7hIbDQFieHIJIIejJlbmWDrhP35HnnhVLEBBSGFMGVk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bVA0sAn4pmLnI7s/jmYkNy3AyWye8LCoMl5408N/YCmm+ICmxGjotkiYc/+rEf1JU XFex1qZ7n3yV/kZzHxDTtoEjPyRYVBG+7ezJODGfc8bM4zwtxUfD1Wzl+NMXKlKKan X2LPB3DWE/76bR7zWbM9FL5LhbW5ECpXJRSq6tfauTRxJRfGth9baMfh3lxLtd7FdD t4olNrpAADlSy+kj0hYOe+fUPJWVYyL8SUYqohViwhLj1FCTGNB7QTXdYtOd5lfsCx R4rChz7nNv3WO5lXMsGwwwpmxXr3IgcCdkga42zIWSSkn2Uwz9MratWiHbYcoWW5n2 3/l+JiKeb0dWg== 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 42D86C44520; Sun, 19 Jul 2026 18:03:56 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 19 Jul 2026 20:03:53 +0200 Subject: [PATCH v5 2/2] arm64: dts: qcom: sdm845-google: Enable PMI8998 camera flash LEDs Precedence: bulk X-Mailing-List: linux-kernel@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: <20260719-pixel3-camera-v5-2-99593f1bd8ec@ixit.cz> References: <20260719-pixel3-camera-v5-0-99593f1bd8ec@ixit.cz> In-Reply-To: <20260719-pixel3-camera-v5-0-99593f1bd8ec@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=2101; i=david@ixit.cz; h=from:subject:message-id; bh=hIR5m+3hEHUVKN/E0aT2UW1X7Xn618H06WFsR908Ic4=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqXRGK7fZUfReynnvMDObSQkkctlha7/os8YBGm RlcFUwAAcOJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCal0RigAKCRBgAj/E00kg cgvBD/4pAwzpRdfkFh2N6wnEeCd4vx00X0QDwjj60nLPB2172S7m8CMN7ijl74u04+GvIYcHJsg hcLwUjlwZgoSf3V6Hzce+qMJlE7mvm15/zuzZAcysLIF3jgKPUyUd2m/qWnZbNoq6HbJSu3AVj1 kf2n5gVIruFdUh55mZ2a0hIpb5irfFpJbwkvPvh85vkwlIRjBno9BdoA2XJfaqOdiHFAun1b3Xo FRqANSoRqnqgGOuGLOLYAQuyVRypBM80BubwFJb1EHwcFXXOZchPNYsHotZgh/E1fpewDbI57ka Bw9LVNQ1FxhQwOJLPvG6tmWe7BMMHhWleZ8fmYEKYgDEqPQ836TwvepIDLdjsKFgD+YUZIJ8KV+ vddMN4OpWfUZOiUeJZcxAAuUaeyMyLVXAa/AqD59qCrsWzV+ZLLZjHQPOB5nTF2+PjxDCPmW6wN zo4kwC/+fIxxlFPG0I+AKB2ylMpm0QuqIdlbNSbnyOBW73w5wDOXZ+3I1Arbpu/L19zvJA3jIRe MR/uZ1cskR1AOxgZ+2djSMFicM5JFUqvRRyYfGNklcldPJnnRWkqqBAGrz51U4UbfWPxT8Geh2A XilZNoc8rbOkhg1kk0bHt4vnQ5cUaNQrdzJ5dAMNWT2hT+sVEMdwmfS9xH6pXpO03QrJGDXPhbt +3kVQ4j/ep6QVBw== 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. 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 cb5c261802bc9..f3c7333a4076e 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; @@ -589,16 +590,42 @@ &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>; + function-enumerator = <0>; + }; + + /* 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>; + function-enumerator = <1>; + }; +}; + &qupv3_id_0 { status = "okay"; }; &qupv3_id_1 { status = "okay"; }; -- 2.53.0