Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2021629rwl; Fri, 6 Jan 2023 00:23:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsaSTC/6h1uV/1ZZ2HiFlDiHR2PlmRfGewoO4k3KuYMFT+tyng/XavdFMBzXtwEt691ed1a X-Received: by 2002:a17:906:218a:b0:84c:a065:d723 with SMTP id 10-20020a170906218a00b0084ca065d723mr20880857eju.44.1672993396505; Fri, 06 Jan 2023 00:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672993396; cv=none; d=google.com; s=arc-20160816; b=nOO8a7xqo6W0urfzGwv7AZH5zv7NzFbQKuOICHrYJr0S4uUPm1VWzINksmKzFx1svP xlF2+bKyXKKZpPIdfKYdC3s0E0gLQL/NQNTHD0k9WfctkDP7jbOTuCPfeM6dbwTO0h/H brfqCQ7jI7FXYJuv/CLU6Su8DkrNvKaUyHVNDDQpeyu+O5weu12j47G5sFvUCKFCP2wa YoaFi7gfm1e4rEhROR2/yPHzuVO3ARYsiqcTCSLXQzi6xdIq1oaF9tKMY0KwH4BuZRY/ /sV7jkshmpEbrWGrrmpM7weH6UnzihGzOE5iywh6OOyEeEmLawFqZUae1GOWKTX4f3Ei yy2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=sqU8j2UrbPk5rmGQd+h1CDYMuTAr/lhJo2M2lNImIGM=; b=jWVUNt57t2PzfxY7/Iq3k/rgYanmbrm+v+WltX28p1alzEBQDm+rqAMV1kXBeNH2qA OmIkQKe2I+CCUDqpLxQ2cH7JkXQ5qydkSDzYLsSWmKT2a6MpIHabM2JqtKMXSwd+ZFmw uMTvrEbTfi5RNNjx/zyGOPS39OJw+9T/eLfkzU41k5oVf3OFnHtIqRW/SxDHlV0ID5rg MHXPgUodKGNtIn9Svy7WEGcKwaxk/9sD6Z85S7shMlrLoUznkVISF+fsUJ3kRC4g65Xa fl4s8Uf5udAiYxKylJb4fCNQUCzxk21TECUIRNaiS/mCZdxsJJAQ19FmgeKu42bgNcDm wOaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=f8Dr1UFP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs44-20020a1709072d2c00b007be268708b3si739638ejc.926.2023.01.06.00.23.03; Fri, 06 Jan 2023 00:23:16 -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=@protonmail.com header.s=protonmail3 header.b=f8Dr1UFP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231907AbjAFILY (ORCPT + 54 others); Fri, 6 Jan 2023 03:11:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232202AbjAFILN (ORCPT ); Fri, 6 Jan 2023 03:11:13 -0500 X-Greylist: delayed 91 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 06 Jan 2023 00:11:12 PST Received: from mail-40130.protonmail.ch (mail-40130.protonmail.ch [185.70.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C17778E83; Fri, 6 Jan 2023 00:11:12 -0800 (PST) Date: Fri, 06 Jan 2023 08:10:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672992670; x=1673251870; bh=sqU8j2UrbPk5rmGQd+h1CDYMuTAr/lhJo2M2lNImIGM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=f8Dr1UFPhq/rgZRIl7fL1A0hJ6eNFloIthMr8qp7J8LNgwtOfYdsRaVt3G71gB5GD thxEQAEo0ARYltYw0qIUdppUIayWhx8LRekrxcjMvpUhnUe6cdW4Ef6IoDvtRXSQG/ E88KT25yJ3Faz4u11250aFhAux6Ed2gcF1wTgIqGwFgLDmGxBL8aESfxqll3p4YeGw Rkf91EdaOHTy+Hd2T5qIDkCxboH2cya61sbknSRyRPdNX4VyeSImTdIHaHHk8gR/dl ad/iWJabHx7iWfjAceggTpLYdgVfN8mhZ2N/lm78APlT++KyBCCBeG8rir0pfXBRRK SjqG3Fvosa7sQ== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Stanislav Jakubek , Miquel Raynal , Jagan Teki , Chris Morgan , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v5 5/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED Message-ID: <20230106080937.256340-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106080644.255940-1-linmengbo0689@protonmail.com> References: <20230106080644.255940-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS 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 FL8005A uses Qualcomm GPIO flash LEDs which is compatible with SGM3140 Flash LED driver. Add it to the device tree. Signed-off-by: Lin, Meng-Bo Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm6= 4/boot/dts/qcom/msm8916-gplus-fl8005a.dts index 2cac99e3e52c..d0759c341bae 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -21,6 +21,22 @@ chosen { =09=09stdout-path =3D "serial0"; =09}; =20 +=09flash-led-controller { +=09=09/* Actually qcom,leds-gpio-flash */ +=09=09compatible =3D "sgmicro,sgm3140"; +=09=09enable-gpios =3D <&msmgpio 31 GPIO_ACTIVE_HIGH>; +=09=09flash-gpios =3D <&msmgpio 32 GPIO_ACTIVE_HIGH>; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&camera_flash_default>; + +=09=09flash_led: led { +=09=09=09function =3D LED_FUNCTION_FLASH; +=09=09=09color =3D ; +=09=09=09flash-max-timeout-us =3D <250000>; +=09=09}; +=09}; + =09gpio-keys { =09=09compatible =3D "gpio-keys"; =20 @@ -239,6 +255,14 @@ l18 { }; =20 &msmgpio { +=09camera_flash_default: camera-flash-default-state { +=09=09pins =3D "gpio31", "gpio32"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + =09gpio_keys_default: gpio-keys-default-state { =09=09pins =3D "gpio107"; =09=09function =3D "gpio"; --=20 2.30.2