Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1413105pxb; Fri, 6 Nov 2020 09:02:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3CZdlYuu8T5z/U170kTng/ghwNhuqrw3kDEwruH1oTWDcgHj+s126d6m6JIieI4LcMTEl X-Received: by 2002:a17:906:5618:: with SMTP id f24mr2920649ejq.381.1604682143189; Fri, 06 Nov 2020 09:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604682143; cv=none; d=google.com; s=arc-20160816; b=e2ieWh6Il7ue5S3JDlEqVLXSFixHvos0CM+CWOkMWnhTO/wCe6VK2YZLZD17cPw7oa FOzJ/9PHJ9rQyPKGm+sZTUV+6OfGUdc5r9QiHgrUPeDEY7JtEwbIFFIfE7fkiKmCW0AW 2TresxDzE2U9WoUb2jvKNodSmnriw8g9xDTgKvxTuPMWxXVjv0+OHvSZonXMbAhE/gua Bjf0CbYVTcaEIF+C/CsAHouibAXmU3BpD0R0a11XLRXpYZt0gHNKhxhfonHwVh8AmVAK fUowm8KzRf/Lc0aVrg/yOQYRgmBAYLZ1sPliYFlj3J3KAW6AxWOfaybXteNg4xFrDPCw 6mZw== 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 :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=q97hEjceJ6nbr48yC1m9U9+JpJMDG+nd0Pgn/ZWOkHg=; b=ZwobzqNr4hRSoJjEXlq8yud7E6Ut1EnPRTbYN4o/S0YVv01CzsgCnUPNFvMi8a6YI6 E5TNUIyBqwRc9VQGoECN7tTbm6pxqmdyVEJ95t/4/alcbXrz65a9IqsGjDx9NBXdD7MF 3iCHgHxe2P8gwsmxIQHqK7Vy/3pCA0/GufqtGz4+8sjAVnqDN11v3OtRf90jjJcVTNDP 63hqE1fy+IwzZHvdzN8v+zWcf2x+ML2RYudL/ZypCBzpAQgw8hKtJSpSNUARNbRtCr5B BtAuo0SzTQu1bR3MZM3ARdAj73O0DMtlh5Do1Rp3W9mYcZLmZI6VdleKWMNG8mCjJk8N WKNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=qMeyAQs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v16si1293885ejf.28.2020.11.06.09.01.58; Fri, 06 Nov 2020 09:02:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=qMeyAQs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727742AbgKFQ7h (ORCPT + 99 others); Fri, 6 Nov 2020 11:59:37 -0500 Received: from mail-02.mail-europe.com ([51.89.119.103]:42956 "EHLO mail-02.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbgKFQ7g (ORCPT ); Fri, 6 Nov 2020 11:59:36 -0500 Date: Fri, 06 Nov 2020 16:59:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1604681973; bh=q97hEjceJ6nbr48yC1m9U9+JpJMDG+nd0Pgn/ZWOkHg=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=qMeyAQs3016EjEm8+8afwGko2JDjXVjtutZRDvrkddw6psMsdsBhnN0kOCCl1hzD2 FcfrYpWSOJKbyjwZszVJIO46QphTJd0EZe1K1n9YzW3Bht7N3Mtyvxoe4ITAL/D9SP R8FECoADFH5JEnebigG6XUmU9JUO044m29p7SAe4= To: Pavel Machek , Dan Murphy , Bjorn Andersson , Andy Gross , Rob Herring From: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Cc: linux-leds@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Brian Masney , Luca Weiss , Russell King , Georgi Djakov , linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Reply-To: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Subject: [RFC PATCH 3/3] ARM: dts: qcom: msm8974-hammerhead: Add support for the flash LED Message-ID: <20201106165737.1029106-4-nfraprado@protonmail.com> In-Reply-To: <20201106165737.1029106-1-nfraprado@protonmail.com> References: <20201106165737.1029106-1-nfraprado@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the necessary device tree nodes for the flash LED. Signed-off-by: N=C3=ADcolas F. R. A. Prado --- .../qcom-msm8974-lge-nexus5-hammerhead.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts b/arc= h/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts index 32b474bfeec3..6aa93c236178 100644 --- a/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +++ b/arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts @@ -730,4 +730,60 @@ otg { =09=09=09}; =09=09}; =09}; +=09pm8941@1 { +=09=09qcom,leds@d300 { +=09=09=09status =3D "ok"; + +=09=09=09compatible =3D "qcom,leds-qpnp"; +=09=09=09reg =3D <0xd300 0x100>; +=09=09=09label =3D "flash"; +=09=09=09flash-boost-supply =3D <&pm8941_5vs1>; +=09=09=09torch-boost-supply =3D <&pm8941_5v>; +=09=09=09pm8941_flash0: qcom,flash_0 { +=09=09=09=09qcom,max-current =3D <1000>; +=09=09=09=09qcom,default-state =3D "off"; +=09=09=09=09qcom,headroom =3D <3>; +=09=09=09=09qcom,duration =3D <1280>; +=09=09=09=09qcom,clamp-curr =3D <200>; +=09=09=09=09qcom,startup-dly =3D <3>; +=09=09=09=09qcom,safety-timer; +=09=09=09=09label =3D "flash"; +=09=09=09=09linux,default-trigger =3D +=09=09=09=09=09"flash0_trigger"; +=09=09=09=09qcom,id =3D <1>; +=09=09=09=09linux,name =3D "led:flash_0"; +=09=09=09=09qcom,current =3D <620>; +=09=09=09}; + +=09=09=09pm8941_flash1: qcom,flash_1 { +=09=09=09=09qcom,max-current =3D <1000>; +=09=09=09=09qcom,default-state =3D "off"; +=09=09=09=09qcom,headroom =3D <3>; +=09=09=09=09qcom,duration =3D <1280>; +=09=09=09=09qcom,clamp-curr =3D <200>; +=09=09=09=09qcom,startup-dly =3D <3>; +=09=09=09=09qcom,safety-timer; +=09=09=09=09linux,default-trigger =3D +=09=09=09=09=09"flash1_trigger"; +=09=09=09=09label =3D "flash"; +=09=09=09=09qcom,id =3D <2>; +=09=09=09=09linux,name =3D "led:flash_1"; +=09=09=09=09qcom,current =3D <620>; +=09=09=09}; + +=09=09=09pm8941_torch: qcom,flash_torch { +=09=09=09=09qcom,max-current =3D <200>; +=09=09=09=09qcom,default-state =3D "off"; +=09=09=09=09qcom,headroom =3D <0>; +=09=09=09=09qcom,startup-dly =3D <1>; +=09=09=09=09linux,default-trigger =3D +=09=09=09=09=09"torch_trigger"; +=09=09=09=09label =3D "flash"; +=09=09=09=09qcom,id =3D <2>; +=09=09=09=09linux,name =3D "led:flash_torch"; +=09=09=09=09qcom,current =3D <90>; +=09=09=09=09qcom,torch-enable; +=09=09=09}; +=09=09}; +=09}; }; --=20 2.29.2