Message ID | 20231130013615.14287-6-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 r17csp92076vqy; Wed, 29 Nov 2023 17:37:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHiy3pQILknywmb6Ma8yUJkXktt7OuFw/CDKaKKSQWoz6RoR12J6GSy3mMc1jLkS0Z7bQZ X-Received: by 2002:a05:6870:524c:b0:1fa:3014:ada9 with SMTP id o12-20020a056870524c00b001fa3014ada9mr19188913oai.54.1701308227850; Wed, 29 Nov 2023 17:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701308227; cv=none; d=google.com; s=arc-20160816; b=F4sIhXQzs1khwA60mZlTk/mrrVY0uEx6p39qsuaCziE+l/rkJkUgxxuyW4IJ5m37mU zbGIuMNRd85fKYls1RKvXvjNrQopOyJbplFB7eCmhFf2I179DfYhdyxOEnd6tr4zFLa1 7D7N7CEXBs6Xy+241ppkP/CDKr4GUIH0SSuASLba63NIW3HC++THn3qULaTya4a8JeYo KINqR7IbfTeKr3ujzgCYeqcj8SWKUQyizUwJxPjrKNT+Xq1X/M4nOroBHh7ArIIxa9k8 nBIREH5dQSPdhPCHLRsbefRJeoxRyvAfffWVkYfkOxFmOxrwq3LGFQgKZPBkNfGDtd7n IKiw== 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=uEQzzl4ceRlKkxGu38WAcqokWeN1eQqjwXh336oDT3Y=; fh=taLs6UBhCJ5jXRTuE2Pv7pQVkD+FQ9+sBPG6a4w/cyA=; b=glhA3eLw6rrrR1q27thTaLKn8RxjGQ6Vl0C2Qbzv+AMSBL3y6SVdgGlRDjYlD3tLRx Rd02ATjT+fsGI36vmH5ZuQFXl5j6lbHlxR1LgBThMWdxEtlVcWl0ubZ+eFhoGqYGFlmr O68eljCJA5tn5AnEWjX87fg5j9gu8MhcArIrstyZFulTPG7qG0cLU25PS0klBPKfLjM/ Dj8zCBa5g4MNi1LUHqYIy+ik73x/W1D0NUZIgK4FP0xZCa0M3/tVhFIuBhrSQ0htqHX/ pa5kgV5uBGiFSEWnHP2AVbw9S9HHhexDhrAB/lCjcdzfKVRtm3zAwhRluTeUxcmJQ3J0 KWUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AvFmGq7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k67-20020a632446000000b005bdff953b76si183928pgk.197.2023.11.29.17.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 17:37:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=AvFmGq7e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 3636B802B411; Wed, 29 Nov 2023 17:37:06 -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 S1344064AbjK3Bg4 (ORCPT <rfc822;realc9580@gmail.com> + 99 others); Wed, 29 Nov 2023 20:36:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343998AbjK3Bgr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 29 Nov 2023 20:36:47 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 034B610CB; Wed, 29 Nov 2023 17:36:54 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AU0Guml007535; Thu, 30 Nov 2023 01:36:43 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=uEQzzl4ceRlKkxGu38WAcqokWeN1eQqjwXh336oDT3Y=; b=AvFmGq7eXwf2l4+wqyBw+Z4pyAz9VIg8atq32do5nbXziQ5Zc23ObBRDKFSHjPNSHkRo IkSMYd7WO5nYXj4XS8A1in7Kf2vrByiRRpdzgs+5Y4Re6UO1R6Pmw13xU+gM1p1xQsH8 b5Riok9Ft9lLfWjo3z8I1ABDFmODA0suTepJ7MI5tnB47zKNbefZK6mYnRFi91xUbxjo RudQT+H1xuOEKjbIbOVlSKOxxiKfKJw6O/T70oW+rMEbI+aah5tW4/I0b3nxrQP97Hpw ebDS0+9PQhqYIt3m8KYR8+R+wNroc2zGmZNSIdgg2w+AlzmoDgQzkPj6KAruTUd0/5Qm dg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3up2s0a6qp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 01:36:43 +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 3AU1agFM014535 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Nov 2023 01:36:42 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:42 -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 5/7] leds: rgb: leds-qcom-lpg: Update PMI632 lpg_data to support PPG Date: Wed, 29 Nov 2023 17:36:13 -0800 Message-ID: <20231130013615.14287-6-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: EFetVc-Yx7lKql84HK9XebZqxiRe9HWR X-Proofpoint-GUID: EFetVc-Yx7lKql84HK9XebZqxiRe9HWR 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 clxscore=1015 impostorscore=0 adultscore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 mlxscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 lowpriorityscore=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:06 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783950976070479850 X-GMAIL-MSGID: 1783950976070479850 |
Series |
Add support for LUT PPG
|
|
Commit Message
Anjelique Melendez
Nov. 30, 2023, 1:36 a.m. UTC
Update the pmi632 lpg_data struct so that pmi632 devices use PPG for LUT pattern. Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com> Reviewed-by: Lee Jones <lee@kernel.org> Tested-by: Luca Weiss <luca.weiss@fairphone.com> --- 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 a3e4adffb8df..8d2647aeb3b4 100644 --- a/drivers/leds/rgb/leds-qcom-lpg.c +++ b/drivers/leds/rgb/leds-qcom-lpg.c @@ -1637,11 +1637,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 }, },