Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3557888rwb; Sun, 20 Nov 2022 17:00:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4mgAdV1JRSh0Xa0l2Wukr0AF4OFJ0kINKuOLJaivVwivaheytdaWwxwcxsZHgl4iGLXBhn X-Received: by 2002:a05:6402:3644:b0:45f:c7f2:297d with SMTP id em4-20020a056402364400b0045fc7f2297dmr14382800edb.266.1668992442929; Sun, 20 Nov 2022 17:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668992442; cv=none; d=google.com; s=arc-20160816; b=dD8ADmAhAq/STqPMA6VindneHmn5d76mOszVQAVV7tJhTU86pUaFjvavonfYZzZEEH q9SPSoyAE3Zwa9Mi6stfLIpuf2hDfnVO9ybYO3cSwZ9higNLaoNOs+PDy7GnAOHlVgDV ADYN6uOkybO8EvDobFgQCQx6oNFL+PJubB+fQuXWVBq3/LzSyc54utA2mjBU52iBfzXT i+/C7j9iPA+jtS+YLFBanPfaHwq+5xppdLL07o70E6hkcnjbIpv6cIaEJYYjV1IXR3g+ QbmMUMvFyHR7pi7DtQS3yzh8G6Sl9x3Y5BhVt6FMgUIbaFBdZhJJjZtLEg7Y0Zo/IndZ H5TQ== 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=rvgqD3kMhIWmN1uoL7kkpUV34ll+GvDevC8V4e/ofec=; b=MqVc5fW/8vWcQb3ZV18ilfQ5idfCeSgoKjHzwJUId0NNCv4XgI1A1LNFwZ+yy1hQaN axlRuKAq4LlXRr3ZhRHSicy3lNtV9lZ5SZ84nB36Ausvisc2c+cYBu+v9i7zj/zqogYp OSAXrRFvQVvk4u3MNi3xQBGm/4OJDJYq6CWWHNCZw3TDfPRSQ0jp5zwft5ltr/4E+3Jr S5wxm4d4gi5FOkn9mF5BtRT5/i+5QTKAWitUaOZmoM9H+ZoFgE7/Ip9CrKR230dOoLb0 K1F0uqleKI79SZbi/w2lkNhm/iLSBlcQVRR0MHuNbaTp/6Lyy4t4wycgIdTcDJ80UCz8 ndPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=sCcoLWQM; 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 sz15-20020a1709078b0f00b0077951929340si7424234ejc.271.2022.11.20.17.00.20; Sun, 20 Nov 2022 17:00:42 -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=sCcoLWQM; 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 S230000AbiKUAxT (ORCPT + 90 others); Sun, 20 Nov 2022 19:53:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbiKUAxP (ORCPT ); Sun, 20 Nov 2022 19:53:15 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CC0A15A27; Sun, 20 Nov 2022 16:53:13 -0800 (PST) Date: Mon, 21 Nov 2022 00:53:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668991992; x=1669251192; bh=rvgqD3kMhIWmN1uoL7kkpUV34ll+GvDevC8V4e/ofec=; 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=sCcoLWQM3EIAdUJxF6zz8wZEf8U79hqNmtyXgl7QI5kUKXmihQlokkgW6U7pCxTjS EQY+PmUPo4uD5LH1nAnVuh0BgR5R+u3A7H/Dzem4eF2YiQ8PbJot40XpqLES6Cr2lU R3BVneoW4kytwzLXkZI1AxV5y/74/Ygfe+kHNb1pLJuOY3x5Uu6x8HR4Ojpypu5ai/ Asa27fNqTkIBG/PsasMd2Wv2tOOrqTd/Pl8T17FZpETC9IpYTNC01Pu24tbxk9tCad 7G8sOCAaIut9W0H2jsOag2d69EiYphUrNJnQMN/cWjgO6Qd5TZIHOGpQiUPL92d5cG lzLZgARP+ntMw== 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 v2 5/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash LED Message-ID: <20221121005200.4407-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121004813.3883-1-linmengbo0689@protonmail.com> References: <20221121004813.3883-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,SPF_HELO_PASS,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 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 73597f1883aa..bd021802cca6 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