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: 95075 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp931285vqo; Wed, 17 May 2023 00:04:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qLIAvYTM38IykbfDw8Yw05fHK245rv0Z/D7BsUzXfpGnIZ0+rQgM40RR1f3wmegTUF2R+ X-Received: by 2002:a05:6a00:1796:b0:63d:260d:f9dd with SMTP id s22-20020a056a00179600b0063d260df9ddmr55055851pfg.33.1684307068364; Wed, 17 May 2023 00:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684307068; cv=none; d=google.com; s=arc-20160816; b=E5By5EVoJ9dcPp+e89YtzTM1PlYs0xALD3NpwWGX8HKlIFx5N+d7DuRmu/Km15ctPD Avo2ctA5UC0HB14oU8NkMOKkODb9RbuCuBg5ZPWOh9vAmFyeyP7kADuXknhMVTTd6PmG 2L6g07nprrHmaeI92vTtXPIxjP/2ZF+DWqRXyKd+m4N2IWaAZi1TKTxhfI4e8H63dNxP 6oAeqsgq303VN9gx61vPfErZfzWd0CsIE2TI2uKwSz0E5hxWE2CWAj32SBZFS4g83kNc uIp2/+k+fY4ayfKRvLdY2/wC4AjclHWumr8mQm0IeJ/gKNbUSVtxFjm/g0/TpOmDf9YR h6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from; bh=kdnm0CK+3QUH5YhRP/EhQwOAx141Lz/SAaew5WNjXjs=; b=dFYb5lteP6BwqZUwPaaYIDf+Fe+fSojb5PAaA2CP3a6chStlazEZMcRJZvdQqcF0nA EV7MqiTdZ5MMwAFEjjPRbOJ4zdOl3W5GY8o+Ac3O9GIRHPm7McL7hQG9YV446FBJ5jIw A/nkRfhL23gJlqat+UXn3Bx5OIguGNdnZnzh/XfTftfsz+xFgoSX242QaQ1QXVUiCJ9R 61h28H5cX3BgbsA0VgSl2WvgMfpLDXXWJHrQIrtSZbalFDi2h34Oc+mQvvXE/5Pf8Eb3 KFx63kca60u1jdE5NGEUQE930E2F5Qb5wWVrYlbBwXd9KyVXFgymO4TWOHks2sfvq7aO UD0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a056a00008600b0063b64166faesi21182558pfj.157.2023.05.17.00.04.16; Wed, 17 May 2023 00:04:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbjEQGd5 (ORCPT + 99 others); Wed, 17 May 2023 02:33:57 -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= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766123968357955431?= X-GMAIL-MSGID: =?utf-8?q?1766123968357955431?= 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";