Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1472584rwn; Thu, 15 Sep 2022 16:58:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vGBYMXTxOrjqr8tXp9lybjvoz830/zMY7/46HV9AL/joWJOQwPcruA/toJ6czMRPkQIs8 X-Received: by 2002:a05:6a00:2187:b0:541:ca61:48b7 with SMTP id h7-20020a056a00218700b00541ca6148b7mr1960128pfi.83.1663286281914; Thu, 15 Sep 2022 16:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663286281; cv=none; d=google.com; s=arc-20160816; b=AH6OcjHTAbP6o2Gg5n5VMl7117C6CQGuNekb2tRlwnJt1WNYiVwF+3C1xlsNbjiTQ7 fIufv3vkLLWstFP1b7cM72Pf5tWIf12a9HivOLoNemZAOThNMX/2V6rl4JYt/GLIiX4t 6MQdEfaMi3s1Jr1M8lJGlLy66fBCQAaJJw6Zgii5/r5fD5aazTDVpy63OHACM6/L9gn0 Y2qJIVQnkCzvhAjcwtE18cGbqzjm9rr6+Bv1+rvxUsjMjJWcMXlau4eSz/I33RnGIf4/ 3bMVVv/7QQ4wWqRQ8nQsMQZu9HdLuowDICKsZem7ZTZfZQQfnF81OPQycvCXLeabCURC cpZg== 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=3eNqrWuty5XAyPkQV8Kv1KzzmfzgtAgTf0Qy29Mqfro=; b=hQI4wwQr6G1KXMkLHjMgoPHD6pZi8d55HgMIn2l8uK771MmkRjAHFQsaPOK42O55CF lgqcxy8ugWjhFZgINQGIat1Gzjaw3rh253qKkUSgR3Sa5nZPsvc5qlzCnlPqxacH+E4A vVIXlhceF4FOY0OAvJoSbAr4BKFhbHTRvbEoiCFUiyPvpRi7lmJY0zST5Vl2slGi88D3 IEsO+bwdwjYt3QEiHjeoJ2W830sOWSdzkFO1BbyMRFKsjApqcHtwydLZRcwGctNrBkBZ OQkpTTWMuWd0Lbne3wWQ9wn7aV69Tl6psRwYYsNnssUunTktHNRQUl95iV6CdlCblL7V Kg+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WDNYO3Ie; 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 e8-20020a170902744800b00178221dc5bdsi4613632plt.434.2022.09.15.16.57.51; Thu, 15 Sep 2022 16:58:01 -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=WDNYO3Ie; 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 S229749AbiIOXTu (ORCPT + 99 others); Thu, 15 Sep 2022 19:19:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiIOXTn (ORCPT ); Thu, 15 Sep 2022 19:19:43 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D172812D26; Thu, 15 Sep 2022 16:19:38 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28FNEsOY021206; Thu, 15 Sep 2022 23:19:31 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=3eNqrWuty5XAyPkQV8Kv1KzzmfzgtAgTf0Qy29Mqfro=; b=WDNYO3IeHAEkh1OXNhQWNpE3DGiw+rKn7d2OAtr3oHfP17XRFiSDg9IdfjMy0VrueTtK 76nwO3FZsPI/wS2K2QljCw24A7Z6CrOMkjvB5s/3zj5z4xJNSe5VxhjqCc4CBqwkXKiJ qcCGPUflkNzDSU2HnR/wcCy5FJbphL/ZOHROhmbK/ql54/NvGbqlsOSyK8DvqkO5XFEp 9vbUdKzJfzwh3MiW2tR9hPuNwvBkjo9qL6VIwuQrBMJ0p5uCBjIbRvDzqW9I58MlPLDG tEUGkWKsv3xqzWWBUxTMCkpEF+rpF7hHQt9KDlmI5QdzygRgEEC/BXIQItnWim5tG5Tj IA== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jm950rvk5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 23:19:31 +0000 Received: from nasanex01b.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28FNJUWI005576 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Sep 2022 23:19:30 GMT Received: from hu-collinsd-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 15 Sep 2022 16:19:30 -0700 From: David Collins To: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson CC: David Collins , Konrad Dybcio , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , , , Subject: [PATCH 0/3] thermal: qcom-spmi-temp-alarm: add support for new TEMP_ALARM subtypes Date: Thu, 15 Sep 2022 16:18:47 -0700 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: snAeLPAspRKV1tBgpLuIhDDItK-KzjK_ X-Proofpoint-ORIG-GUID: snAeLPAspRKV1tBgpLuIhDDItK-KzjK_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-15_10,2022-09-14_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 impostorscore=0 malwarescore=0 adultscore=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209150148 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Add support in the qcom-spmi-temp-alarm driver for the new PMIC TEMP_ALARM peripheral subtypes: GEN2 rev 2 and LITE. The GEN2 rev 2 subtype provides greater flexibility in temperature threshold specification by using an independent register value to configure each of the three thresholds. The LITE subtype utilizes a simplified set of control registers to configure two thresholds: warning and shutdown. Also add support to avoid a potential issue on certain versions of the TEMP_ALARM GEN2 subtype when automatic stage 2 partial shutdown is disabled. David Collins (3): thermal: qcom-spmi-temp-alarm: enable stage 2 shutdown when required thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 2 PMIC peripherals thermal: qcom-spmi-temp-alarm: add support for LITE PMIC peripherals drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 407 +++++++++++++++++++- 1 file changed, 391 insertions(+), 16 deletions(-) -- 2.25.1