Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp987679rwd; Thu, 18 May 2023 06:38:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MttEPeaCPGivkJsp7dMBPGUA54/JDDybrpzljVZzWivyUK2NT6Q8s5wQcyeB9ShjLSCx0 X-Received: by 2002:a05:6a00:1a56:b0:644:ad29:fd5b with SMTP id h22-20020a056a001a5600b00644ad29fd5bmr5163469pfv.7.1684417109189; Thu, 18 May 2023 06:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684417109; cv=none; d=google.com; s=arc-20160816; b=0joEH+q0YzHWeSM9O7z+osSOJpxwkKNga257NwbzuL5KO37BxyCr9ISGB4ALVHk8zD /w4rf2IOzNcB6jUBMWOT07N/ZQud49eN+M3k5jYvFp0hXfTSpfr31o6X0RYSiNPsdX6r pXirRnAUHCi/xFGWouYww5Lhe4XK8C+uaW4j/MRRs4lKRpdgmnosOVra3cMLP3WEVSaC tTE+WwSPGT9wKedKey+WDfRhheU8xjzr4Db7QTuWGIThh67jnqg19DQS57OTmkE9ykZn LxKOoAt4i1WQVd1eEiAuE9nMNk2vZxsThP9xNjpc2u4ehKdKq7vW8AYmgCHfdXQFIABf Co7g== 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:date:subject:cc:to:from :dkim-signature; bh=jqMwt/DZCklMg+3nHPyvT4HWki93CaLYFSuTlzM7b7k=; b=bglddnvGIcYx+TrdwQF6EFbZxxpzUm5Ua9Sv6sRnqH4hs1O/iK75SCQmAgrWOAbaUo mnTpU54CgYGmPVWxzrWX6MoATlbxN/RcQ9dbDwviaDw6H8YRi/JyE2PRyM0FMGSd5zlz 60SDEdQUujUn/adT/pFBru6qeqO+srf6uJOeAtptMUvgINhny6BbCCG+qbRbQEdGNC+i buElQrZi/x7kM0mWT2/MVPWmIgA4FODJUyq5+g9St4xDK0pnXpIjjU6+75KjJjb+bPOF VE7Sh3TWV5lCAHIwPTc+fOmW5UhGmRr9jqwDK2vOR3Hjd6XotRkLrnfFJuWfSBJoZ1Ud t71A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=NGg1+0sy; 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=dylanvanassche.be Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g26-20020aa79f1a000000b006452ad4ae32si1646284pfr.237.2023.05.18.06.38.14; Thu, 18 May 2023 06:38:29 -0700 (PDT) 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=@dylanvanassche.be header.s=MBO0001 header.b=NGg1+0sy; 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=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231490AbjERNbz (ORCPT + 99 others); Thu, 18 May 2023 09:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231436AbjERNbp (ORCPT ); Thu, 18 May 2023 09:31:45 -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 956D6125; Thu, 18 May 2023 06:31:43 -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 4QMW8r4Wwpz9sls; Thu, 18 May 2023 15:31:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1684416700; 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=jqMwt/DZCklMg+3nHPyvT4HWki93CaLYFSuTlzM7b7k=; b=NGg1+0syX9nn5bw6Mn+b5XiMq22i0EH2SlXY1ivv76hD9CijdpyNbD5qaFUzTEuB9fWhk2 K3S6/e1HL5gjbBcsvzcGKruKLqqgDKRK9BHVL6iRi+R5B89gsoSrzH0aUnWZPKVhP1a18S +OCQRolFyghE5gPm066V+KeWOtkTOp7Ijg+GJwFFiddcdoS3n6m7OhnYFkkhTzH7s+YJz/ BDnP2TOhPSeSmHMZgQui2NarHKvkFhLr1t1RpdNZOYOUT7yJVK4z+FSrJq8gmG1myQRkOo rcywyj9sII1PQJGBXVz3MXyNzqa6071lTdfnlvKp0WBe97VsF8tMWO+8s5x6AA== 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 Subject: [PATCH v3 3/3] arm64: dts: qcom: sdm845-shift-axolotl: enable flash LEDs Date: Thu, 18 May 2023 15:31:13 +0200 Message-Id: <20230518133113.273880-4-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-1-me@dylanvanassche.be> References: <20230518133113.273880-1-me@dylanvanassche.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The SHIFT6mq (axolotl) is an SDM845-based smartphone with 2 flash LEDs. One LED is white, the other one is yellow. Define both LEDs in the DTS so they can be used as flash or torch and enable the flash LED controller to control them in PMI8998. Signed-off-by: Dylan Van Assche Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/sdm845-shift-axolotl.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 0ad891348e0c..1eaff964b202 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -554,6 +554,28 @@ led@5 { }; }; +&pmi8998_flash { + status = "okay"; + + led-0 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <1>; + led-max-microamp = <100000>; + flash-max-microamp = <1100000>; + flash-max-timeout-us = <1280000>; + }; + + led-1 { + function = LED_FUNCTION_FLASH; + color = ; + led-sources = <2>; + led-max-microamp = <100000>; + flash-max-microamp = <1100000>; + flash-max-timeout-us = <1280000>; + }; +}; + &qup_uart9_rx { drive-strength = <2>; bias-pull-up; -- 2.40.1