From patchwork Fri Sep 29 00:38:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anjelique Melendez X-Patchwork-Id: 146795 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp64834vqb; Fri, 29 Sep 2023 15:04:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKCyomwpEymuRU3prQs0BbrhN9G+Xf/Kmro64YzENavZ8zXF8ByNmFi9DA1GFi5O+2yBm9 X-Received: by 2002:a17:90b:4c0a:b0:270:1611:484b with SMTP id na10-20020a17090b4c0a00b002701611484bmr5062465pjb.41.1696025089453; Fri, 29 Sep 2023 15:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696025089; cv=none; d=google.com; s=arc-20160816; b=0rmdO8sw8/7eVb+dzlvCnHrSbZdTAgKrnSa88s/fF3R/wSvVXBqDjlxnm1BE4r8zTb Wsd7e0a08VNOHOBpLonJcCC53yY681ohQ6ydeqwmQwpEKKR7i0xdfG26yplmmrqtvq1G vXkraIIHRi5tb+dHMELnz7yQV+hXqdLLRbDeQ7C7qgIyQ2bMKTtTGKww2Vgfxb37iNGs nwlqVqYvvZpN5VFyyPFJPZNFaLPaLVPr8zyvsZ/cDZfLDSGDYgMaNUke6TKwljGPyP0q Tz4Z0OfQd8B2kDEn/GKvDebmAKtNj1XmqWcPnpsqus5WPryOEtQB+6f+L7RDUvT3mBLq ZqpQ== 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=+e+XnxW37CPeMbza9yPColB2LCZrlXCNv64Xl3/FXBE=; fh=lDvKNFV5Xl6+a2SDgD5JDR2yxCiIT+vRupumJE4NWmE=; b=jaNAghDhtns59nwgcItzu48HlPpBro6rHznK8OeU6zcFIokDYDru1Pxy9w3lM46Wnz pY8Mh8k+6ozxPLsNnjnmlO7mEGqfkxbURQ5LTUWDwjM88zt5NlYkkxwcaGxUarC56Pj7 H6Zu1pGMisBXu+LetFnCj89OtHAJ7l4PtV3tQpBtGFRDmbe0ho4ToKN/t9VAZ+Vm+zZz at3vUJEhd0KSPskgxAb0nchA36RUQvvsOeK2nnG+pHBk47A1kn1suuXpMs8Q0QBGDFbu g+aX4o/zaZ767NzDEZ0fUIKPGXkwrmK/tB5kksqbb9YveE5gk/Wzt+13lT1GbyCBMRwh IMIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="SX6/dU/s"; 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=quicinc.com Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id lx18-20020a17090b4b1200b002792831692csi2579353pjb.58.2023.09.29.15.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 15:04:49 -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=@quicinc.com header.s=qcppdkim1 header.b="SX6/dU/s"; 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=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3109F80A1E10; Thu, 28 Sep 2023 17:40:03 -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 S232625AbjI2Aj4 (ORCPT + 21 others); Thu, 28 Sep 2023 20:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232507AbjI2Ajq (ORCPT ); Thu, 28 Sep 2023 20:39:46 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C13F1A3; Thu, 28 Sep 2023 17:39:42 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38T0H8Xj021226; Fri, 29 Sep 2023 00:39:32 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=+e+XnxW37CPeMbza9yPColB2LCZrlXCNv64Xl3/FXBE=; b=SX6/dU/sB1YZHKzwACghI2iUV1P8Uva5erfKLwQUZMw0sqZYpheCD+PG+dErAIzIwXmI zsqnW11d7lngwWxmtuUaRv6IapB4GXOswrantOOJJUlyq6gSSz2uwlFH1bNVy7QlteUz lOhTCdR5zVTbsCpjI0Gi2tVH8FkbePqEZ/x+ePyQxfUOwl4sMNh44t8sg7KtxYnfjEf7 nl1NwKwJ4iFxQGtAf6N+z9snkNYiopgPPVcyK/IfsATwoSDXuILGocRv5FmEhsoZcEV0 EZ6miUGBE0eqQfL1wVftWRBCdY+WA5P0gu61daFfIRUYxae/SHgD4nWHlvCH4T0+Yro4 Cg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3td2vu2676-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 00:39:32 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38T0dUp2003374 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 00:39:30 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.36; Thu, 28 Sep 2023 17:39:28 -0700 From: Anjelique Melendez To: , , , , , , , CC: , , , , , , , , , , , Anjelique Melendez Subject: [PATCH v5 5/7] leds: rgb: leds-qcom-lpg: Update PMI632 lpg_data to support PPG Date: Thu, 28 Sep 2023 17:38:58 -0700 Message-ID: <20230929003901.15086-6-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230929003901.15086-1-quic_amelende@quicinc.com> References: <20230929003901.15086-1-quic_amelende@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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-GUID: 7KCvoEcSnlv8YkpwpYiaYHtk4580unY9 X-Proofpoint-ORIG-GUID: 7KCvoEcSnlv8YkpwpYiaYHtk4580unY9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-28_23,2023-09-28_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=996 mlxscore=0 phishscore=0 spamscore=0 adultscore=0 bulkscore=0 clxscore=1015 malwarescore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309290002 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 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, 28 Sep 2023 17:40:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778411204280247223 X-GMAIL-MSGID: 1778411204280247223 Update the pmi632 lpg_data struct so that pmi632 devices use PPG for LUT pattern. Signed-off-by: Anjelique Melendez Reviewed-by: Lee Jones --- 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 4d87686f916c..a6cea6bd7167 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1660,11 +1660,13 @@ static const struct lpg_data pm8994_lpg_data = { static const struct lpg_data pmi632_lpg_data = { .triled_base = 0xd000, + .lut_size = 64, + .num_channels = 5, .channels = (const struct lpg_channel_data[]) { - { .base = 0xb300, .triled_mask = BIT(7) }, - { .base = 0xb400, .triled_mask = BIT(6) }, - { .base = 0xb500, .triled_mask = BIT(5) }, + { .base = 0xb300, .triled_mask = BIT(7), .sdam_offset = 0x48 }, + { .base = 0xb400, .triled_mask = BIT(6), .sdam_offset = 0x56 }, + { .base = 0xb500, .triled_mask = BIT(5), .sdam_offset = 0x64 }, { .base = 0xb600 }, { .base = 0xb700 }, },