Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2711414rdb; Fri, 22 Sep 2023 06:35:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLeZRwg+Yiv9kn4osjJ1mU9qGk8gqsf95JXGPzsAR+wV598n08+guYw6f3m0/FZF96a88l X-Received: by 2002:a17:902:9f8e:b0:1c5:b1a6:8111 with SMTP id g14-20020a1709029f8e00b001c5b1a68111mr7062325plq.31.1695389704017; Fri, 22 Sep 2023 06:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695389704; cv=none; d=google.com; s=arc-20160816; b=qZc1DMQaIQ7vxYaAQPoIXBjfc/bnTNsuPnK0HIN+lCV2Vwp2+ZbSVRkFqxcL7nKqwu 3tDajmur5V9O64QuUleAG8YnTXl3pPErDNKGzGk/ia844mbt4wHd3PRwvyo/ZSmVKdv5 bTifzcYUOgY4EEbGJS6a6VL/Zsl5VFZT0db73DQRgmYP7DjL7VjS/S89bo/aY6K4KtCI 92a95OeGU3Hu4Ybohbs6g3QVs+zQnRi4haPqwky78hJ83vqA9/njxQbMwRx0lnGhwGp4 brVFnkls5GMvtkG73KTWN53gSqZfzTjR1P9vKZzHQlD36Sffi7qz3kd3KXjWlEIbgKG7 5mDQ== 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:to:from:dkim-signature; bh=1+AKX+rqRYizEhUeZUvPc6CNQXUhdtnOWFBRpuI8OZM=; fh=Yxb/DmIG5iFhWMyyQWf0pQ6guSQWLP9bJJwLaKRdBpg=; b=EnJ42oSo0/SUyj1Ahb+HkEFo6sezyD+o8MN+tqmVBEwafqpBqgrjrkrWtW+tBBKjlh lKLYQffBR5Rw32xqP8ItwoR0Cxr25fyIz4A4z+mG/rMXruBvfadCw8pOv8xFsqL2SETA at2nySE48R6if2oiucNuOzmdfUQn3LC4DcBPdcx1eacIiKVpppLUGYP6cJtzK6RvZj4O VfkTw0oUIiI0ceet7li3x3oV/Hp+fEgs0r+d8Xw0OdTTGfRadQjal4nTZTePyjIfU/Z9 oM3jtl5ZqcTaLdYzmLZ7rYw2udSRKjZI//fQgcX4mWfTt7lE7Z0O3XQe6D4+kkXFuVkj OZgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=ghZrDaZ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=qualcomm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j6-20020a170903024600b001c470c5906bsi3942699plh.221.2023.09.22.06.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 06:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=ghZrDaZ2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=qualcomm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E2CBE82AF642; Fri, 22 Sep 2023 04:51:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233948AbjIVLvj (ORCPT + 99 others); Fri, 22 Sep 2023 07:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233846AbjIVLvg (ORCPT ); Fri, 22 Sep 2023 07:51:36 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6021100; Fri, 22 Sep 2023 04:51:30 -0700 (PDT) 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 38M9DiEE017906; Fri, 22 Sep 2023 11:51:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=qcppdkim1; bh=1+AKX+rqRYizEhUeZUvPc6CNQXUhdtnOWFBRpuI8OZM=; b=ghZrDaZ2ruvFt+0CMaz94xiCTPMGMhXfcRF9b8QueZhWwHQ7GqGxtE33ITg7ayFv/AlR yhi+ASwyj/GnhwQWSDk6tCyqJmNlY1RjTqiPHdlOXi0vH5n6bM/zcBP1kAimy2knwpD3 D7dnQWPCQAabUcLigsdh0q5qMkuwSA0esWnfBITOC1tzpFoNkNGBggrbX5X51nMk3JWx 62IGzf/SI4qZWTFtN1G9WNEpnhF288izVR6xNMrq5/8M6Znq+6Vsb1nK8EehzRhAV26G 4v78CVi90dJScuztyMX97aOQx1yqREcIK1tQOqG5P9aWF3nVgpke50W9ZicAeQvWX1w0 HA== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t8um1sq5a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 11:51:21 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 38MBobHF027221; Fri, 22 Sep 2023 11:51:18 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3t55emanca-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 11:51:18 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38MBpHEZ027858; Fri, 22 Sep 2023 11:51:17 GMT Received: from win-platform-upstream01.qualcomm.com (win-platform-upstream01.qualcomm.com [10.242.182.84]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 38MBpHTN027852 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Sep 2023 11:51:17 +0000 Received: by win-platform-upstream01.qualcomm.com (Postfix, from userid 330701) id 8488A984; Fri, 22 Sep 2023 17:21:16 +0530 (IST) From: Sricharan R To: krzysztof.kozlowski@linaro.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, srinivas.kandagatla@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, thara.gopinath@gmail.com, rafael@kernel.org, daniel.lezcano@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dmitry.baryshkov@linaro.org, quic_srichara@quicinc.com Subject: [PATCH V3 0/4] Add support for IPQ5018 tsens Date: Fri, 22 Sep 2023 17:21:12 +0530 Message-Id: <20230922115116.2748804-1-srichara@win-platform-upstream01.qualcomm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Dv-dBlnYdfCKT3Gd0qqovlnjX-_4v_rr X-Proofpoint-GUID: Dv-dBlnYdfCKT3Gd0qqovlnjX-_4v_rr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-22_09,2023-09-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 mlxlogscore=772 spamscore=0 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1034 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309220100 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_ADSP_NXDOMAIN,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 04:51:57 -0700 (PDT) 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. [v3] *) Added the tsens-ipq5018 as new binding without rpm *) Added Dmitry's Reviewed tag *) Fixed Dmitry's comments for error checks in init_ipq5018 *) Ordered the qfprom device node properties [v2] *) Sorted the compatible and removed example *) Fixed the name for new tsens_feature *) Used tsend_calibrate_common instead of legacy and addressed comments from Dmitry. *) Squashed patch 3 & 4 *) Fixed node names, order and added qfprom cells for points seprately *) Squashed patch 6 & 7 Sricharan Ramabadhran (4): dt-bindings: thermal: qcom-tsens: Add ipq5018 compatible thermal/drivers/qcom: Add new feat for soc without rpm thermal/drivers/tsens: Add support for IPQ5018 tsens arm64: dts: qcom: ipq5018: Add tsens node .../bindings/thermal/qcom-tsens.yaml | 4 + arch/arm64/boot/dts/qcom/ipq5018.dtsi | 169 ++++++++++++++++++ drivers/thermal/qcom/tsens-v1.c | 60 +++++++ drivers/thermal/qcom/tsens.c | 5 +- drivers/thermal/qcom/tsens.h | 5 +- 5 files changed, 241 insertions(+), 2 deletions(-) -- 2.34.1