From patchwork Sun May 14 19:58:26 2023 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?= X-Patchwork-Id: 13240558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EB04C77B7D for ; Sun, 14 May 2023 20:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbjENUBb (ORCPT ); Sun, 14 May 2023 16:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjENUBa (ORCPT ); Sun, 14 May 2023 16:01:30 -0400 X-Greylist: delayed 74 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 14 May 2023 13:01:29 PDT Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C6C135 for ; Sun, 14 May 2023 13:01:29 -0700 (PDT) Received: from [92.206.161.29] (helo=note-book.lan) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyHs3-0004fW-9E; Sun, 14 May 2023 21:59:07 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Sun, 14 May 2023 21:58:26 +0200 Subject: [PATCH] arm64: dts: qcom: msm8916-longcheer-l8910: Add front flash LED MIME-Version: 1.0 Message-Id: <20230514-x5_front_flash-v1-1-3979c8498efa@apitzsch.eu> X-B4-Tracking: v=1; b=H4sIAGE9YWQC/x2N0QqDMAwAf0XyvIKNCtt+ZQxJa7oGtjoSGYL47 6s+HsdxGxirsMG92UD5JyZzqeAvDcRM5cVOpsqALXbt4Hu3DmPSuSxjepNlF/31xoihwzRBjQI Zu6BUYj6yD9nCeoivcpL1PD2e+/4HhH9Ac3kAAAA= To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold , =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.12.2 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org l8910 uses OCP8110 flash LED driver. Add it to the device tree. Tested-by: Stephan Gerhold Signed-off-by: André Apitzsch --- .../boot/dts/qcom/msm8916-longcheer-l8910.dts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) --- base-commit: 533c54547153d46c0bf99ac0e396bed71f760c03 change-id: 20230514-x5_front_flash-c189e22b32fd Best regards, diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts index b79e80913af9..81cebac117f1 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts @@ -20,6 +20,21 @@ chosen { stdout-path = "serial0"; }; + flash-led-controller { + compatible = "ocs,ocp8110"; + enable-gpios = <&msmgpio 49 GPIO_ACTIVE_HIGH>; + flash-gpios = <&msmgpio 119 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_front_flash_default>; + + flash_led: led { + function = LED_FUNCTION_FLASH; + color = ; + flash-max-timeout-us = <250000>; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -246,6 +261,14 @@ button_backlight_default: button-backlight-default-state { bias-disable; }; + camera_front_flash_default: camera-front-flash-default-state { + pins = "gpio49", "gpio119"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default-state { pins = "gpio107"; function = "gpio";