From patchwork Thu May 18 13:31:12 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: 683513 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 74459C77B7D for ; Thu, 18 May 2023 13:31:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231273AbjERNbn (ORCPT ); Thu, 18 May 2023 09:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjERNbm (ORCPT ); Thu, 18 May 2023 09:31:42 -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 48BA1125; Thu, 18 May 2023 06:31:41 -0700 (PDT) Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4QMW8p0Rp4z9skj; Thu, 18 May 2023 15:31:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684416698; 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=5Bf15UF6wzUaFEfbGD587CDG2X37fx7pxZEHgq3jWng=; b=foNd2LZCjoFMcjUKq5Qv++XfRw+INCTlE8wsMNR9nSx3Ohfain0+CaSbXajowYz6NkQHBk 9lg9anXsaVe3KtQ78+F+YSpIrmIKDRwD+kgb/DVfLnKJUrvLarWjzsodTc5D1f7oSaPGUW mKGvN32nb99M9HonSsYuOzIBmQv3i13FgjUm/UdKspixxYbMBt2aHaz3B183jLoz2Uyqw3 MMl9QsprxVtLH8S1uhV4Dd3GxwN1JZnV+ui821WnnXJNGWS9/PXtG7aoxKUG9TtZBwN15b iUIK/UaUgS3/wIR5i9Kx0lAGX0OR2aQg5ZvDIYyVJD1H00z1fQrr1CT2dQbKcg== From: Dylan Van Assche To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, pavel@ucw.cz, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, quic_fenglinw@quicinc.com Cc: linux-arm-msm@vger.kernel.org, linux-leds@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 , Krzysztof Kozlowski Subject: [PATCH v3 2/3] arm64: dts: qcom: pmi8998: add flash LED controller Date: Thu, 18 May 2023 15:31:12 +0200 Message-Id: <20230518133113.273880-3-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-1-me@dylanvanassche.be> References: <20230518133113.273880-1-me@dylanvanassche.be> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 controller node to PMI8998 DTS. Signed-off-by: Dylan Van Assche Reviewed-by: Krzysztof Kozlowski --- 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..08e00819b39d 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,pmi8998-flash-led", "qcom,spmi-flash-led"; + reg = <0xd300>; + status = "disabled"; + }; + pmi8998_wled: leds@d800 { compatible = "qcom,pmi8998-wled"; reg = <0xd800>, <0xd900>;