From nobody Sat Jul 25 03:46:49 2026 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 195F01DFFD; Sun, 19 Jul 2026 17:02:03 +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=1784480524; cv=none; b=LMlQFGrFoNIas/juhD8NqkA+Rt2yi8TVKhc3DICSRyOanlkDtHvjM1KXvj5YVh41fZ8TaL8gk2j1z8k2r8CpqEXvQ60maP0sBcr0+BaUUGvrM23trsfBhmi3xPYWX0MucE8OwRtxShjo5wFFeUhEB6V6wGcMVJ/0d2s9D5yyAvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784480524; c=relaxed/simple; bh=xPCCs0oDQb/Wv0TyZL1ZanvwCufpJnCZeuKz37LMyLM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WlDCLykfdn9M8eTv/6CavQfEYAyQVE6W+4LXxzJ0nU9jn1WNy9BVG+k8F06Za4EprFoKa/inQlr7Jjyblq3FAYCdxghrrdA+jlxWLZUyjrHE58zAUZRRiRKjMVsMwKfK9oKsejmsC4eicUQrM31Gi5rG9Xt+6MzqtzJlw8Ho31A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pIPv6yJA; 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="pIPv6yJA" Received: by smtp.kernel.org (Postfix) with ESMTPS id 932F8C2BCC7; Sun, 19 Jul 2026 17:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784480523; bh=xPCCs0oDQb/Wv0TyZL1ZanvwCufpJnCZeuKz37LMyLM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pIPv6yJAGbPBTWPFFjWWkB8TL8foOU6FqA6jVQvb3juD/BgAc1ou4OTZUMgyJ8JkP bIZ7uPHJlXlkpdFJ3wPjMx18SqSrJayeB3P4M0uGZlUdGxXwIh6LJ7ujCZ3Dy/5zsZ iWtbNYh7HROl3faeQ+iR8GbEnlJCF1+qx96N96XeiG0VjWDg4+5PbTs/qWRC1F9CsM vgYkmexAMNqofOkE77pgmg1WOs9WFvQzsiGTPm4L7W7l9Zfd7zvO/dFYGFcet+/+wP wkE7hqL1wF1b1jBkmm7Bz4JsxlEBT85BuyvCNeTObXRwgJlBjuHjqykB9MIysL8lFt Iro6HcJRcKPYw== 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 76B67C4451B; Sun, 19 Jul 2026 17:02:03 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 19 Jul 2026 19:01:59 +0200 Subject: [PATCH v4 1/2] arm64: dts: qcom: sdm845-google: Add dual front IMX355 cameras 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: quoted-printable Message-Id: <20260719-pixel3-camera-v4-1-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=8315; i=david@ixit.cz; h=from:subject:message-id; bh=yr0ZNbuLHoE5n9ntrOofvfDU0OGMlm1fEalgA/VORYc=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBqXQMJeEjrPHZSyhAkG9EojbXjrjgvB98S/P8IO v7pGRHAWFGJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCal0DCQAKCRBgAj/E00kg cu3FD/wKluSVbdUhTK5IhShUZNAGYVpdtomkROtNKaSVdPbxYjOaUkzuiEDGaMHwE3YQVTePDk+ v+NMj8RPs85lXdXiSjQyoNdM5pzOgBqseL2YBmz5AQ0c7fZlPc7xal3W3m4KjkD3IyZh5LQb27x pf7YYRRIc14HJ/zwoihmagINFWZFJdCAh9rGViFIGSp580myUsb5nodH1U7rxdUQfcocjrIRYLc f/GAWK7kCC1+32lmRL1Vj90/sBzecu21OcrIu7ZYzFMYxEEs6T5y+6POvowRxnetVf5Qgg4G6R0 fKsZgJ6GCz0XEAKT2T0K+PP/WbSIywrTrmAtxzWneiNsdVOK5Tr/54kf40wKXntSAVIjunB6zDe wydvY+nPqhaSGrQgOYF1ChmGcUUrVMnk6QvuYPQYyKVkbo83BRe1aygDrouGrdNVx9bEWDjxAis UKRTYixW46AoG/uCDYf5DT5gxfD+AG8tZo4BHQO264x1pQS4Pc7MAIQaWuQ+jdGfTAD4Jhl/D54 nnphGUnOp+OE5zYkJHHol5zra+58AEx70vCu9JbnWdTTWmACdXCVMtkKb484g8z59YifhHaTLl4 bZvQ1ZhQXa+QyDgH10W2OsIonRn/r07ZpQ3Zp0pjuyOOSZPVGZTSjcoHHp7ZruVHfiOnqV/orUp wW/lnyTEFnVbwgQ== 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 The Pixel 3 features two front-facing Sony IMX355 sensors with different focal lengths (standard and wide-angle). Both sensors are connected via CSIPHY1 and controlled over CCI I2C1, using MCLK2 as the clock source. Describe the camera nodes and associated resources in the device tree. This enables support for the dual front camera configuration. Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 182 +++++++++++++++++= +++- 1 file changed, 181 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm6= 4/boot/dts/qcom/sdm845-google-common.dtsi index 9368fd6b87515..ad6f61b3baa21 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 =20 /dts-v1/; =20 #include #include #include #include +#include #include =20 #include "sdm845.dtsi" #include "pm8998.dtsi" #include "pmi8998.dtsi" =20 /delete-node/ &mpss_region; /delete-node/ &venus_mem; @@ -127,16 +128,48 @@ vreg_s4a_1p8: regulator-vreg-s4a-1p8 { regulator-min-microvolt =3D <1800000>; regulator-max-microvolt =3D <1800000>; regulator-always-on; regulator-boot-on; =20 vin-supply =3D <&vph_pwr>; }; =20 + camera_front_avdd: front-cam-avdd-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "front_cam_avdd"; + + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + + gpios =3D <&tlmm 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&cam_front_avdd_default_pin>; + pinctrl-names =3D "default"; + + vin-supply =3D <&vreg_bob>; + }; + + camera_front_aux_avdd: front-cam-aux-avdd-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "front_cam_aux_avdd"; + + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + + gpios =3D <&tlmm 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&cam_front_aux_avdd_default_pin>; + pinctrl-names =3D "default"; + + vin-supply =3D <&vreg_bob>; + }; + wcn3990-pmu { compatible =3D "qcom,wcn3990-pmu"; =20 vddio-supply =3D <&vreg_s4a_1p8>; vddxo-supply =3D <&vreg_l7a_1p8>; vddrf-supply =3D <&vreg_l17a_1p3>; vddch0-supply =3D <&vreg_l25a_3p3>; =20 @@ -209,16 +242,19 @@ vreg_s5a_2p04: smps5 { regulator-max-microvolt =3D <2040000>; }; =20 vreg_s7a_1p025: smps7 { regulator-min-microvolt =3D <900000>; regulator-max-microvolt =3D <1028000>; }; =20 + vdda_mipi_csi0_0p9: + vdda_mipi_csi1_0p9: + vdda_mipi_csi2_0p9: vdda_mipi_dsi0_pll: vreg_l1a_0p875: ldo1 { regulator-min-microvolt =3D <880000>; regulator-max-microvolt =3D <880000>; regulator-initial-mode =3D ; regulator-boot-on; }; =20 @@ -283,16 +319,22 @@ vreg_l20a_2p95: ldo20 { }; =20 vreg_l21a_2p95: ldo21 { regulator-min-microvolt =3D <2960000>; regulator-max-microvolt =3D <2968000>; regulator-initial-mode =3D ; }; =20 + vreg_l22a_3p3: ldo22 { + regulator-min-microvolt =3D <2864000>; + regulator-max-microvolt =3D <2864000>; + regulator-boot-on; + }; + vreg_l24a_3p075: ldo24 { regulator-min-microvolt =3D <3088000>; regulator-max-microvolt =3D <3088000>; regulator-initial-mode =3D ; }; =20 vreg_l25a_3p3: ldo25 { regulator-min-microvolt =3D <3300000>; @@ -314,16 +356,21 @@ vreg_l28a_3p0: ldo28 { regulator-initial-mode =3D ; regulator-boot-on; /* * We can't properly bring the panel back if it gets turned off * so keep it's regulators always on for now. */ regulator-always-on; }; + + vreg_lvs1_1p8: lvs1 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + }; }; =20 regulators-1 { compatible =3D "qcom,pmi8998-rpmh-regulators"; qcom,pmic-id =3D "b"; =20 vdd-bob-supply =3D <&vph_pwr>; =20 @@ -346,24 +393,129 @@ regulators-2 { =20 vreg_s3c_0p6: smps3 { regulator-min-microvolt =3D <600000>; regulator-max-microvolt =3D <600000>; }; }; }; =20 +&camss { + vdda-phy-supply =3D <&vreg_l1a_0p875>; + vdda-pll-supply =3D <&vreg_l26a_1p2>; + + vdda-csi0-supply =3D <&vdda_mipi_csi0_0p9>; + vdda-csi1-supply =3D <&vdda_mipi_csi1_0p9>; + vdda-csi2-supply =3D <&vdda_mipi_csi2_0p9>; + + /* + * MCLK2 (GPIO15) is shared between both front camera sensors. + * The clock is generated by CAMSS, therefore the pin is + * configured here rather than in individual sensor nodes. + */ + pinctrl-0 =3D <&cam_mclk2_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + camss_endpoint1: endpoint { + bus-type =3D ; + data-lanes =3D <0 1 2 3>; + remote-endpoint =3D <&cam_aux_front_endpoint>; + }; + }; + + port@2 { + reg =3D <2>; + + camss_endpoint2: endpoint { + bus-type =3D ; + data-lanes =3D <0 1 2 3>; + remote-endpoint =3D <&cam_front_endpoint>; + }; + }; + }; +}; + +&cci0_sleep { + /* bus has external pull-up, don't pull down */ + bias-disable; +}; + &cci { status =3D "okay"; }; =20 &cci_i2c1 { /* actuator @0c */ =20 - /* front camera, imx355 @1a */ + front_cam: camera@10 { + compatible =3D "sony,imx355"; + reg =3D <0x10>; + + clocks =3D <&clock_camcc CAM_CC_MCLK2_CLK>; + assigned-clocks =3D <&clock_camcc CAM_CC_MCLK2_CLK>; + assigned-clock-rates =3D <24000000>; + + reset-gpios =3D <&tlmm 21 GPIO_ACTIVE_LOW>; + + avdd-supply =3D <&camera_front_avdd>; + dvdd-supply =3D <&vreg_s3a_1p35>; + dovdd-supply =3D <&vreg_lvs1_1p8>; + + pinctrl-0 =3D <&cam_front_reset_default_pin>; + pinctrl-names =3D "default"; + + rotation =3D <270>; + orientation =3D <0>; + + port { + cam_front_endpoint: endpoint { + data-lanes =3D <1 2 3 4>; + link-frequencies =3D /bits/ 64 <360000000>; + remote-endpoint =3D <&camss_endpoint2>; + }; + }; + }; + + front_aux_cam: camera@1a { + compatible =3D "sony,imx355"; + reg =3D <0x1a>; + + clocks =3D <&clock_camcc CAM_CC_MCLK2_CLK>; + assigned-clocks =3D <&clock_camcc CAM_CC_MCLK2_CLK>; + assigned-clock-rates =3D <24000000>; + + reset-gpios =3D <&tlmm 9 GPIO_ACTIVE_LOW>; + + avdd-supply =3D <&camera_front_aux_avdd>; + dvdd-supply =3D <&vreg_s3a_1p35>; + dovdd-supply =3D <&vreg_lvs1_1p8>; + + pinctrl-0 =3D <&cam_front_aux_reset_default_pin>; + pinctrl-names =3D "default"; + + rotation =3D <270>; + orientation =3D <0>; + + port { + cam_aux_front_endpoint: endpoint { + data-lanes =3D <1 2 3 4>; + link-frequencies =3D /bits/ 64 <360000000>; + remote-endpoint =3D <&camss_endpoint1>; + }; + }; + }; =20 /* eeprom @50, at24 driver says 8K */ }; =20 &cdsp_pas { firmware-name =3D "qcom/sdm845/Google/blueline/cdsp.mbn"; =20 status =3D "okay"; @@ -485,16 +637,44 @@ nfc_int_default: nfc-int-default-state { =20 nfc_enable_default: nfc-enable-default-state { pins =3D "gpio25", "gpio79"; function =3D "gpio"; drive-strength =3D <2>; bias-pull-down; }; =20 + cam_front_avdd_default_pin: cam-avdd-default-pins { + pins =3D "gpio8"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + cam_front_aux_reset_default_pin: cam-front-aux-reset-default-pins { + pins =3D "gpio9"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + cam_front_aux_avdd_default_pin: cam-avdd-aux-default-pins { + pins =3D "gpio14"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + cam_front_reset_default_pin: cam-front-reset-default-pins { + pins =3D "gpio21"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + touchscreen_reset: ts-reset-state { pins =3D "gpio99"; function =3D "gpio"; drive-strength =3D <8>; bias-pull-up; }; =20 touchscreen_pins: ts-pins-gpio-state { --=20 2.53.0 From nobody Sat Jul 25 03:46:49 2026 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 1A2597404E; Sun, 19 Jul 2026 17:02:03 +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=1784480524; cv=none; b=YoVHJX2NEUbZ68S2ltMrtEo0lX5DAz63JfQewL1F+COpuQhqi8GI2sHK6rEHYvzaKoPQ6BWf+L8KkLa5uUcxHKC4/dsO7Uh6s92G8g11pEgDfPhcK1CIbCOfwutw2TuEzaldWcVVUY7rPV33FFSOKzA6LSw/eJotGmjxRjAjiSY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784480524; c=relaxed/simple; bh=5yVsH49bLm+KRqlWEbyRI1pgavGG7dUqYNk7iEKRH5c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ugZ//qEBZ/hujVNDIQ/7JgidOfXApFXNpbHVdSXoMJdNofJAbZfBjEDa0CVeSBlGO4KDM/SQKu/XuuRHafkwLV/5qhAS8Q31+46jtc94ObDye7XMXEawfwMCEiCq2keFpOL3CSRgNU5xkUB3hJpSIni6e7SFNce7n+V5pCy5xMo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H9C0YTfG; 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="H9C0YTfG" Received: by smtp.kernel.org (Postfix) with ESMTPS id A2CCFC2BCFA; Sun, 19 Jul 2026 17:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1784480523; bh=5yVsH49bLm+KRqlWEbyRI1pgavGG7dUqYNk7iEKRH5c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=H9C0YTfGw+mqS3UqQpLW+Wqrv3WzLb890/OEvPYtFQOjAI3eUK+8Ki+yGDDmt5Zri evLlGdq34wTbPaE35HkzYFO3DlZfuaHsxPSlJajGj9P/3ebPv93XyTR3tQ8S1Y0Qy7 y2PF4rDFrzgPaEWkQylRf643IrWAFYMpm/YBBUx3ki0vgx8I5m7GG2ZzJNBDf54Lb1 oiHzYdFUfMh6iaGj4X1iMO4I1SaksTSiTqptM4TMGulLMXEllY28DneBbwEN7Dix4A VWyc0hNadG5t7e5jBX4OvJ8+KsvFHYSuIlQGrw2VqlRJcov1rYoQs365hkpTy8VV2B UGlVZCsXJC3+A== 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 86E89C44520; Sun, 19 Jul 2026 17:02:03 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 19 Jul 2026 19:02:00 +0200 Subject: [PATCH v4 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: quoted-printable 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 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 Reviewed-by: Dmitry Baryshkov --- 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/arm6= 4/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 =20 /dts-v1/; =20 #include #include #include #include +#include #include #include =20 #include "sdm845.dtsi" #include "pm8998.dtsi" #include "pmi8998.dtsi" =20 /delete-node/ &mpss_region; @@ -601,16 +602,40 @@ &pm8998_resin { }; =20 &pmi8998_charger { monitored-battery =3D <&battery>; =20 status =3D "okay"; }; =20 +&pmi8998_flash { + status =3D "okay"; + + /* upper part */ + led-0 { + function =3D LED_FUNCTION_FLASH; + color =3D ; + led-sources =3D <1>; + led-max-microamp =3D <500000>; + flash-max-microamp =3D <1500000>; + flash-max-timeout-us =3D <1280000>; + }; + + /* bottom part */ + led-1 { + function =3D LED_FUNCTION_FLASH; + color =3D ; + led-sources =3D <2>; + led-max-microamp =3D <500000>; + flash-max-microamp =3D <1500000>; + flash-max-timeout-us =3D <1280000>; + }; +}; + &qupv3_id_0 { status =3D "okay"; }; =20 &qupv3_id_1 { status =3D "okay"; }; =20 --=20 2.53.0