X-Received: by 2002:a17:90a:120f:b0:1b8:7ba9:e48f with SMTP id f15-20020a17090a120f00b001b87ba9e48fmr2479097pja.59.1645509602468; Mon, 21 Feb 2022 22:00:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645509602; cv=none; d=google.com; s=arc-20160816; b=elrrKb1VbNcoFunlyXEirLVv1ux8EFQPrcmtq5faeRLsElqxhVMVB2k3raBvWYmuDF jGf7BIvbyfwbSESoo0i62gTxDKjyQZ8gjg+l9QLaL2FaEFZ2bG2G4kDC3rPLZT9Gcpkz kyoDmftDz+jYK4vdEYDDQ3LL+sZ8UaebBq5EAit0VGVoRlUAHmj9/zDvlU6BpkcQeGGT 7x9foEvoY4iwIepXgZvr2HEqS3iT9AJjtoXKWoRCG45YuCnSRAW8X8WGS+WrAI3tL1OH EBJRtuuzKDj1QS8aEy12ylG4JTf/MFb1KW+mAECch2UwS4HVl1p9b1/eQ1qoYJ768e7H k3OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=dyGCqEWolvHRVduWhviEQyQaBM1jwneMhkEEEZgRg3s=; b=jYqrCqKDKKkhEJvOfWYFJP89FnfVAHIswWcO1siukY2tiF/vq696HM5Y4zt9KN2S0v +jm+mKaF48sv0cn2BiKVh44UcJLywXZgYPHbhT0imXKT9lO/IG4J6mIPN6rjoAI3KtUr 8yJ1OeNDQ1aBEfYNqKplMWbfEG+BHKJCenbKYMlxo8Il3Ly9GqMrX6pMdi/i/RHHfZKs 8Dr5f8huiTmnJrW2LxRPmrVUrWYXYz0/aiFXScituXoVdznNKSKpmAYT36S9QA3SeqGN 0wJDX7W60b404g3Crrxz78MRjxq3EBiI7Kjx4Qn8rfrOMybeYN5fHEAYfGp40h3LuHIW FJeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Q+H4CnPY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id ms7-20020a17090b234700b001b90cccfa50si1669914pjb.0.2022.02.21.22.00.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 22:00:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=Q+H4CnPY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D28F185655; Mon, 21 Feb 2022 21:31:00 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbiBVFa5 (ORCPT + 99 others); Tue, 22 Feb 2022 00:30:57 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbiBVFa3 (ORCPT ); Tue, 22 Feb 2022 00:30:29 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23DCE7084E; Mon, 21 Feb 2022 21:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645507804; x=1677043804; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=dyGCqEWolvHRVduWhviEQyQaBM1jwneMhkEEEZgRg3s=; b=Q+H4CnPYpO3k1/j0tItfEbW4nOwV5EPuHE54o7wM9187M6bxH8SbB3Gw BWGXoc0uibP8yorS/Rs09qbF4BGl32SW3wJhq+hYzpfgF9lJFqunlGOPq n+HkMlKSYe8M47eqiHqXlCLW9YfiyTs5zzLYbB9YqvponjhgANzO1+Fp0 A=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 21 Feb 2022 20:45:56 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 20:45:55 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Mon, 21 Feb 2022 20:45:55 -0800 Received: from [10.216.54.2] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Mon, 21 Feb 2022 20:45:51 -0800 Subject: Re: [PATCH V3 2/4] leds: Add pm8350c support to Qualcomm LPG driver To: Bjorn Andersson CC: Pavel Machek , Rob Herring , Andy Gross , , , , , , , satya priya References: <1635507893-25490-1-git-send-email-quic_c_skakit@quicinc.com> <1635507893-25490-3-git-send-email-quic_c_skakit@quicinc.com> From: "Satya Priya Kakitapalli (Temp)" Message-ID: Date: Tue, 22 Feb 2022 10:15:47 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 2/18/2022 3:56 AM, Bjorn Andersson wrote: > On Fri 29 Oct 04:44 PDT 2021, Satya Priya wrote: > >> From: satya priya >> >> Add pm8350c compatible and lpg_data to the driver. >> >> Signed-off-by: satya priya > Sorry for the OCD, but I would really like for you to capitalize 's' and > 'p' in your name. I had corrected this in the v3-resend version. https://patchwork.kernel.org/project/linux-arm-msm/patch/1637917920-22041-3-git-send-email-quic_c_skakit@quicinc.com/ > >> Reviewed-by: Matthias Kaehlcke >> --- >> Changes in V2: >> - Added const for lpg_channel_data[] struct. >> >> Changes in V3: >> - Correct the num_channels and add respective base addresses. >> >> drivers/leds/rgb/leds-qcom-lpg.c | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c >> index 45ef4ec..ad99a9b 100644 >> --- a/drivers/leds/rgb/leds-qcom-lpg.c >> +++ b/drivers/leds/rgb/leds-qcom-lpg.c >> @@ -1275,9 +1275,22 @@ static const struct lpg_data pm8150l_lpg_data = { >> }, >> }; >> >> +static const struct lpg_data pm8350c_pwm_data = { >> + .pwm_9bit_mask = BIT(2), > As you might have seen in v12 I dropped pwm_9bit_mask. Yeah, I'll drop this. >> + > Afaict there's a tri-channel current sink in pm8350c as well, so you > should have: > > .triled_base = 0xef00, > > And then associated .triled_mask in the relevant channels. Okay, I'll add them. > Regards, > Bjorn > >> + .num_channels = 4, >> + .channels = (const struct lpg_channel_data[]) { >> + { .base = 0xe800 }, >> + { .base = 0xe900 }, >> + { .base = 0xea00 }, >> + { .base = 0xeb00 }, >> + }, >> +}; >> + >> static const struct of_device_id lpg_of_table[] = { >> { .compatible = "qcom,pm8150b-lpg", .data = &pm8150b_lpg_data }, >> { .compatible = "qcom,pm8150l-lpg", .data = &pm8150l_lpg_data }, >> + { .compatible = "qcom,pm8350c-pwm", .data = &pm8350c_pwm_data }, >> { .compatible = "qcom,pm8916-pwm", .data = &pm8916_pwm_data }, >> { .compatible = "qcom,pm8941-lpg", .data = &pm8941_lpg_data }, >> { .compatible = "qcom,pm8994-lpg", .data = &pm8994_lpg_data }, >> -- >> 2.7.4 >>