Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp344663rdb; Thu, 5 Oct 2023 07:37:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC7IKhblna0EijneMmSkY7CxKIuXePdIRM9kaahZokyasTQahg/f012xyDL9LQpIK+54NW X-Received: by 2002:a17:90a:e144:b0:273:efde:2ea4 with SMTP id ez4-20020a17090ae14400b00273efde2ea4mr4953586pjb.42.1696516642379; Thu, 05 Oct 2023 07:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516642; cv=none; d=google.com; s=arc-20160816; b=E6SBjE41PvXI3oVOYdQsg74aFPOkgFGi/dskhaOx6rWeEJb/G4VkoDT6haR2o3SGXp 5TxKXSB5FkqKmOf4PFxnxbq/H7KhtZ0SuJLG0l5FZcNJ59bW/sE2bspELGBU8od/OPNT 0TURhEUJyNUQUbh6pEQLjFvC3Z+gLb0djIAMREVgWe73pyIBff0G6ELUaF3uY1f1kaT6 dQf5jKKQfS62wci4z6ZXSialT+RP+KY6gAN8apHMifgiXSUfDlBDSLy0MrwmWPSvXbMZ ZN5bTfAJoQAxOD7W+j7w4a5RTvVhRXKPUHuGDqWsFB85HoHAzswdhlRnv1vW4bEzrBUv 90Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W9CWs7WeJlYULfUlbJDBPRbZ+atvxPoGp3eUhTUS9cc=; fh=WvM2hNDobc5+pZ6h+hOO8Px1Qf9G9eveGP+BMp3CxJE=; b=oh//Yw05yqRs8yIccD0zMS5+Qx33XoxdN20vBVoZLbQ4Spla+7dUY0Zsr4zStjzeaP zCujj2ICaumtx6xTE+cazI9Q9mOlj7NGn3orHDSRdh3XA5WhdvE+4X/k+zcuAy/mv4UR wmp8H5pvCP9Tjmy/Mz2H5WWJEaC9qiEfdILEKvssV91Sln/4UIWldjxt5C/qhWQPT9Kc 4jfLgc3IGovTerdQYIGRwANgxHzkpeaX/txbZK+dfSMEfr/qJaT49297LH89W9VJpJs6 VnYiyzKTj4XStNXIq3ozYJCGjU1RDBNcnroai+2AfSSv1jLBiuPb/8333LSNsa7/SEII XSUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUYID7x6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u4-20020a17090a6a8400b00277624ffa82si3904418pjj.86.2023.10.05.07.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:37:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUYID7x6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0F6E585C4D5C; Thu, 5 Oct 2023 07:37:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236656AbjJEOgp (ORCPT + 99 others); Thu, 5 Oct 2023 10:36:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236132AbjJEOej (ORCPT ); Thu, 5 Oct 2023 10:34:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC71525F; Thu, 5 Oct 2023 06:52:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99550C4AF75; Thu, 5 Oct 2023 13:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696513532; bh=vqu+fFoHGpohKG1mWSUhsvBpzumWkJeROSRoIa9+DVo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kUYID7x6le67JFoKgGTzvbOTjyJO9NDAdrJ3AEs17CFNCTmHQB3iiehmDUoGRvI16 RTQK/rSA7fykjZtx5smqscln90NaNT25zQ9duynurs9ANBT1K8US5Tu+y2xCEymowP pfOsKPNNJ38+ogNc3HROV3NlPWkeHwb4NOYgcnKpmXLBM7zsS+6Y3ykVnNibdrogC/ YLJ1XeiljTIxcifJNOLabr9iZ+pQZdGzKl/yptPIb/7yS77O8RR/3KLj3ki3Acv3aJ Y39WVOS2TYW5MsSoApmvY+QPjLAUQ1YA5u1nPxPs+BlkipZ8paTR1ejwC7Qyu4y5rw KsSnKTuLL0aVw== Date: Thu, 5 Oct 2023 14:45:25 +0100 From: Lee Jones To: Anjelique Melendez Cc: pavel@ucw.cz, thierry.reding@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, luca.weiss@fairphone.com, konrad.dybcio@linaro.org, u.kleine-koenig@pengutronix.de, quic_subbaram@quicinc.com, quic_gurus@quicinc.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org, kernel@quicinc.com Subject: Re: [PATCH v5 7/7] leds: rgb: Update PM8350C lpg_data to support two-nvmem PPG Scheme Message-ID: <20231005134525.GG681678@google.com> References: <20230929003901.15086-1-quic_amelende@quicinc.com> <20230929003901.15086-8-quic_amelende@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230929003901.15086-8-quic_amelende@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:37:07 -0700 (PDT) On Thu, 28 Sep 2023, Anjelique Melendez wrote: > Update the pm8350c lpg_data struct so that pm8350c devices are treated as > PWM devices that support two-nvmem PPG scheme. > > Signed-off-by: Anjelique Melendez > --- > drivers/leds/rgb/leds-qcom-lpg.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Reviewed-by: Lee Jones > diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c > index 910c7cf740cc..8962ea13df29 100644 > --- a/drivers/leds/rgb/leds-qcom-lpg.c > +++ b/drivers/leds/rgb/leds-qcom-lpg.c > @@ -1800,11 +1800,13 @@ static const struct lpg_data pm8150l_lpg_data = { > static const struct lpg_data pm8350c_pwm_data = { > .triled_base = 0xef00, > > + .lut_size = 122, > + > .num_channels = 4, > .channels = (const struct lpg_channel_data[]) { > - { .base = 0xe800, .triled_mask = BIT(7) }, > - { .base = 0xe900, .triled_mask = BIT(6) }, > - { .base = 0xea00, .triled_mask = BIT(5) }, > + { .base = 0xe800, .triled_mask = BIT(7), .sdam_offset = 0x48 }, > + { .base = 0xe900, .triled_mask = BIT(6), .sdam_offset = 0x56 }, > + { .base = 0xea00, .triled_mask = BIT(5), .sdam_offset = 0x64 }, > { .base = 0xeb00 }, > }, > }; > -- > 2.41.0 > -- Lee Jones [李琼斯]