Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2412040rwl; Thu, 6 Apr 2023 09:51:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bSSln9QaNhPv3la7w4HtfRGu0KQnS5k5/VAj5mC2rQQ43Mwy8lBEoj0erIWq+toYX+jjR5 X-Received: by 2002:a05:6a20:27a9:b0:d9:adc3:6a6e with SMTP id s41-20020a056a2027a900b000d9adc36a6emr92483pzf.56.1680799910080; Thu, 06 Apr 2023 09:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680799910; cv=none; d=google.com; s=arc-20160816; b=qWrkNgwnV/lRqQVk2Hd4mZvE3yPBF34M3p5B+5udo0GFEMiAtdJcitKoR1yvSi/5g+ MMEwgFjMbbf1teMUjb1TKSU2MtWdI9wHBAJEqkwFNeDQ/95Q0UoPsNHSiltCTBgaYe2f BUvg7pHVDjPxkYCp40QdMUSZ0tiDAFthJMrWT7gY/HHoI1w6v8HHt2B0QlPNEehnMeY9 v6o9FNYpJAhRjz6zlpLgo1b4oxN6yXX4dcWPD4fSVH0LfTmdQeXuCSAbX4RnJUdOyPZg hQSVXj66jPREg3Mbbh86YiDpiad6pxkHDzMwowams1cVEGe2t0/VP1wDBJurH581O21G 32ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=bmLfGrEM13HZfqWtFtJIxvhd/0WIp6c/7hcDUFupE/Y=; b=oyGK7olb9oyAVKNJtmFjgYICHSaxZ/4Lqp3WNrhZXCRm4v/LRJX5vHok42p9VZCtiX bUx8DG3zecgtIz6SiiTfXIo/OCFj7D738M3BbSkanlp+793AagcCNxr04K8MmPXCVF3s LcwJzNmwVRrBU18LC1dsT/BGBN8YUTXqpmrdBMYVr15iWsuFWMlLVwR3D7EwNz1+ko/g O13xlhgXclKCkeCIDGbM92RPE0JCEODNLvvqMHmS6eXk25lHVdUoYkc6/7A74CUoUI8H aal6rP/DKkUIShrvSW9Q1QdmeFsmD2y0OAemhN15wQH6yZeKAgJobT9YS90wII4cD72B vIng== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x1-20020a63db41000000b00513929a450esi1771705pgi.123.2023.04.06.09.51.30; Thu, 06 Apr 2023 09:51:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239642AbjDFQpm (ORCPT + 99 others); Thu, 6 Apr 2023 12:45:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239599AbjDFQpP (ORCPT ); Thu, 6 Apr 2023 12:45:15 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A4B1559F; Thu, 6 Apr 2023 09:45:10 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 336GDdVf013755; Thu, 6 Apr 2023 12:44:38 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3pqrh5qbhq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Apr 2023 12:44:37 -0400 Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 336GiaJ0027386 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 6 Apr 2023 12:44:36 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 6 Apr 2023 12:44:35 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 6 Apr 2023 12:44:35 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Thu, 6 Apr 2023 12:44:35 -0400 Received: from daniel-Precision-5530.ad.analog.com ([10.48.65.214]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 336Gi7JU002852; Thu, 6 Apr 2023 12:44:11 -0400 From: Daniel Matyas CC: Daniel Matyas , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Mark Brown , "Vincent Tremblay" , Marek Vasut , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Conor Dooley , "Greg.Schwendimann@infineon.com" , Geert Uytterhoeven , , , Subject: [PATCH 0/2] Hwmon driver for MAX31827 temperature switch Date: Thu, 6 Apr 2023 19:43:25 +0300 Message-ID: <20230406164331.6557-1-daniel.matyas@analog.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 7Q9DOdcOvVu9aSn3txoDtWgleruvpAyx X-Proofpoint-GUID: 7Q9DOdcOvVu9aSn3txoDtWgleruvpAyx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-06_10,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=721 impostorscore=0 mlxscore=0 malwarescore=0 spamscore=0 phishscore=0 clxscore=1011 adultscore=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304060149 X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver was tested on Raspberry Pi 4 Model B. The implemented functionalities of it are: reading a 1shot input value and changing and reading the overtemperature and undertemperature alarm and hysteresis values. The read values are raw: signed 16 bit int format. To obtain the real value one must multiply the value with 0.0625. Daniel Matyas (2): dt-bindings: hwmon: add MAX31827 hwmon: max31827: add MAX31827 driver .../bindings/hwmon/adi,max31827.yaml | 48 ++++ .../devicetree/bindings/trivial-devices.yaml | 2 + MAINTAINERS | 8 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max31827.c | 240 ++++++++++++++++++ 6 files changed, 310 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml create mode 100644 drivers/hwmon/max31827.c -- 2.34.1