From patchwork Wed May 17 06:32:31 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: 683043 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 7A28BC77B75 for ; Wed, 17 May 2023 06:33:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbjEQGd4 (ORCPT ); Wed, 17 May 2023 02:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbjEQGdz (ORCPT ); Wed, 17 May 2023 02:33:55 -0400 Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1DC7359E; Tue, 16 May 2023 23:33:53 -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 1pzAip-0006Lp-H4; Wed, 17 May 2023 08:33:15 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Wed, 17 May 2023 08:32:31 +0200 Subject: [PATCH v2] arm64: dts: qcom: msm8916-longcheer-l8910: Add front flash LED MIME-Version: 1.0 Message-Id: <20230514-x5_front_flash-v2-1-845a8bb0483b@apitzsch.eu> X-B4-Tracking: v=1; b=H4sIAP50ZGQC/3WNwQ6CMBAFf4X0bA0tEKkn/8MQspStbaIt6VaCE v7dwt3jvJfJrIwwOiR2LVYWcXbkgs8gTwXTFvwDuRszM1nKqmxEzZemNzH41JsnkOVatAqlHCp pRpalAQj5EMFru2svoIRxP6aIxi1H6d5lto5SiJ8jPIt9/duYBRe8Uhel21q1aOAGk0tf0vaMb 9Zt2/YDd33EmccAAAA= 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 --- Changes in v2: - fix pinctrl-* order - remove unnecessary newline - Link to v1: https://lore.kernel.org/r/20230514-x5_front_flash-v1-1-3979c8498efa@apitzsch.eu --- .../boot/dts/qcom/msm8916-longcheer-l8910.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 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..6046e2c1f158 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-0 = <&camera_front_flash_default>; + pinctrl-names = "default"; + + flash_led: led { + function = LED_FUNCTION_FLASH; + color = ; + flash-max-timeout-us = <250000>; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -246,6 +261,13 @@ 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";