Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp712346lqp; Wed, 12 Jun 2024 14:04:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnfq9SIeArjWjJ8bIB5oKuTWSvrulTOYSDO/EP19Q+lKkbTv6eGeTBfedA8w9CJMDEGNtvfKvxO/dXOHwtHPY9969j/WM/p4BASyTJ1g== X-Google-Smtp-Source: AGHT+IECL+2SnR7daRNKDFwS15FDLQMJD7FyClqjP5sCiRzsYd/P26BrkP34Liej7OXDlFMObKHF X-Received: by 2002:ac8:59d6:0:b0:441:595d:c9e7 with SMTP id d75a77b69052e-4415ac06883mr42847501cf.37.1718226245777; Wed, 12 Jun 2024 14:04:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718226245; cv=pass; d=google.com; s=arc-20160816; b=ntq6fQG9DP4C/HW5cUQPY2arsgcB260RBIO4GjC8Wt9YQyJFJugT3Lwz33I6+mkKMi w1FL5nu8+nKnq/wHYpprXrmXEwo0wYeAi9q00DVLbkLjeLWQt2weyuSZ1Eb3rfaXpUIK HvnphbylOhF2SykN80dbfz3OV7ylov+p3a7tACdEB0o3NP3ttq4tv0FT/chRohCrh2V+ RTLfzf2jda/oxCcV2PJ2h8JGdL38Sg4pgjf5ATBlnS9hA41xwqKEvXkVr23krL9jPGVk GleFNjakDMwBgVVhVMdztSCYYCGYWPgzb2FdyykW8R4ZxWDb3s8D9DFvxYXwAHStIv32 TNUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=+CRDTEVKAyZocBaLXWZNXBwyALGVL1P0Pz54gdl0j4g=; fh=CJDvYqP+vKtrb8CaOAPp4H1txde9El2fqp5X4lSrzec=; b=UlcQdzDMcjKeLXzEYZLN1qgfVi4uEe9z0X9YBWRguTB2PRXBg+w8Ztce21IH7iucTl HtDFn6AJJxb4cDyot+X9t79coweTFYT9HFB1HR3tDDktWEHV0htTfleZWfckbaQ6QPa+ SDb0XkSk0D8lQriNIG05aRqXc/sLB7G/G+u6KrXkFfpM0A0aJarFfJ3tF/BiQQ2nSXEm mlNY7G6yDcbiXbr4x0Zl6HWu5QfM8ipZhs/MTEXpMWFFVjljEGkFwOqtqFEWJXoczN5t zdpEHs2sPStk8y25jTwgQWjTbYVCx79Vq6X7Qa8iQQft4YGnHtwwo+ZLmoLesncdYGnE WkSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6KJOXj4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-440d29b21c0si87764831cf.616.2024.06.12.14.04.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 14:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b6KJOXj4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212255-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D43E1C2159C for ; Wed, 12 Jun 2024 21:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FC5812BF34; Wed, 12 Jun 2024 21:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b6KJOXj4" 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 4312684FCC; Wed, 12 Jun 2024 21:02:48 +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=1718226169; cv=none; b=ta+9Cbfm1pytyEfI2wrYhc0NJhqoHYDyCb4Qj/P0RYqTcOhiX8NEnE+5dnx9rv2jwD/fwyuetN6u9W5tmYpLghKgCsJx2gVr/aV/soK/KNI0muwS1kq1dqlEvZ/kzlYpheJUd2vKSXPVMX+ZhGQdu24ZyQNjEwh/LH5XvWshxRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718226169; c=relaxed/simple; bh=2/D3y84MWExMUe/+ohdAcL5JtZ0TFzz2ZC4d4ub2oGU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=j+f5QRnxkaMMnyUD6Wc4jyI4f4NEdGmfLvDWoaJ4sruU7bEsWBpkhZ+gdvGtz2ZnuTWhW5r/NuSMxX/KPnh9Kfg9qvXUP/6040TM2HZygdndmo5ORPY05QhoaC1s4BwaI9YsE6ia7DEepQUetISwUM/kAV6VZ1oIDl6+mu71XkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b6KJOXj4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id AA3F4C4AF51; Wed, 12 Jun 2024 21:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718226168; bh=2/D3y84MWExMUe/+ohdAcL5JtZ0TFzz2ZC4d4ub2oGU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=b6KJOXj44xtQmKnjosF7WiA8Mx0I6uSl5rGZ96gvgVk3wW8IHBH5ywNNh20vRmu7k pZ5c3FuyB9I/Fp/gxSYtB9qfI2RqwhXR5gnf6ZaxIzzZGjEws/VH2ijmYCxFLNA+F7 iR7ZcVsoDSRhCsPXEsBCvohhbIlScl/eYSxpxjQxrjUknRL+HhO/CVuBUAqRvlYO72 cnweTXjpJFq0mZPH6OGMOf5O+Iw+BfegwIwITzdyU+NIPLW4Fsiavxy5LPrd64Evh3 bVg+pqbJ9VqHZl6ZNuhZrrdDm3BkBV1FZhnNLY/abq9FAVsfqATaSblAK6GLX+Djc3 g2EYppCk+FylQ== 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 9A4FCC27C53; Wed, 12 Jun 2024 21:02:48 +0000 (UTC) From: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= Date: Wed, 12 Jun 2024 23:01:34 +0200 Subject: [PATCH v3 3/3] arm64: dts: qcom: msm8939-longcheer-l9100: Add rear flash 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: 8bit Message-Id: <20240612-sy7802-v3-3-1e9cc1c79b79@apitzsch.eu> References: <20240612-sy7802-v3-0-1e9cc1c79b79@apitzsch.eu> In-Reply-To: <20240612-sy7802-v3-0-1e9cc1c79b79@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=1718226168; l=1408; i=git@apitzsch.eu; s=20240325; h=from:subject:message-id; bh=5PZFGehTShxKe3OFkYq1lO6OPdXhGy4wNq5owjXoJG0=; b=U4zL09R/h6bvbX1wqNtjXFrsRAogqI/mEldeu7GYtmhwqNQ0lSLQI9IJwXLRIg/1sidABnw3A S7qNrUqcDqQAyHwDaPa2lZ4ksDuzggAlN+sL4Ot0Dts7pLb/UZRs02z 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"; -- 2.45.2