Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1073561rwd; Thu, 18 May 2023 07:38:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FBcLqOZsHJZZzGysGUMWjtGPHNi+XYB/FEkwDQsLAENOQ+vi5tEGe6P2ULyxUhlJEVQnp X-Received: by 2002:a17:90b:3713:b0:250:1905:ae78 with SMTP id mg19-20020a17090b371300b002501905ae78mr2892128pjb.15.1684420726926; Thu, 18 May 2023 07:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684420726; cv=none; d=google.com; s=arc-20160816; b=fq8FvTLX6rAbV5NpD+RZMdqhHsZ/Lle0Mr9RqLYyUoHn7F2TVw/Dsz/4nFdIMhE+Ah 0Gn4TG/BVqEDLWrMUNgud/IMJkUrr5LvAym3FptrpLgcbuERWw43qPsqRUVzyhoS1qTs ZA0wGwehK3EHykhxw18qf02r3lPHF2kwUpMFBsXrw1g8nH94qWFGN0pn8rer25F418k3 rjvOybZ5eKwaHmeUJy9eDlIKIpxO0HKW73lioYMNskGqx5QAhl+I6OrZOgN5KvxShB2a JTxJ9fOq6fSuK0sH0a59BjWuX/Gjcyzp0U/HXIdGmd7uDyGM1DoioGqNjSaUPwtO7tPs UPSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=azqpCVnd/614+AfKRHDl6hN6ez5a51IoobwFr9W5qBQ=; b=mC86lo1ZGVRpvjc3LZ8w+wc1mA2/iBn3Td8S6xiTmYdGgOU9awdv8jQ3BYfWkfoLvo Kabcf5kod0fFRUPoJx34dRvpRTntn6h2nTFLB13dDuDJN+OWuUXdUPI6/IdN53fPCyrE AKyGAgyQE1DF1EYZ1l0FjwalBsBA0t4Ln6j/y1gv1PJnN+8P9OKak9Jp5gHYIGs4oGCl r3/dVT8LdMlybiwyInS2XQz391nPHxJylAqhHtsHU27nt4ZqUQRMT3BXgYnYFxqP22jJ AJbtCjzh21oAEQUit61o46vj+e9/HkWl70iUA4bc/I+NVYKQgJyKfiEgaTZCDfr440Xd T21A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h+GRLvpV; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nh16-20020a17090b365000b00250a2c9a793si1722784pjb.152.2023.05.18.07.38.32; Thu, 18 May 2023 07:38:46 -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=@linaro.org header.s=google header.b=h+GRLvpV; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231156AbjEROG3 (ORCPT + 99 others); Thu, 18 May 2023 10:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbjEROG1 (ORCPT ); Thu, 18 May 2023 10:06:27 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4131CE51 for ; Thu, 18 May 2023 07:06:25 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-307d58b3efbso1397987f8f.0 for ; Thu, 18 May 2023 07:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684418784; x=1687010784; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=azqpCVnd/614+AfKRHDl6hN6ez5a51IoobwFr9W5qBQ=; b=h+GRLvpVsV6qF+yhQyC+9b89tOnb+IO73WPsf/PENnlj/jBn9IHDnS3KG2cpxTAoSi ix13lFUJ/6yah6rp5/iuHqJzworFHDCDRWlmVTJfPoIyi/b8ZQWsq7QGGwXxS3MgKR5b lxVSwmnxQIbRUscKxLYp1u/pdm+ggnBOTSW6oFHFM6nnLsAoAL8a3GI8E3kjQK+xlHIo eNomgcLsFD3Byhthgx2JOBp3d81/Qf2/lXHfkszJkGuHG0EovhpGJeXYXJ16T8GiKbaF JTwccEgIFv27bd9bxEelXasc/qEmPjALXS/fhVMT625offvc0Gb7VwOivbAqiwudCXRu 7iYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684418784; x=1687010784; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=azqpCVnd/614+AfKRHDl6hN6ez5a51IoobwFr9W5qBQ=; b=aAb8WH3cowNMjvmHEBwy76tBYP43hLsmoLjJuhU+yhs6i+iysMvfcVLhiSRm1VWE7M zmBXhfOJEILh0z1WupMcJRrpV8SCTAHS+nGfxTgjY4af1tvlJzI1mH7/OQ4INrMnyWn8 k0C/Gl7bQHrFYBXwxADmJSI8FI8ujVHD22sax7BOep34a3vkBa9j5pXiwGSvjmfjinXp lGxAo8fTyGK2f73e9CIcyGn582Ifap1ga2d/TiBEadXP7+5zxd2CVf0mozhT079KeyWe odensoHtDxyXB3EIzhz47KEffD386EM140lQP0/9dRqEGZEHlkMNwq5ruZLLjTgzoX8n jGoQ== X-Gm-Message-State: AC+VfDxSK6+xOwb8TXjJ7iY+wDvx3jAEnwwb0cPVS0Ho09LCinDnH30z JR1frp3c8T0LC4aBogNVM4izCA== X-Received: by 2002:a05:6000:1245:b0:2ef:b19f:b24c with SMTP id j5-20020a056000124500b002efb19fb24cmr2059445wrx.0.1684418783660; Thu, 18 May 2023 07:06:23 -0700 (PDT) Received: from localhost (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id n16-20020a1c7210000000b003f19b3d89e9sm5389587wmc.33.2023.05.18.07.06.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 May 2023 07:06:23 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 18 May 2023 15:06:22 +0100 Message-Id: Cc: , , , , <~postmarketos/upstreaming@lists.sr.ht>, , Subject: Re: [PATCH v3 3/3] arm64: dts: qcom: sdm845-shift-axolotl: enable flash LEDs From: "Caleb Connolly" To: "Dylan Van Assche" , , , , , , , , , X-Mailer: aerc 0.15.1 References: <20230518133113.273880-1-me@dylanvanassche.be> <20230518133113.273880-4-me@dylanvanassche.be> In-Reply-To: <20230518133113.273880-4-me@dylanvanassche.be> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Thu May 18, 2023 at 2:31 PM BST, Dylan Van Assche wrote: > 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 Reviewed-by: Caleb Connolly // Caleb (they/them) > --- > .../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/arm= 64/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 { > }; > }; > =20 > +&pmi8998_flash { > + status =3D "okay"; > + > + led-0 { > + function =3D LED_FUNCTION_FLASH; > + color =3D ; > + led-sources =3D <1>; > + led-max-microamp =3D <100000>; > + flash-max-microamp =3D <1100000>; > + flash-max-timeout-us =3D <1280000>; > + }; > + > + led-1 { > + function =3D LED_FUNCTION_FLASH; > + color =3D ; > + led-sources =3D <2>; > + led-max-microamp =3D <100000>; > + flash-max-microamp =3D <1100000>; > + flash-max-timeout-us =3D <1280000>; > + }; > +}; > + > &qup_uart9_rx { > drive-strength =3D <2>; > bias-pull-up;