Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14289133rwb; Sun, 27 Nov 2022 21:45:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IrKtcWesVQCkay/CpPXEhE5qss5/mCkoqiW5ZXjlBX49sk05MHNNAbMWxtXYgBH36Vgof X-Received: by 2002:a63:389:0:b0:477:7f68:bbbc with SMTP id 131-20020a630389000000b004777f68bbbcmr21854562pgd.279.1669614322190; Sun, 27 Nov 2022 21:45:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669614322; cv=none; d=google.com; s=arc-20160816; b=jSLNZHRjRgcOnvfzDI0VpCGTMoXT36/VkgE0rj34eqRdhBNPXVHhEMygcZg3+WIe7N qL6k240ahaL5nbVjJBcOqyK/ley4i3Y0/wBhF3EjUepB0TbjQ9cYN7mUMUBrPcnk5asc mspv40SyqcQ5oJsotKRDCihnuBtKI4FMote0qMBUcDe6VwDVQGGAbicsD5UGdz/UHDbE WnWnDMS4Oq4SP9FNftxTrroyu0KmD2tCMD3uGlMSxdqWAN2Md9ZejPQaw3XYSoRif2ch Jiel9L0fm3o1RDgmW8z4VjR9DE54JerZ1hJNCji3CJcHSF2lkVg7qBE0JNvMeiLZLE3C XhjQ== 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:message-id:subject:cc:from:to:dkim-signature:date; bh=JwK03JDQ2QUDODMsSbuKaZkjunGgFXdzH7zifC5qDo4=; b=Sb8p3lparhuOlO5z9xwh9D2dtDqtIEukAW2KVOKrRnwAk7EauEFT8jiyJgA+AHpINB qWxgPBbBpR0XmjvvINanxOPHlchCmQBzB3CS02B7mGIqZBoc/68YMDYiY8U0bkKNw6Lk aYw0YOaJfjssRJcQRABBHCy750mOqLOA+kDm4IDBNY7EWArLavsb5aGX7Lgm1+Y9i/CY pjNTbVctt+g8GRd+XEJokXqJSU4OJ8CDJyJV2qaXSXjEU64jgRZEUxPTTz0kIAprCZH1 ui+R49dklYEdmLFR8oNQqw1FiMnVE5PnBd/DTZQoFNrDyUrFm/Eq6bs4lu95ym+ht8LX z57Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="KDK3P/gy"; 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 p5-20020a170902bd0500b0017ef8bf8a91si9127163pls.439.2022.11.27.21.45.11; Sun, 27 Nov 2022 21:45:22 -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="KDK3P/gy"; 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 S229580AbiK1FQn (ORCPT + 85 others); Mon, 28 Nov 2022 00:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiK1FQk (ORCPT ); Mon, 28 Nov 2022 00:16:40 -0500 Received: from mail-40138.protonmail.ch (mail-40138.protonmail.ch [185.70.40.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C10913D0D for ; Sun, 27 Nov 2022 21:16:39 -0800 (PST) Date: Mon, 28 Nov 2022 05:16:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669612597; x=1669871797; bh=JwK03JDQ2QUDODMsSbuKaZkjunGgFXdzH7zifC5qDo4=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=KDK3P/gyr5LcYWheFBsd6Q4fiAWunLNP052PMkhDV/ea2BRQZPkeNJ1zlnI7N0ro9 M6JYMQKO7JU7j8miz4Wc5npzkaMlowVPMjWTpE/9at3BO+fdppyrJaLkMGV6hyu+o2 Pn1/x8hPYKdzP1XRMQQuv0w2b5nBHnvL6sCwdKepZu+SfiQWph7kCFhxzKtGMO4r27 b5qXSEWRLkP5w5Ki4m4h8uu1GNBVd2BgbdBWNEbYS3p1xUrItx/OCsYu2os9dpLf4n Y49WKWZflr8nMrsd/FAqBg3OZai2VeqCbgEVOg5l8ALFhDTv5EoKfqOZ5/6nthpl4e AYFUGVNujrpOQ== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH] arm64: dts: qcom: msm8916-wingtech-wt88047: Add flash LED Message-ID: <20221128051512.125148-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 WT88047 uses OCP 8110 Flash LED driver. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../dts/qcom/msm8916-wingtech-wt88047.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts b/arch/a= rm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts index 166bed05996f..a87be1d95b14 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt88047.dts @@ -23,6 +23,20 @@ chosen { =09=09stdout-path =3D "serial0"; =09}; =20 +=09flash-led-controller { +=09=09compatible =3D "ocs,ocp8110"; +=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}; +=09}; + =09gpio-keys { =09=09compatible =3D "gpio-keys"; =20 @@ -274,6 +288,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.36.3