Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2837120rwd; Mon, 15 May 2023 18:16:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Nu8CHF3bH2gmehrlzFe7R1Z7+Ki7PfcrlVGXU7mFeT4GCkxf1x+hYBMegwxDMLVsVsWKv X-Received: by 2002:a05:6a20:7d9b:b0:105:53:9a0 with SMTP id v27-20020a056a207d9b00b00105005309a0mr13314925pzj.29.1684199807932; Mon, 15 May 2023 18:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684199807; cv=none; d=google.com; s=arc-20160816; b=bY7V+9i5ChKwc+4FKS7JWVWlgzSO+XTmJ5weRtb4ejo0ZQwd6n1QtPeYqzigchdxxl cXeQ2PfwsMxnA12+JTzYEtehSI1cKyVmOsAu75Ha+7/5S9I5P/fXIowB2zzvdXCCkPv8 aQqhpOgYipP/xBJuZafkdcfk+ggTj4LktD7wGpjh0E3qerajrF5am5KHfmiVsiHXt1ue dUKfAQ0pJd+Kfv/9RcmjpznFu7dmIrXx02rfMq8o/IQ2OGeYr5jeLsAJUAiwoK7ts8Cj rH9WMCcjdCDomodzoFM1ucr8R83P3/496U7yikw4fkyxPRyzGToGzxHTPvywm8cHieYq LSWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IKmG1QiKCqrXxBXEc9OganUA2qNFdNKRSrBQxLkvPfw=; b=k2Th3xQ5N5EWlaK1vOUfyqii9trp1BiO47esjZLQxXAZtRlEJuqaWM+tuWXGKgc1iO U3FpwNbULr3hy/aStxr/tQvoDecSE05FtF83SiwUc0p1lpvgj+07cZ0TVwoyNgcCwpMM CTInWOZKR7Nrevz2XzYvBUGxoZxCbOV4oZxw9UJi3W7DxtR4t0wtNZsserPalxhc8Rnt fSCM/0jGw3mUsPeCC2IaZIxbT17g7Q612m6lQsL1WxzUwk4LzQjDhrJxkGz2CFelSrjI i2TXv+JNDaBk/i4xtWrwyWAYUPEqoG6CsExzcLxneoM2eSzcZFHkCZwT6A44G/MNIuTq mnYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CciJ8Fal; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x16-20020a17090abc9000b0024e3527e8e9si592284pjr.9.2023.05.15.18.16.36; Mon, 15 May 2023 18:16:47 -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; dkim=pass header.i=@linaro.org header.s=google header.b=CciJ8Fal; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229455AbjEPBLT (ORCPT + 99 others); Mon, 15 May 2023 21:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjEPBLI (ORCPT ); Mon, 15 May 2023 21:11:08 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4FE659CB for ; Mon, 15 May 2023 18:11:06 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4f13bfe257aso15449875e87.3 for ; Mon, 15 May 2023 18:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684199465; x=1686791465; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IKmG1QiKCqrXxBXEc9OganUA2qNFdNKRSrBQxLkvPfw=; b=CciJ8FalkHTd8ww4CuZKCRmQPCIXzNjv6zkaSoWMutqst1QdbpMfwCg7CwocPVzTp5 r+sJugMPs928D6yJ4IZXA87KWwnl7D730gv8xZoRCvsOKwPzUhyosr1RE73nNN88n1Ve p4+FmDfAUPbkH0+gtK4Lfk0ZQ0E95pVvl51dQL9NzxVooTcaSH7wI1CYQp/LMv6FXQF2 I0vLi5tkaqo5nS35VflOFFjw/9tka79iw+mkHJ4+LAopSeubYoeKmnkXF8lPyGsmv+Rd kEfeOnpKGp4xne+7YjjzIkfljRalkE+3JM6uGGyLjCdeOwwmAK0ZVpHYmg8MeHQL89ZZ c7pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684199465; x=1686791465; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IKmG1QiKCqrXxBXEc9OganUA2qNFdNKRSrBQxLkvPfw=; b=MOtKl1SOJPKjAzMNMr8HyrUPY50EznHBsegBOm4BhzxuILYnOqMCIXD56NItMNm/nD waB7b5K4b5yPYdyBHQR0Z6vjW6hzUJ7YoB5WQubJw2a45IhxWsyHxkGo/sdFqDZgcSjD 8be5XQpwDafq0cNdXHuzXNWKfaqHDsonEVVGqIn1MxsSi4yJOlpkhL9KRjg3FFdydt93 Hg6kTbadaz393oUXnv06U4y0gfj2RitBP9U1oG39fZBZGlcR07NC4XBmN/w0HSSWuqwm vMvYDXeOf8lRiGA0YWVLKgCLsADzqPzqwRNyCv7RWcYAhdFbr0hlALDrJn/0SyUj2Ozo B/EQ== X-Gm-Message-State: AC+VfDwILVPrkNvwMQdvmkyIafwO9fgdljgKaZwtBGJzwy3J9sXuv/o3 UoKGwfmHR92eS/JJTZVYds3cJhXm0d7aFl/mCSU= X-Received: by 2002:a05:6512:78:b0:4f1:4862:9369 with SMTP id i24-20020a056512007800b004f148629369mr5942579lfo.4.1684199465075; Mon, 15 May 2023 18:11:05 -0700 (PDT) Received: from [192.168.1.101] (abxi58.neoplus.adsl.tpnet.pl. [83.9.2.58]) by smtp.gmail.com with ESMTPSA id d10-20020ac241ca000000b004f24e797c55sm2788336lfi.25.2023.05.15.18.11.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 May 2023 18:11:04 -0700 (PDT) Message-ID: <2991a4fe-2103-aa99-7750-6e017c51ab15@linaro.org> Date: Tue, 16 May 2023 03:11:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] arm64: dts: qcom: msm8916-longcheer-l8910: Add front flash LED Content-Language: en-US To: =?UTF-8?Q?Andr=c3=a9_Apitzsch?= , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephan Gerhold References: <20230514-x5_front_flash-v1-1-3979c8498efa@apitzsch.eu> From: Konrad Dybcio In-Reply-To: <20230514-x5_front_flash-v1-1-3979c8498efa@apitzsch.eu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 14.05.2023 21:58, André Apitzsch wrote: > 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>; property-n property-names please! > + > + 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"; > + Unnecessary newline LGTM otherwise! Konrad > + 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,