Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4165959rwb; Mon, 21 Nov 2022 04:40:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7yEmq9xRYZt54ovydU1/OpzlwOxC7gN82BoNARuiyLuH7lqtUjiFqBC5KKwAAusIn5b4KZ X-Received: by 2002:a62:6083:0:b0:56d:3180:c7fc with SMTP id u125-20020a626083000000b0056d3180c7fcmr1555950pfb.41.1669034425195; Mon, 21 Nov 2022 04:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669034425; cv=none; d=google.com; s=arc-20160816; b=ar0nI0QzCZ4MbsdNL774LusdeyVc1RN+yHfkBMtVpLYbQ3nDwopW4Tg2czVpvsbKnJ GhlKw7yjNKR60/2mDsH41byxpsp8TYlI3942W+dkJWAeq2mLdmk9omm85OxDE1cHnihq YrRfFS/ZTWC67HdXffLKKraXUeWe+9mDyH3zmvg43/gEGbhEHAbVeVMWOYf91YALA0el UmnV/FAuJjPcyYrU9Ds4ZrYJrqg2C2QEwEQ6IiCly7uAdCKZ6IdRkO5jbX9T5ITSQlnX c2WYKuSAtemJQHH41O2Jbw6DVTHESQu2eq1NYWSdU+YSGgqkg5DKmAlLrDwsDsuvsDNO U8eg== 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=F3ha/lY5Ic8T9/pCMhQS0VzAXItA9akOxGeE3iE2uwg=; b=JhhVBFgHCHT7QFMOati1WZy72/YBMq4EOdtt5wKiwqtQZAiF5lc2fxVm1UIfIvlNLo JAjvlhDp0CvlUOK+GFpYnajmvWuFDPIXS/h8lZK5wJHC6P67pk72nmqLV6nVgVtVElBV UOm58XdbSd4AdYpSoE5mtpsodDnzr0FIbe0Rz8FioQ+r1UjbjzoY3mzwBSEPgbk7q5IA 6TdYQyEg55AhOTmG89Vm72GUEMfRHg8nSytJ1+Q9VDVD8Q4e0yR8e5FTVqanM6LujTUh wPVb7ovgI/WrxiQX8K1GmK6GrEQMJE2Rhwc9EF8fRpi4mwZCj5rROPOEZ8CraVuonJHC 4mlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GXCPV1qg; 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 14-20020a63020e000000b00460b3aecba3si10942564pgc.542.2022.11.21.04.40.12; Mon, 21 Nov 2022 04:40:25 -0800 (PST) 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=GXCPV1qg; 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 S230373AbiKUL3x (ORCPT + 92 others); Mon, 21 Nov 2022 06:29:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbiKUL3e (ORCPT ); Mon, 21 Nov 2022 06:29:34 -0500 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A12BB4817 for ; Mon, 21 Nov 2022 03:24:11 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id x21so14105366ljg.10 for ; Mon, 21 Nov 2022 03:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=F3ha/lY5Ic8T9/pCMhQS0VzAXItA9akOxGeE3iE2uwg=; b=GXCPV1qg5gXY/PDtUcQ5XlqtZc0WaW6/R+AQdSy4J6fNUA2kMwhmpXcmAwB3gQy+kx sUncmxtaYpV+AE4H3RgpXonMJQphQHBQZGrkhQwabA9lUavPxadIglXaiIfdjEEVyvvp PwzWl2KOp7+O86OjPcBRcrogJHPr5HnSBwjhZHfmAb8BgQoz+BhC7SrDIk87M3DaLyku WPlkPgGdU6qehFDFgrBVbilol/Si1EL4u+IZIyGUFrsxxJuLBuFVaayWPNxkONpWdDpa DVnINZ7cP+xis2xgjmAa2eJtLLrsyJhRU9sWSIjwfX/ZcykvuXceKhTj+547lgeuddTW sU0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=F3ha/lY5Ic8T9/pCMhQS0VzAXItA9akOxGeE3iE2uwg=; b=OwOTnRclDzVQFpg5KdriUqLt8WSu+g8o86dV1cDITwc8KvVzKH1TNSzne3GhPMj9K+ vkyxaeiXCGWkYFPV1WZ6jxlgryao+g42ttrk/aJ69AqQ0O3XAZEP39/34OwmSXroz3Ce fVgEatXAR4wipfTyVVpoB6oPLZ2JXtShoAzOe6OwrVpmO/ikYOusx//6PsVXCXgOC+uP oojW710eQlEt8ZbNLPYK7PTvZUvSpF1LNUrZh6S7TzzuJYppQGeMGu8duOfT6Ixx5oBD HKRMhjVZrfB/NRFmB2oCuUV4oA+COr+fF89dthqf03Yxv0Wx3Cs7ADEFswJk9q7dxwa3 Q96w== X-Gm-Message-State: ANoB5pmoBAO0qZx4kgcdRC730EheEys5mXkFORJJSSI6xi09xGR6YCY+ 27FOJ0mCZdamjDElTn/nTg4mBA== X-Received: by 2002:a2e:a810:0:b0:277:9e5:6cc8 with SMTP id l16-20020a2ea810000000b0027709e56cc8mr5199074ljq.105.1669029849369; Mon, 21 Nov 2022 03:24:09 -0800 (PST) Received: from [192.168.1.101] (95.49.32.48.neoplus.adsl.tpnet.pl. [95.49.32.48]) by smtp.gmail.com with ESMTPSA id s9-20020a056512214900b004acff58a951sm2000032lfr.133.2022.11.21.03.24.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 03:24:08 -0800 (PST) Message-ID: <5eb40c7d-6663-68c1-d9f9-70a117cc3b26@linaro.org> Date: Mon, 21 Nov 2022 12:24:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 5/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED Content-Language: en-US To: "Lin, Meng-Bo" , linux-kernel@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Stanislav Jakubek , Shawn Guo , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20221119202316.93142-1-linmengbo0689@protonmail.com> <20221119202659.93667-1-linmengbo0689@protonmail.com> From: Konrad Dybcio In-Reply-To: <20221119202659.93667-1-linmengbo0689@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 autolearn=unavailable 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 19.11.2022 21:28, Lin, Meng-Bo wrote: > FL8005A uses SGM3140 Flash LED driver. Add it to the device tree. > > Signed-off-by: Lin, Meng-Bo > --- Reviewed-by: Konrad Dybcio Konrad > .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts > index cc81880f7c42..131e12ae510e 100644 > --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts > +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts > @@ -21,6 +21,21 @@ chosen { > stdout-path = "serial0"; > }; > > + flash-led-controller { > + compatible = "sgmicro,sgm3140"; > + enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>; > + flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&camera_flash_default>; > + > + flash_led: led { > + function = LED_FUNCTION_FLASH; > + color = ; > + flash-max-timeout-us = <250000>; > + }; > + }; > + > gpio-keys { > compatible = "gpio-keys"; > > @@ -239,6 +254,14 @@ l18 { > }; > > &msmgpio { > + camera_flash_default: camera-flash-default-state { > + pins = "gpio31", "gpio32"; > + function = "gpio"; > + > + drive-strength = <2>; > + bias-disable; > + }; > + > gpio_keys_default: gpio-keys-default-state { > pins = "gpio107"; > function = "gpio";