Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3837561pxb; Tue, 26 Jan 2021 06:11:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEH0zW8PTG2tDKEwdTSlwQV8oGaSUUQa+F6pfx4mOEASLJsfaip2HnhU3BXwJJQHRKt4YO X-Received: by 2002:a50:9dc9:: with SMTP id l9mr4723939edk.377.1611670279406; Tue, 26 Jan 2021 06:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611670279; cv=none; d=google.com; s=arc-20160816; b=g6qNTFaokl9Zdwc6Ucp3On0mpY4NVbrVc2AluHaZedwv0NU2Szb1JHAD4EOcBXIqga Pf6Vvvsk4f/33x8f/AIF9tmousGBt4Y0UXbGcq/xI00ffVUZpx+sDLEc+b5xFoSJOLec 7qclL2g05h3gpvwxtcejCqrsYJE9EamMZ2fNpeQTUA98e9f4U0xYj5RZ+OvVitVQoFDh 9U1XrBdllm7mrkiWnFeL0qUNZSrCgl9/NRYz46i3a6lx1zYsdnAkDG9SpbEz6YhstQ72 0XtUGsxbBV8i1dS3m0cR5B6UJ5BAgwy8SKMtSuvbNejylo3VM9cn59i6a9E1wC3iB1y6 cndQ== 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=salyD/WHDIurAfXLaRdlHjy/N3gO/EgJ38mXhbWj+8A=; b=krS72sjLgIPL63MO2FZwxrwXdOy9am5Cn/Ivy3j0rn86s8KI46gajiZyp0m+0r2rka 5ABu5IFMT5JGVAA7+kmP6clCfOJVhbfhI/v6SghyVW5Yi4Tfj+YPDCT6obp+KfCvYdpl nbfUhbnWTU252vm6UPIglu8QEmYdPM8FGU2Y93hEyf/HX62crB3DLG7AVQePoyCNi7/N 2Y4ojRZeAvEHiqTusimTlbhJg7FVbzixkk/j4iaDbL5C0R4lDvceS2geY66wWTayIRak MTDpzxZc9Qp/9gpb14h4lVOE7cyBb3Yuk3oAGDJQ08RSWmTLLd3fxBMj61MI5Hza7tCH 0Btw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=q+HTsB7U; 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 k9si7040909ejx.640.2021.01.26.06.10.49; Tue, 26 Jan 2021 06:11:19 -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=q+HTsB7U; 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 S2405734AbhAZOIQ (ORCPT + 99 others); Tue, 26 Jan 2021 09:08:16 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:32768 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405714AbhAZOHu (ORCPT ); Tue, 26 Jan 2021 09:07:50 -0500 Date: Tue, 26 Jan 2021 14:06:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1611670025; bh=salyD/WHDIurAfXLaRdlHjy/N3gO/EgJ38mXhbWj+8A=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=q+HTsB7Uqut7TDSqzeqkeRLfypg5t9zC4sq5LSGRFXYLjJ4ngWqoirWhUky/juxGQ rN7eNCEZGezvPUctVw4/tc5Rbg+bY8AbpHw33S4jL4mdDogThy2JFU+eLWJNfBLAma fJu7BQd7ZQmcn9HjcaXfniqfIEedKnoIcXypjjEw= 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, ~postmarketos/upstreaming@lists.sr.ht, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com Reply-To: =?utf-8?Q?N=C3=ADcolas_F=2E_R=2E_A=2E_Prado?= Subject: [PATCH v2 4/4] ARM: dts: qcom: pm8941: Add nodes for QCOM SPMI Flash LEDs Message-ID: <20210126140240.1517044-5-nfraprado@protonmail.com> In-Reply-To: <20210126140240.1517044-1-nfraprado@protonmail.com> References: <20210126140240.1517044-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 devicetree nodes for the Qualcomm SPMI Flash LEDs present in PM8941. Signed-off-by: N=C3=ADcolas F. R. A. Prado --- Changes in v2: - Moved from hammerhead dts to pm8941 dtsi, as it was this way downstream - Now using values from leds-qcom-spmi-flash.h arch/arm/boot/dts/qcom-pm8941.dtsi | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm= 8941.dtsi index c1f2012d1c8b..89309d3c777c 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -2,6 +2,8 @@ #include #include #include +#include +#include =20 &spmi_bus { =20 @@ -189,5 +191,41 @@ pm8941_5vs2: 5vs2 { =09=09=09=09regulator-initial-mode =3D <1>; =09=09=09}; =09=09}; + +=09=09qcom,spmi-flash@d300 { +=09=09=09status =3D "okay"; + +=09=09=09compatible =3D "qcom,spmi-flash"; +=09=09=09reg =3D <0xd300 0x100>; +=09=09=09flash-boost-supply =3D <&pm8941_5vs1>; +=09=09=09torch-boost-supply =3D <&pm8941_5v>; +=09=09=09pm8941_flash0: led0 { +=09=09=09=09led-sources =3D <0>; +=09=09=09=09function =3D LED_FUNCTION_FLASH; +=09=09=09=09color =3D ; +=09=09=09=09led-max-microamp =3D <200000>; +=09=09=09=09flash-max-microamp =3D <1000000>; +=09=09=09=09flash-max-timeout-us =3D <1280000>; +=09=09=09=09default-state =3D "off"; +=09=09=09=09qcom,clamp-curr =3D <200000>; +=09=09=09=09qcom,headroom =3D ; +=09=09=09=09qcom,startup-dly =3D ; +=09=09=09=09qcom,safety-timer; +=09=09=09}; + +=09=09=09pm8941_flash1: led1 { +=09=09=09=09led-sources =3D <1>; +=09=09=09=09function =3D LED_FUNCTION_FLASH; +=09=09=09=09color =3D ; +=09=09=09=09led-max-microamp =3D <200000>; +=09=09=09=09flash-max-microamp =3D <1000000>; +=09=09=09=09flash-max-timeout-us =3D <1280000>; +=09=09=09=09default-state =3D "off"; +=09=09=09=09qcom,clamp-curr =3D <200000>; +=09=09=09=09qcom,headroom =3D ; +=09=09=09=09qcom,startup-dly =3D ; +=09=09=09=09qcom,safety-timer; +=09=09=09}; +=09=09}; =09}; }; --=20 2.30.0