From patchwork Mon Aug 28 19:18:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sricharan Ramabadhran X-Patchwork-Id: 13368213 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 BA53EC83F11 for ; Mon, 28 Aug 2023 19:19:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233345AbjH1TTR (ORCPT ); Mon, 28 Aug 2023 15:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233352AbjH1TTH (ORCPT ); Mon, 28 Aug 2023 15:19:07 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F333F102; Mon, 28 Aug 2023 12:19:04 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37SIX27C013497; Mon, 28 Aug 2023 19:18:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=y0vNTutWZ8S8l43kBS8PU3ZGWPuVOeFmL7bZRwx+M9Y=; b=jYDZCEVMS/z+9UuehhBpujRE/ilIzL1zRxKwe2LQW8kvUL1GIDQnOSyP+QlCTz8Xb6QR rMGFYvPy0jP6X97K/JbY0DfT3sql/K/QJpcCQ9puVJcP1JoxWzQFWMS429NYNzip8rGL gE0w/XZjiAcrjX+bNLBdL3LeYNHjSkP8EGAKcqbBny4AgexNpHUVORi+ZGRrujCWeBix e6/t46s/U0a3GUbRy6/kDWmC8loloIkdxIS4UXIKq5vh/VwTFB2+o3uAwGqVm0FB6+m4 Kigcvsj2Iw6Vsl916dxEdSREPDjIVjlEQ7Z6l80A3g0sDTXOi2fZf8l78b8JF+Tbj3Vn Pw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3srt8s149w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Aug 2023 19:18:55 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37SJIs9q021088 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Aug 2023 19:18:54 GMT Received: from srichara-linux.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; Mon, 28 Aug 2023 12:18:46 -0700 From: Sricharan Ramabadhran To: , , , , , , , , , , , , , , Subject: [PATCH 0/7] Add support for IPQ5018 tsens Date: Tue, 29 Aug 2023 00:48:20 +0530 Message-ID: <1693250307-8910-1-git-send-email-quic_srichara@quicinc.com> X-Mailer: git-send-email 2.7.4 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-ORIG-GUID: IsXAsK5Mw_zsmpKlX4fBBEbCa2VYkSXR X-Proofpoint-GUID: IsXAsK5Mw_zsmpKlX4fBBEbCa2VYkSXR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-28_16,2023-08-28_04,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 priorityscore=1501 mlxlogscore=682 adultscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 malwarescore=0 clxscore=1011 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2308280168 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org IPQ5018 has tsens V1.0 IP with 4 sensors and 1 interrupt. There is no RPM present in the soc to do tsens early enable. Adding support for the same here. Sricharan Ramabadhran (7): dt-bindings: thermal: qcom-tsens: Add ipq5018 compatible thermal/drivers/qcom: Add new feat for soc without rpm thermal/drivers/qcom/tsens: Add support for IPQ5018 tsens. thermal/drivers/qcom: Add IPQ5018 compatible. dt-bindings: nvmem: Add compatible for IPQ5018 arm64: dts: qcom: ipq5018: Add tsens node arm64: dts: qcom: ipq5018: Add thermal zones .../bindings/nvmem/qcom,qfprom.yaml | 1 + .../bindings/thermal/qcom-tsens.yaml | 19 +++ arch/arm64/boot/dts/qcom/ipq5018.dtsi | 81 ++++++++++++ drivers/thermal/qcom/tsens-v1.c | 115 ++++++++++++++++++ drivers/thermal/qcom/tsens.c | 5 +- drivers/thermal/qcom/tsens.h | 5 +- 6 files changed, 224 insertions(+), 2 deletions(-)