Message ID | 20231130013615.14287-8-quic_amelende@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp92122vqy; Wed, 29 Nov 2023 17:37:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFypy4OMiTmjDWn5AuurBH45QV/ZoW8/w+NQds8D1f+SPxlmKkfmrviDgtaAmrYeUfJw4oj X-Received: by 2002:a05:6358:9191:b0:16b:4041:88a2 with SMTP id j17-20020a056358919100b0016b404188a2mr21734202rwa.10.1701308233432; Wed, 29 Nov 2023 17:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701308233; cv=none; d=google.com; s=arc-20160816; b=S1GaILClA9FmJu+qodIDwxy4EX8/nH1Z6Rivoa93XznLZi07NBzw0jvznrqwXr6/mb JlA4dVnIX2ZlXJ23kyZWcPVbE8z5pAIbt3BNJryQioJqvVJgjr7Dl2ukYU9jpixo84oa yHBvST5f6AMmqd89xCodRZVFB6kSR6lAcG10BrQAtvBEb9Li8YsES2P3jOTgi88Avjw7 msJzYyyIOEllDCyUxgymsWIaV2+01R8xdp5fv8s/idX81HTz5rLyup74K9XjgWiyKjuq ISLn5509BF8U50p1v/knGuclAPCG1l1lFs0grCTRCGm72E1Bu6uchDYlgTlzB+JKiRN8 BDwA== 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=SevpiuSF70TWO4X4hMl+0/RD6Mh8GGRRC2tdgazz2Rg=; fh=taLs6UBhCJ5jXRTuE2Pv7pQVkD+FQ9+sBPG6a4w/cyA=; b=HrvxALoxfefrSCj4xU7krCh3QVnPpUk7quFt7r05NtACR0i1f+fC80p2iVOft3ZVTD pabYti5f8p/bkNEOWL6u1iBX7tQhgIhynaNt+qoe2aUCPbdyD9jp26dJHG+56DTgpLvy T+Vi/TKnRit31jp86BM3fU005We25BSicuFUwwYSNbqJpobVoJze1CHsEVN0ii6KvTGK K0J3d0hnSBwcauF+bDtI9s/ry3oVzTzgta1lS4d1SkaOmD76Lwy1Fo7Eyez8o7K0rcUJ XeEcOzDrw0VkRsvwIxnKonHrYhpGU81ajGtBtCw7HhwixNUCh3/At+NW33xHUvJporRO HsWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=msLkyLrg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bh3-20020a056a02020300b005bd42f6085fsi160183pgb.344.2023.11.29.17.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 17:37:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=msLkyLrg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 31C7D802B053; Wed, 29 Nov 2023 17:37:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344080AbjK3Bg6 (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Wed, 29 Nov 2023 20:36:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343936AbjK3Bgs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Nov 2023 20:36:48 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B34410D1; Wed, 29 Nov 2023 17:36:54 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AU1EGr1002437; Thu, 30 Nov 2023 01:36:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=SevpiuSF70TWO4X4hMl+0/RD6Mh8GGRRC2tdgazz2Rg=; b=msLkyLrgWpjpSPhih4IPfdwxdtTPqigH3ZfNi/LgVewW7mIsm5nf84KPv6qobVHaChE/ 3+jyBfDWQpzW8Wi6jWevlenVO7A0R2HtbTFklC+S0GfNkN28QoU0zhgrq0TsVKa3rsOi /IDADPDxVKL8bZlnYsRWSFMQf8JAUQmGTPbfQq5TGw7Lo7kQhTR2MinnSe0YyLlGUtUE VS4pKAaW+ecOUvQQ6aYmkbd8RrfnkMWhRAvd5WDXWC4amj2qlCaPRO9RXHaxwZMDSEKJ sGWeAY4JGiqTYnm4AEkUA2BaKz5rImCTzhngq+zBuu6MM0gtDY1pqdJ4nlcobZ+G+3jg uA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3up02xtqk8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 01:36:46 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AU1aj9O024516 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 01:36:45 GMT Received: from hu-amelende-lv.qualcomm.com (10.49.16.6) 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.1118.40; Wed, 29 Nov 2023 17:36:45 -0800 From: Anjelique Melendez <quic_amelende@quicinc.com> To: <pavel@ucw.cz>, <lee@kernel.org>, <thierry.reding@gmail.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <agross@kernel.org>, <andersson@kernel.org> CC: <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>, "Anjelique Melendez" <quic_amelende@quicinc.com> Subject: [PATCH v7 7/7] leds: rgb: Update PM8350C lpg_data to support two-nvmem PPG Scheme Date: Wed, 29 Nov 2023 17:36:15 -0800 Message-ID: <20231130013615.14287-8-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231130013615.14287-1-quic_amelende@quicinc.com> References: <20231130013615.14287-1-quic_amelende@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ElR_iT1N9NMhah9v9NfABHqfkX-gGcPr X-Proofpoint-GUID: ElR_iT1N9NMhah9v9NfABHqfkX-gGcPr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-29_21,2023-11-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=976 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311300010 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_BLOCKED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 17:37:10 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783950982188643544 X-GMAIL-MSGID: 1783950982188643544 |
Series |
Add support for LUT PPG
|
|
Commit Message
Anjelique Melendez
Nov. 30, 2023, 1:36 a.m. UTC
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 <quic_amelende@quicinc.com> Reviewed-by: Lee Jones <lee@kernel.org> --- drivers/leds/rgb/leds-qcom-lpg.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/leds/rgb/leds-qcom-lpg.c b/drivers/leds/rgb/leds-qcom-lpg.c index 471b5b3e22ea..0cb079e6e2e6 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1780,11 +1780,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 }, }, };