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: 93756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6482393vqo; Sun, 14 May 2023 13:09:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ABcQWWRATN1Fpjx83VmAztpUgEqh3MpFcM3LGduyFyzj0XUZgHvJ+DQM8nGEwbC344/Il X-Received: by 2002:a05:6a20:3c89:b0:104:a053:12be with SMTP id b9-20020a056a203c8900b00104a05312bemr10292554pzj.56.1684094994242; Sun, 14 May 2023 13:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684094994; cv=none; d=google.com; s=arc-20160816; b=zyICj/UXsiOgHI3Q5ngctPUCUyYAOyG5k/BNBBsniThbG7WoJL/0fpzTju8Mk52Tht 09KNLLO5Tz2nMQvEMnqmXhJQV7B2T6uY1WkRumiqI3pSNvJFTWfUtARwpokZS75FLwdY UfMByqanJj0WlC8egyoASS3yRs0Mja1hD95+nbKvz/S9+nbVJfwN3FlqfI7GZba1JGL5 cozN9+0fMKlDBlgxuLK5/LjiW8n7soYMsgeVzh+WWnRF7wemPi2XXiWlk40tMMfvA1gO ba2MIIkh7XWOM+7yPSdlPZVzbt0oc1GrtsAw5RNB1lUBra1K/oUP/kIOxkATSgMR+Ece Fkzw== 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=wt3+6LKmRca0rNP+wpzsaM/lx2GzpYEr1yadG/Qpx34=; b=QUlXLmPTJUZs5JD36VLP/+U4XtVPv2GFoq8G2ObtB1jEzbrviopdx3kgWvmPei+VKX PlyQIqkBJdU0uQLpMv/ArIWMvXHDroQxIDMQTG+FRyTajcKgqVQ22Nrz12kXEtn6kRVj CVzvyU+pJxfJZfqY6jmIxosJ5TtttrexLuymqFloH7w7R+lj8ABZZ4KgwAHqfLoNL9nI yg/zT66zRxQdtlHMWnBeUn+GJ53wSFKdZtzHTr60lwBogUXbokuK1JbtbU+PAmyYg2qx w7Ca3PuiHXtxG0NBN8A9u7p+AM43Gq3YotjyICuAS/lEM7U0fdu8Ww1dvpX3LPy0um0+ Q/RA== 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 w4-20020a63b744000000b0052cc0ba4e82si13937352pgt.758.2023.05.14.13.09.30; Sun, 14 May 2023 13:09:54 -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 S229942AbjENUAS (ORCPT + 99 others); Sun, 14 May 2023 16:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjENUAR (ORCPT ); Sun, 14 May 2023 16:00:17 -0400 Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91468135; Sun, 14 May 2023 13:00:15 -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= 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?1765901592436444067?= X-GMAIL-MSGID: =?utf-8?q?1765901592436444067?= 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";