From patchwork Wed Jul 19 10:40:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Praveenkumar I X-Patchwork-Id: 705412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AF93EB64DA for ; Wed, 19 Jul 2023 10:41:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjGSKlh (ORCPT ); Wed, 19 Jul 2023 06:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjGSKlg (ORCPT ); Wed, 19 Jul 2023 06:41:36 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BD46E0; Wed, 19 Jul 2023 03:41:35 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36JA8fKa025855; Wed, 19 Jul 2023 10:41:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=IzzyopEfTt6kZScwYdUmC+NmP1CHIvCIOIW/HJGjzFk=; b=XKVO7HFbyi5AakmQmmK1zwvyJri+kxmaUIIE8fGVt2rYHAR1yKA02Vl9YnREEOrnpBy+ K/s6f//2ZCDb9WFQxZUe+yhh3GsAtsPg/JTwoc0ZPS2Xw44rE9v2CCefwqSFs7Hket1I mXbnucpp6wMQ9XA9/5s9pFgGZ3p/27WldT+35cEFQ0CbIyBpkYwWTLWfXHM44LNTpeb0 JLkEnNl1YJLQuFs8TIb0FpOnmH054+sRZhIdc24CNrdjixHTd+zLGDuZ7HNVRMqPOvnb O4hN+Mn9rr1hQSTPJfeHC3/OtSoQIWCSYPXiXY4dpoASsWpqOPlad6QzGFLTTEBPqoKn Fg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rxd98g43m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 10:41:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36JAfSDZ020752 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jul 2023 10:41:28 GMT Received: from hu-ipkumar-blr.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 19 Jul 2023 03:41:23 -0700 From: Praveenkumar I To: , , , , , , , , , , , , , , CC: Subject: [PATCH v4 0/5] Add IPQ5332 TSENS support Date: Wed, 19 Jul 2023 16:10:36 +0530 Message-ID: <20230719104041.126718-1-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 1JsTu0IKFzGFS7YXyjW_MHEcNGGZyQxd X-Proofpoint-ORIG-GUID: 1JsTu0IKFzGFS7YXyjW_MHEcNGGZyQxd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-19_06,2023-07-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 bulkscore=0 mlxlogscore=850 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307190096 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ5332 uses tsens v2.3.3 IP with combined interrupt for upper/lower and critical. IPQ5332 does not have RPM and kernel has to take care of TSENS enablement and calibration. This patch series adds the sensor enablement and calibration support. On top, adds IPQ5332 TSENS support. [v4]: Updated the [v3 1/5], named values used inside the init function and used FIELD_PREP() to update Sn_COVERSION data [v3]: Renamed init function in [v2 1/5] and reordered device nodes according to the address in [v2 3/5] [v2]: Dropped [v1 1/6] dt-bindings change and added nvmem-cell-names as part of [v2 2/5] ipq5332 dt-bindings Praveenkumar I (5): thermal/drivers/tsens: Add TSENS enable and calibration support for V2 dt-bindings: thermal: tsens: Add ipq5332 compatible arm64: dts: qcom: ipq5332: Add tsens node arm64: dts: qcom: ipq5332: Add thermal zone nodes thermal/drivers/tsens: Add IPQ5332 support .../bindings/thermal/qcom-tsens.yaml | 12 ++ arch/arm64/boot/dts/qcom/ipq5332.dtsi | 144 +++++++++++++++ drivers/thermal/qcom/tsens-v2.c | 173 ++++++++++++++++++ drivers/thermal/qcom/tsens.c | 5 +- drivers/thermal/qcom/tsens.h | 5 +- 5 files changed, 337 insertions(+), 2 deletions(-)