Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2285012rwb; Sat, 19 Nov 2022 12:39:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xrbyESxcMgu6zRb+QGkgLUehfhQ/PjV4KjfOa3xv3hseBnkd3I1CkLvb25BnZjA4HXaP7 X-Received: by 2002:a17:902:efcf:b0:186:9cce:c59 with SMTP id ja15-20020a170902efcf00b001869cce0c59mr3261917plb.120.1668890389900; Sat, 19 Nov 2022 12:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668890389; cv=none; d=google.com; s=arc-20160816; b=z0C+znkVAg2DbQqkLuyFvcHgsLZJ2zbgTaPXYs4Dsanc1ZLzktk3kX805C8oqHzqIk w2wTXwdhbM2kNb3Yexm3+dI0f+tdNhlZ6oU5fbyezHkn9W2WfnzJFJVcTMLZWKR27M7l yrHCLlw1omZ/uv/uN8ZYuL9qu+lOf7lLII6g0WLFtbyqOVkgktBs3o95XSQ1K7ufLAT9 QPFf28HUHgL2olrGRE9oQPWc+m0lcRmqtpEvAnkUneAA3HqnCM193SmEHg+wIz3E2aRq wPxxTO7Z6rvtWLoJeqs2ww8Kad1n/o0NhkxDYfD/wVoM5u0pH1puXwTbT4jUOd85uiCM PkyA== 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=Cr7EUz5Vqud7rH2savtbBMVEUMdI5xkdlff6aAmnq5E=; b=Jp5SvukqRZU1fVXt3Abyf6BRAugbLRLmlQrwEKYAO9NVV2t4hF/aMX93F+pRI9Jccr alzeHDEo2RnvIKPI8pW9vekBcd5vb7hdIn49Y8DNdIcC05uXJXPdifzU97Fmhk1W2byE ImqNSz2i/+CADcdd/WdP6o/hYE7Le5k7+zhKf7Shb95br5hY4Dc08t4AA19QGMCVenQO PuxVnsNWgTWi5y63q3P7RzgqBGnzw/x5P49Fsz3s1NgdzCLOgHjN42sxS6g4bCSXys9a SP/5RxwaDC+6e8g23nft8aifBXlEi6RAw1BW0Pl3zOhvLC4AZBj2LoDkoLA9r8Cmuu9t DrXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=HfroQORC; 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 ij30-20020a170902ab5e00b00183f6ff534dsi6391724plb.535.2022.11.19.12.39.38; Sat, 19 Nov 2022 12:39:49 -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=HfroQORC; 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 S235103AbiKSU2o (ORCPT + 90 others); Sat, 19 Nov 2022 15:28:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234139AbiKSU2h (ORCPT ); Sat, 19 Nov 2022 15:28:37 -0500 Received: from mail-40138.protonmail.ch (mail-40138.protonmail.ch [185.70.40.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF898B1F6 for ; Sat, 19 Nov 2022 12:28:28 -0800 (PST) Date: Sat, 19 Nov 2022 20:28:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668889706; x=1669148906; bh=Cr7EUz5Vqud7rH2savtbBMVEUMdI5xkdlff6aAmnq5E=; 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=HfroQORC2rhpNrBg9lVP+MZq9Wn5C92HtiuAnXNDF0srgRDhu4Y4yYvJvHALGIAeh Ry3FLToh+ezSfkRLLh/oG4JNYrWDUTEzsz46J6iiGVzcTVd/60ySKYGHLgOINSQ9XA ADNijN/aqwZj8g/sSGksqsgpIq4R6D12qpE7FVUcH07TlrujbL4FH29jre4bqndwtf cofs3QP00i8DPdm3xYzlYOymYyYTM4Wy8bFTtjz4f+OstnE4w/L7qk0My+t0KJLpIa c0CIXUCvYF/IlwHjfYjUN1pVz9UT+2SQtHO857OKq5Uw21VghABPa52cAHJgmcuH79 DWyjNhaqS0NuA== 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 , Shawn Guo , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 5/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED Message-ID: <20221119202659.93667-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119202316.93142-1-linmengbo0689@protonmail.com> References: <20221119202316.93142-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_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 SGM3140 Flash LED driver. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../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/arm6= 4/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 { =09=09stdout-path =3D "serial0"; =09}; =20 +=09flash-led-controller { +=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 +254,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