Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1119965rwd; Sun, 14 May 2023 13:10:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ565qns86t0t/AphDaZmpLx1eoSGl8KqrFxaV8Lpp6F6E1LwIRvj9BwNHaz4JR4QdugGM0A X-Received: by 2002:a17:902:70ca:b0:19d:20a:a219 with SMTP id l10-20020a17090270ca00b0019d020aa219mr27258625plt.66.1684095012379; Sun, 14 May 2023 13:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684095012; cv=none; d=google.com; s=arc-20160816; b=OKVAKILCjVTYzL5AZOppy41HGLHU1LpEDd+aMUoNB0S27iYgGrKWRmoYMHdzPOzdmr xSIVDPlkYJjBcNd+P6Dzquoy2akIbf32JAz8fdq4aD/PzOBzuNESUoO+/tJVva7Vm2vB 47MXM06wwrXgRrHnPfNK/A6ukIQJandvZz7Rb0+dB68DaTINxHgUhdOZf2NHUYHGm0Gi B+qW9H5sovs4l9d28oIgYjfCCo51N5h5RTbaT0xYpnJv9O1rxNqZgZfqlQKHlLFvZr/9 8LYPQL8xscrZwPC3bs+PNADQP2/5/btkHOypjagcCbUkITM/JAf8FhJONdrMQ0kDu/KJ bYMQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a170902d4ce00b0019f33c0d583si15193622plg.315.2023.05.14.13.10.00; Sun, 14 May 2023 13:10:12 -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 S229929AbjENUAS (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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 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(+) 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"; --- base-commit: 533c54547153d46c0bf99ac0e396bed71f760c03 change-id: 20230514-x5_front_flash-c189e22b32fd Best regards, -- André Apitzsch