Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10524334rwp; Fri, 21 Jul 2023 00:02:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlG8ecjhA3t6HaRqShQP4jZZ8/nkmlmWJBGxomgWG0WDJR17A4L4FdD7quSSyGQjvsgnyXnE X-Received: by 2002:a05:6a00:1251:b0:66c:9faa:bb12 with SMTP id u17-20020a056a00125100b0066c9faabb12mr1236782pfi.9.1689922930519; Fri, 21 Jul 2023 00:02:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689922930; cv=none; d=google.com; s=arc-20160816; b=gVodxC8WiVSWAhYr9ioxRLO+eMZWYiYM6HbiVjogVt5/WWmYOxx1cCONDeJEsH7dCr mLDQhE0Jro+99Bhklr3MMTCHcVjL+KDWNncyCelFALxWX5nvW0wGMjcU1dMv8tW2tLFO eVSkZp0TUDHMfIcQuR745DZlg1nKad215x3LFN3UKav5iS+CoUkeR8hxbzW1vqnrBEhj H/EfwOXjVlgXBCEddks0nF6RJD9qDLLxk/RxdMRAVoRZSLqrB/gbDnOskVn8S8YmREB/ Q2TQbKTCEQz5nvcZXzux2ihOkZR5e9AiXcugS+w2/jXgKe0JSQKCkHBW6x/8TMaZPU9I syTA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=pDVocRjAI7KsG2KACrI4LPTGAPlh31F0AYwI1v1pHtM=; fh=X4rJ+cR0B+d5Oa7pFIBp3MHYxg8a+8b0Sx0w3zuICOE=; b=P/bntMWa5PgZkTwcUkPa0jvNzGSUj+D+4+tDCVTLNU2JgNHijMYDlW0HmoJbMMUXVP eLKLwl0VjXUI9kkoR56j16QYXF/pYGPp+8ZwWgkhTLQyH/vRb+9JhS4XWxi7SH3b0f4A IFwg0mykOY4Ll2OREXOn/D+IdaoNG2ID/UV5/WoR1rT7ktYN9GMkf1R8Q39b/7W9gs9T K4Pkz32/at/Visvqh4/aPAkL0aaYpIoQILf5LMEvGBRRBHKY6kAgFHS+rtCf7W9wzOHz kul/DaIvODAejFtg8mu4SXA2wgen0paK7oaz3JPAff/UuYYNzWMyvXVRD1icQfo7GJIE FggQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dE97dAqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cd20-20020a056a00421400b0068255360b93si2379777pfb.332.2023.07.21.00.01.57; Fri, 21 Jul 2023 00:02:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dE97dAqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjGUFq7 (ORCPT + 99 others); Fri, 21 Jul 2023 01:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjGUFqw (ORCPT ); Fri, 21 Jul 2023 01:46:52 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B43691984; Thu, 20 Jul 2023 22:46:51 -0700 (PDT) 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 36L4JQWs028910; Fri, 21 Jul 2023 05:46:46 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=pDVocRjAI7KsG2KACrI4LPTGAPlh31F0AYwI1v1pHtM=; b=dE97dAqauehmCA9QcYVc51AsmiOD+CMbJ1x3SP+pT/Pgsg5sErYtH3lijNAQJ2Wo9adB HoQoX6m1aufhBGjF0Qd4FhbJ37CIziXjtAXTNVIPAaauoDwhyrGUo1/pAdxNVuNHHeHG hJpVXKGLK0YmYiEowa2esf4c7f9o+rTzOWtStSzn6RQ6M71lt0D8pCLeK81vegFYtSPP fiH/l32Wcdb6wlW1hkA8jMynwiTvCbIkioC78JaUfRJ/OscwB2Q1yUGnMjPVmt0vPK8F fIRQ0AJmJnOgHnB0gpWPxogiEw8dKb2jGdgSMeRMVBU9GxGIUVcDgWshEzRHCtPhPf1E XQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rxxqv2wm3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 05:46:46 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36L5kiPN020185 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Jul 2023 05:46:44 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; Thu, 20 Jul 2023 22:46:39 -0700 From: Praveenkumar I To: , , , , , , , , , , , , , , CC: Subject: [PATCH v5 0/5] Add IPQ5332 TSENS support Date: Fri, 21 Jul 2023 11:16:14 +0530 Message-ID: <20230721054619.2366510-1-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: 8uJ8TExvcWT0RYfJzu4QtbAEcZGCDqFv X-Proofpoint-GUID: 8uJ8TExvcWT0RYfJzu4QtbAEcZGCDqFv 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-21_02,2023-07-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 spamscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 mlxlogscore=876 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307210052 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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. [v5]: Fixed build error reported by kernel test roboot [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 | 174 ++++++++++++++++++ drivers/thermal/qcom/tsens.c | 5 +- drivers/thermal/qcom/tsens.h | 5 +- 5 files changed, 338 insertions(+), 2 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project