Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp88724lqh; Wed, 27 Mar 2024 16:02:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWPrPPS5t0wmpRhbtvn5ue6yW/xsMrlTPehcTjJTjfDppgY8gra10dnZ23AEHnaRBB9oY46cZfXWiglzt1vBM8ht2jeEL8yUJuc9xhQw== X-Google-Smtp-Source: AGHT+IFnXpz8UR2vDrdVZyxws/2ZFK1YHH69hnJhmUbuFisUHLFizbdgS+J0PGhHR0QqemO3kuoH X-Received: by 2002:a17:902:e88a:b0:1e0:c571:d644 with SMTP id w10-20020a170902e88a00b001e0c571d644mr1444271plg.8.1711580530137; Wed, 27 Mar 2024 16:02:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711580530; cv=pass; d=google.com; s=arc-20160816; b=Rf0PX/Q+wQ3RrVwx6dkUFa/E7EsO4u7Qv8AJJf0L2+z1T5cas/jieqJ2+cmae3PXSX KfjZPFxCejTj5jhZaPDi8cqBFMJ62vOH5HrYvLU84DG2r+Sr3hGCTvDwKVEh/qS67/+K V4mmKqARh4feU2fpAq8ayKqHEer9HAWhfu8SrKg06LaXs3g5CEtGPtkI7Tu9EiMSj6Ke cr7/KEMfDQHDet0c4AC604i5DC+8nPe7qXLW60aqYHWjJCUcja1jNqQFblIL7rScZVK8 83QuHbMkKke669wNGpmXuAeEuQWGtrWVdUa1lUl/Lu1vv856nB/uHeDsSfmUQ5SNUz1Y cZyA== 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=xBq7++dk6nMQHU9UhKmfWGYHDWRJx3GF+ZGvxJCy4Ns=; fh=PRfrKAzBsapijStCsjBTKe4/47XhCtfT7m5bKECD0Zw=; b=wFIyhE8TCytmDAlL29EiP9S1EFj/iboSMPXimtQVQXWkFJxYbwCyaRoXBj8ZdcJkTw qljedlVorVGx58ChI+d9d6vr/oY5Te6n5seY+z0NtVc/gmm3gTnsdZUMsDDLezVFkWyO EXQaMijwjFy/zdS5xV1p2Vodh1O8+QfTD0ufZPh+o5jPOpFTwwZZoBQnGCrIDZY9Htxh rwQAEg7Ml5hCFRRHkHP8O7oeM9n5f2Q4ttRl3nddjjKhFUJN6V5QR86PZ7SwAdD23BXd cV8FqdyKCnCuGIbZzSeWk1QmMjVEUaWHiXyudrmeKl8do+hxdB/b8QCguuO87bWMJbtg DGRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crrbfUFt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g14-20020a170902868e00b001e0ccfd7818si99759plo.412.2024.03.27.16.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 16:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=crrbfUFt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-122134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122134-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 648C5B23CC8 for ; Wed, 27 Mar 2024 22:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B74E1552F0; Wed, 27 Mar 2024 22:57:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="crrbfUFt" 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 A7ED15B04F; Wed, 27 Mar 2024 22:57:18 +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=1711580238; cv=none; b=lanwdxgms/r2m1O2Zh8KmFvq6XZ6JBi9M7Ca0D2Fpk0tK5gxeL8yYjFFD8ftsy0lsYLmNBDSY/cEI859cLKpCLCpGYoyto6pevdkB0hMUW6n9BsSO5u9vSMO1K9KPL7taulf08eJFQOxfa7+J3ba4ojKs7MPLYvYNB6Xijw4N3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711580238; c=relaxed/simple; bh=npQsuKJCSjPU1CmK2mJzpdJDvL/vcRiQ7VqJraBwVjk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TtbAsnuRl/BEWN2ig7h1lyjaqYX/mxHupA/sewnm6euowBugsNfr39zz8yjrMp359bITEZvc3/B3jewa6lf7PDH2JIwvFk76HKMZtmas8nvdQ/Sh7lFp2C50VHwn4fTCy9MXdLgc9/SBi0xVM5WpoV5Ajndg5pDSssX0t8J3sz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=crrbfUFt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 56FC3C433B2; Wed, 27 Mar 2024 22:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711580238; bh=npQsuKJCSjPU1CmK2mJzpdJDvL/vcRiQ7VqJraBwVjk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=crrbfUFt4FnQpyZ4+QjsvTDSGKm8EyB46er3u95Nn6HudZB4npbee5M0eCrznZUXg A+ViTPMzInZZqT/3ThzU52pulk/9nH7JflMaxOIm08nFQYW35bL5aVBaeJHEff4+d9 uLzVdQlsd8e4v/lDtDI6gZQRItXH5RIRq58oM/B3BpiKPLHPQHY+8ucAYDaB1ek1EN 3dh0xAtkmp5wnyovWi/fv44Wmgzo675wKp2RIRzgVf78mDbVtJRxOl6AebdRAYzQRL 3I/Vo9CN2dz6+LEgPYrKxBajo0+sr+OUFp8J6kTR3yySGf5hxZaPRhH1bEy9KCEq3T fb3MGp8jJR8UA== 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 496B7C47DD9; Wed, 27 Mar 2024 22:57:18 +0000 (UTC) From: =?utf-8?q?Andr=C3=A9_Apitzsch_via_B4_Relay?= Date: Wed, 27 Mar 2024 23:51:35 +0100 Subject: [PATCH 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: <20240327-sy7802-v1-3-db74ab32faaf@apitzsch.eu> References: <20240327-sy7802-v1-0-db74ab32faaf@apitzsch.eu> In-Reply-To: <20240327-sy7802-v1-0-db74ab32faaf@apitzsch.eu> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , "Gustavo A. R. Silva" , Bjorn Andersson , Konrad Dybcio 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, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711580236; l=1408; i=git@apitzsch.eu; s=20240325; h=from:subject:message-id; bh=nJ8Y+0v6j8LoIOHmDYBEGHd/SEM9XgaMCtxGw6/naMk=; b=7YhV4IWxeA0uTjafhzehr06WhwClOrLv0Z9w//XgT1anNQEKbXAToFkwKreQMKxwJmYDP48oP 4E2F9vOI8xRAc/0N4ULPU7CxQP3nKCjp4dHJID8mzbmDZ+EOCvkaXce 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.44.0