Message ID | 20231221185838.28440-6-quic_amelende@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp624036dyi; Thu, 21 Dec 2023 11:01:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1OaHBrCfKoLi5d8bE8QfJk1wkOBoa5W3aBD/0G99PeE/GkyUH/UVEPRF7oO8MiV7G85Hi X-Received: by 2002:a05:6a00:139b:b0:6d9:69da:80ea with SMTP id t27-20020a056a00139b00b006d969da80eamr137038pfg.64.1703185271144; Thu, 21 Dec 2023 11:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703185271; cv=none; d=google.com; s=arc-20160816; b=xlaFqlIS/DR+WW4gQgsm1rWAdMKALRbFZ6fHlck6PA77VRh9E59hIjAbdbLBKeaLfa x16TpXRPpDITRVOq+PBIxARNgR7hpyH6d3xIAEn/NAvGySdTTydu/9hawFvs5eEsQ0UH 6PqIomWcOtej76XoavyTtWMEMJ45GxFOCMd/yz4htyrJ2G20yUQA5Mv1SNvX+4DZm6L8 UaIsBeMTT44d4wheocOR7K381QuKEGqoi8yJPhv+CBa6cVmP9qaxA+Tz6/4cLCVGHw7K uLI3Y5VNjHesJpNx51TShPDHjd7Pcu7wVjl3s9V5ryFNqpWtjZhrzsvl/s0jGW/XGtlX KzhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+niwdxZ7uL8bixUBNcHeed17UNFW9YxuNA17dgYRnGw=; fh=taLs6UBhCJ5jXRTuE2Pv7pQVkD+FQ9+sBPG6a4w/cyA=; b=bJ2XGj3i7YhuvB+mTyOdOE82XYHH86+ZHto5+cS9krzwnIcbDkK/J9ablSr1qKN6Ky MrbDy7lzEv4ZvZdqdvy8ycqJMjHROkv4LduBmf9kQ70iUFZDH3cyV8dXPQlhErptjkBH /O4q+7RSBGrRbDiz9bJjTBayKVE7kfxH1/A1Qr6HneSykiCKoO0a3SbD85rcmxRjxmH/ Q9mcfMgEmMQXOgDoBVcNCDjIr1A6cmtImI4E0PYBRAOx5nxF/xoOn2VPPCrv+WVa4pjN J31EOPIlEVQIEVnAGJj3r2YE8JsgIo0rEApWPe/AMR68KxdTFnm0wHp803y5WURJqy2P EeVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bHCY1eWx; spf=pass (google.com: domain of linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f23-20020a635557000000b005cd8123afb5si2058924pgm.547.2023.12.21.11.01.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 11:01:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bHCY1eWx; spf=pass (google.com: domain of linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8968-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A6BFCB22FA4 for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 19:00:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D3397763F; Thu, 21 Dec 2023 18:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="bHCY1eWx" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 361D473191; Thu, 21 Dec 2023 18:59:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BLIeVKU010055; Thu, 21 Dec 2023 18:59:05 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=+niwdxZ7uL8bixUBNcHeed17UNFW9YxuNA17dgYRnGw=; b=bH CY1eWx3GouHlz+d0NwN9vKYsL8fi44MnrbN0czpyzsR8pqXcJyoAKFIf/hYqsR+H KVMxJJbTi9gKtsS+A7fJH1WABWAuZK7MmOoQl2tw/myhz42x8kdJAuBq0IBrJSV7 enK2Bbgif1vyi6+32/wm6W9CEfbAkHTFCIHZPztGkoSZxOzmQHQYuHWPin0hcnLm g6hb4ZP+XQoheAROVZFfCI8lly4nIvXvGjaXssGGpmDVaWyogciyhJrcIszT8rUq D3QQE1YyGTzULa4sKCNHpwPGzRf3mT2iCJvffAyomnG8VBz26aVTeTnSHYa60Dy+ S4svxn5a5n2DnLrpF+Xw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v4tue81ap-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Dec 2023 18:59:04 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BLIx38e023455 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 21 Dec 2023 18:59:03 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; Thu, 21 Dec 2023 10:59:03 -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 v8 5/7] leds: rgb: leds-qcom-lpg: Update PMI632 lpg_data to support PPG Date: Thu, 21 Dec 2023 10:58:35 -0800 Message-ID: <20231221185838.28440-6-quic_amelende@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231221185838.28440-1-quic_amelende@quicinc.com> References: <20231221185838.28440-1-quic_amelende@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-GUID: izR4-Yz7UgscN1dyE3vAexHA1oD3urgj X-Proofpoint-ORIG-GUID: izR4-Yz7UgscN1dyE3vAexHA1oD3urgj 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-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 impostorscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312210144 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785919198907433209 X-GMAIL-MSGID: 1785919198907433209 |
Series |
Add support for LUT PPG
|
|
Commit Message
Anjelique Melendez
Dec. 21, 2023, 6:58 p.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 a76cb1d6b7b5..976eaac97f40 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 }, },