From patchwork Wed May 17 18:21:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 13245514 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0232DC77B75 for ; Wed, 17 May 2023 18:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjEQSVz (ORCPT ); Wed, 17 May 2023 14:21:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjEQSVx (ORCPT ); Wed, 17 May 2023 14:21:53 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 781475BB3; Wed, 17 May 2023 11:21:51 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4QM1f22KRRz9sps; Wed, 17 May 2023 20:21:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684347706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AKhFIBENbm+x57efQqNUL+MpkzQuf72J2Na/e8+68Qg=; b=Z7rv4tlUYbSR+QiMIboqSZR9DXWdS9bGMZA/lPo1VhoWF4IjKB0I9OJqrPrIQ2xEb8gwIU fLodr9NjkGsGNcaz/GoTl9AaM2uN2QWIo+HMPp/8szQvA+4xozP6J1P2/i/IMTDDFwWDSp eZ/x/PPcjbmDL2NUhWWA44067Q9kmKQV20iIU6jlqSy9FWHKAfjNuOBMLtd5AW+WcEwhs1 SrL5dVKNrsV3Q/rmZC8d9Ee6c0ngt6xcSLKq8ZWpsiHhqqvcPKSXq7ibCi9wAOaDjlB6On TsRYVT2SRXUU66g2nC0DeJRRGCMw3rUDoWR5mHqmbDeR13JD8goEo9vlTeWx2g== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, amartinz@shiftphones.com, Dylan Van Assche Subject: [PATCH 1/2] arm64: dts: qcom: pmi8998: add flash LED Date: Wed, 17 May 2023 20:21:32 +0200 Message-Id: <20230517182133.72590-2-me@dylanvanassche.be> In-Reply-To: <20230517182133.72590-1-me@dylanvanassche.be> References: <20230517182133.72590-1-me@dylanvanassche.be> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Qualcomm PMIC PMI8998 has a 3 channel flash LED driver which is used by many phones for 1 or 2 flash LEDs. Each LED can be used in flash mode or torch mode. Add the flash LED node to PMI8998 DTS. Signed-off-by: Dylan Van Assche --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index ffe587f281d8..89f959353ad5 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -60,6 +60,12 @@ pmi8998_lpg: pwm { status = "disabled"; }; + pmi8998_flash: led-controller@d300 { + compatible = "qcom,spmi-flash-led"; + reg = <0xd300>; + status = "disabled"; + }; + pmi8998_wled: leds@d800 { compatible = "qcom,pmi8998-wled"; reg = <0xd800>, <0xd900>;