From patchwork Sun Jun 16 18:22:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= X-Patchwork-Id: 13699633 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 C7A2424B34; Sun, 16 Jun 2024 18:23:23 +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=1718562203; cv=none; b=t28hxoPcIXRzZaNEciISrjjHUTsSWwYiSLhBvKgiEBrhJFNIdVqlzyQV8Vtt/CvsVFTuodg0BW2Y0OYbbhFz5NOtWH7qjl4FLK4L1+30kY1MeJF5/E/RtgPSYj2oHydRtpujTXJIsQsFwpee1kHWX0OLg8/20oWJoxQi/50ZQzE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718562203; c=relaxed/simple; bh=2/D3y84MWExMUe/+ohdAcL5JtZ0TFzz2ZC4d4ub2oGU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I0pNU/AtW17BrRRado7Ht2InQGD/gOzdr6+xA8ZYBxsv+fHyylmhTQTINCWA0ayNM4zhRA1mXQRUj+f/bSoQyWzgyfXy6Q+b23fmQw2O89oEUzBjhq72rL3Wg+NICbuxrxuvGJ4wa95eQIYzK+KlK9uh0KreVDXgpaviYmfqLaY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FHHohNSk; 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="FHHohNSk" Received: by smtp.kernel.org (Postfix) with ESMTPS id 516FDC4AF50; Sun, 16 Jun 2024 18:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718562203; bh=2/D3y84MWExMUe/+ohdAcL5JtZ0TFzz2ZC4d4ub2oGU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FHHohNSk3kpLoximLWynHYzSgNS2SE7/Jx1n9Wqi3oUsSda+7yecoHZtlpI8zLAKx Cc38hDQPHLAkeCY3t93x4uRTDP597vOMErylAve8efMVXeyJVjAu8rxUjWcIZSPdOO In7o+2tV8jZri09Up18WzNs/izIiwlMfLwuXOrB8CP83NQLoO3l3h3xWxBrsFwlC1G ANyoroJasa8yU24JNXN+rYxS8IZZQSxzd5l9xaNV1yYC+xtHw+98TT84qtHWWiYHx/ TKq+t2+JfSlvrtrDQgviyQxBAmJrv/p1gmLeBIwtXbgYCy0+4S54MG4ofPF7BgW66n /7WAvZlOop41Q== 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 426E7C2BA18; Sun, 16 Jun 2024 18:23:23 +0000 (UTC) From: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= Date: Sun, 16 Jun 2024 20:22:54 +0200 Subject: [PATCH v4 3/3] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240616-sy7802-v4-3-789994180e05@apitzsch.eu> References: <20240616-sy7802-v4-0-789994180e05@apitzsch.eu> In-Reply-To: <20240616-sy7802-v4-0-789994180e05@apitzsch.eu> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Gustavo A. R. Silva" , Bjorn Andersson , Konrad Dybcio , Christophe JAILLET , Trilok Soni , Kees Cook Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718562205; l=1408; i=git@apitzsch.eu; s=20240325; h=from:subject:message-id; bh=5PZFGehTShxKe3OFkYq1lO6OPdXhGy4wNq5owjXoJG0=; b=Nj99GFC0tfIYypxlnWwCOUeS13ePOV+czdmMfwwxrWIv1lDgy+lga+RvH6mw5ZKUMVPuvdONk oX5PwuKtblYAbVBVqV7WIHOXnlbgBFR9GaFDN2t3IcvgcDxeH542cNb X-Developer-Key: i=git@apitzsch.eu; a=ed25519; pk=wxovcZRfvNYBMcTw4QFFtNEP4qv39gnBfnfyImXZxiU= X-Endpoint-Received: by B4 Relay for git@apitzsch.eu/20240325 with auth_id=142 X-Original-From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Reply-To: git@apitzsch.eu From: André Apitzsch The phone has a Silergy SY7802 flash LED controller. Signed-off-by: André Apitzsch --- .../boot/dts/qcom/msm8939-longcheer-l9100.dts | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts index e3404c4455cf..528737929274 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts @@ -159,6 +159,25 @@ led@2 { }; }; }; + + flash-led-controller@53 { + compatible = "silergy,sy7802"; + reg = <0x53>; + #address-cells = <1>; + #size-cells = <0>; + + enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&camera_rear_flash_default>; + pinctrl-names = "default"; + + led@0 { + reg = <0>; + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <0>, <1>; + }; + }; }; &blsp_i2c3 { @@ -318,6 +337,13 @@ camera_front_flash_default: camera-front-flash-default-state { bias-disable; }; + camera_rear_flash_default: camera-rear-flash-default-state { + pins = "gpio9", "gpio16", "gpio51"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + gpio_hall_sensor_default: gpio-hall-sensor-default-state { pins = "gpio20"; function = "gpio";