Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2360200rwl; Thu, 13 Apr 2023 05:36:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bFlP6zamGXoQxujaCRyhNXkt9mGCaAQmPwqvZ5AbUxAUo9QQMFS5q6jMDHnaHIPgdFlvYS X-Received: by 2002:a17:903:11c6:b0:1a2:9dd8:d646 with SMTP id q6-20020a17090311c600b001a29dd8d646mr2583366plh.54.1681389372614; Thu, 13 Apr 2023 05:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681389372; cv=none; d=google.com; s=arc-20160816; b=yBG9njQklXSiZsxFofxI5/BnsI9yoRvlieAVX5r4C2o3Vr9b2yYJNLWgBZfXxOoRMB rRz6DpN00QdSDxzQiR9KaPbvd1aJFUiV8TB9y8ISWe1pULHCSZyhqUiwwvPlj7tnS7uM J0kC1FvL/JvDZhSBjovAauecgfR8TgQvgY3KT/8X7OgNQnoFheD6WEYR/zG4ErnwCeGb u6j4lYimS0gm9wAI41JJfy4sbgOJQsNTFi8XN4o6xXYHCOcuJ1/pky3r7Af1DuhWashV QWjvqTiE7RYHpyNtOPcqRj0S44+yhRvtz3fkIqY5CfyUQ4kl961q6haO9Zf9unfJN1Pm IWKw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xGdQmqvpFRVtGsxrD6hEzQDKQr3XtXfJ6qCW52no33k=; b=W8o0xTdIXDWOmyTngEhX5qQSZaqS/X0SpmPuqcgOJ4Hm/69JCR60MKx7rDEsSHcMzU 1hie/xau5wbzJyXotFq1D1jYH1GS1otwrOsumhhIOCbSRDNmA2qe5sXW7yY8P5PFBRUP bmM8kMQSzdN784urzWQ3JJ2JFNDlSXmd1mZ+ZFym5Gcx/9Cbx826L5SDOf8G3+Ls75wp Fdxnq7RI4StL9OOVZDeNxWI6lKg7ss4ETu33N2mML2JkkfMozJnWh/F+jSy0Uys3bbBA bCwIRR6xqnrPEbFxu0GexynyBXcj5Fqwu/d7Xjr1zbZiuTt8ZFoZyRguvD9/6Qkh0JWi jXeg== 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 ls11-20020a17090b350b00b00233e301c780si298849pjb.31.2023.04.13.05.35.59; Thu, 13 Apr 2023 05:36:12 -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 S229904AbjDMMcg (ORCPT + 99 others); Thu, 13 Apr 2023 08:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbjDMMcf (ORCPT ); Thu, 13 Apr 2023 08:32:35 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5366A869A; Thu, 13 Apr 2023 05:32:34 -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 33D9Zih6004349; Thu, 13 Apr 2023 08:32:10 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3px96s32bt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Apr 2023 08:32:10 -0400 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 33DCW9rr027393 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Apr 2023 08:32:09 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Thu, 13 Apr 2023 08:32:08 -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, 13 Apr 2023 08:32:08 -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 33DCVs7G024870; Thu, 13 Apr 2023 08:31:57 -0400 From: Daniel Matyas To: CC: , , , , , , , , , Subject: Unclear what to do with compatibility Date: Thu, 13 Apr 2023 15:30:39 +0300 Message-ID: <20230413123039.22473-1-daniel.matyas@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <342b3e6c-fd1b-d256-bcc2-2b9bda206b60@linaro.org> References: <342b3e6c-fd1b-d256-bcc2-2b9bda206b60@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: sQXerFFFOgBPCQR0elnB-AjmC41saKru X-Proofpoint-ORIG-GUID: sQXerFFFOgBPCQR0elnB-AjmC41saKru 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-13_08,2023-04-13_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 suspectscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 clxscore=1011 bulkscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304130112 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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 MAX31827 is a low-power temperature switch with I2C interface. The device is a ±1°C accuracy from -40°C to +125°C (12 bits) local temperature switch and sensor with I2C/SM- Bus interface. The combination of small 6-bump wafer-lev- el package (WLP) and high accuracy makes this temper- ature sensor/switch ideal for a wide range of applications. Signed-off-by: Daniel Matyas --- .../bindings/hwmon/adi,max31827.yaml | 51 +++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml new file mode 100644 index 000000000000..37177eb9c039 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/adi,max31827.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch + +maintainers: + - Daniel Matyas + +description: | + Analog Devices MAX31827, MAX31828, MAX31829 Low-Power Temperature Switch with + I2C Interface + https://www.analog.com/media/en/technical-documentation/data-sheets/MAX31827-MAX31829.pdf + +properties: + compatible: + enum: + - adi,max31827 + - adi,max31828 + - adi,max31829 + I am really sorry, but I do not understand what I should do. Should I add oneOf or items to the compatibility property? + reg: + maxItems: 1 + + vref-supply: + description: + Must have values in the interval (1.6V; 3.6V) in order for the device to + function correctly. + +required: + - compatible + - reg + - vref-supply + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temperature-sensor@42 { + compatible = "adi,max31827"; + reg = <0x42>; + vref-supply = <®_vdd>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 0e64787aace8..8af1296ff1a0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12535,6 +12535,13 @@ F: Documentation/userspace-api/media/drivers/max2175.rst F: drivers/media/i2c/max2175* F: include/uapi/linux/max2175.h +MAX31827 TEMPERATURE SWITCH DRIVER +M: Daniel Matyas +L: linux-hwmon@vger.kernel.org +S: Supported +W: http://ez.analog.com/community/linux-device-drivers +F: Documentation/devicetree/bindings/hwmon/adi,max31827.yaml + MAX6650 HARDWARE MONITOR AND FAN CONTROLLER DRIVER L: linux-hwmon@vger.kernel.org S: Orphan -- 2.34.1 Best regards, Daniel