Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3312183rdb; Wed, 13 Sep 2023 08:23:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2iblJnEq7zCL4BjhaRT0TGRq0Tzr231NTZyBZhmtWKKpg7yNCb6oO3Pv14bHfVjTMstoC X-Received: by 2002:a17:90b:4b52:b0:269:3dd5:b009 with SMTP id mi18-20020a17090b4b5200b002693dd5b009mr2497716pjb.44.1694618625980; Wed, 13 Sep 2023 08:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694618625; cv=none; d=google.com; s=arc-20160816; b=cP89J7KneLXtRM/pGh7/yqw6fyoFeMkhWm8MNdRm75ImMaOa1T5b/05kUpeiuuE1Ef 8fBRgn9+trjtfVMT/nkQ8YCYBcKL/RpT99OmNSAbTDI02kSDRvbHCxuc0JveeeiCKrKS kWj0Xyi/zfpQkFN/E2orQGJ4J9yPW4HcT3soBp+sbPIFdSp7UWoDuYifglpXtK+YxYHE whS6gU5ZbmUCDYrptoDxM5a2WdSRibe0MUFt/aeKaatUe8GrMJ0c8a05CpXs+s5DQJqt kduH4Ky7g4rQMiZzgVOsXaRwhNqIVwb1R1efR5ZC41SBgvth54H4wbOrbi1aOENAz2q7 tUPw== 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 :references:in-reply-to:message-id:date:subject:cc:from; bh=zCq8c0xh/yirIUwJJUoj5qWndPPzZQNigmJz02OiTO8=; fh=qc7N/hGS3iGcR+Lz5dqizgi3ctiqy3jSIXMybcGB+CE=; b=qgetXl1PGfNG9QP25JrzdsgmHQpsaSlKXCPOHwP8fAEEhgr0V6dA249vbTclBK8RsN 4/uH79OzS2pbq0uU8rBT9nroJM/MntyqlVAzyrFWVJ+cwR70UkWBWD9586Mbryhiz+eS 2unU1xCDByxtm2nF7K/bCkq6zkw7CG78js2BNYMt8ILp9EeE3j+2x/J4xDtDKoOuh8vX UbRfQSed9egrPq5zxrOtsRuxsX5i4n8Gj0SK5K8VZKWqBCyOLAH2TC8mpDmmPBXDzOba i5YA6IgsWXU9Qa31FAVwcyBfASJoY692sQWBbwKZG2Iv/EnycGAOjZMQ95ElUiIkYUHW LaQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id on7-20020a17090b1d0700b002744169a0cbsi1946862pjb.99.2023.09.13.08.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:23:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 1A03380DF9BE; Wed, 13 Sep 2023 08:23:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235530AbjIMPWy (ORCPT + 99 others); Wed, 13 Sep 2023 11:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239215AbjIMPWu (ORCPT ); Wed, 13 Sep 2023 11:22:50 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7E201BEC; Wed, 13 Sep 2023 08:22:43 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38DDNbMk007131; Wed, 13 Sep 2023 11:22:25 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3t2y8f563g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 11:22:24 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 38DFMNpw004937 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Sep 2023 11:22:23 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Wed, 13 Sep 2023 11:22:22 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Wed, 13 Sep 2023 11:22:22 -0400 Received: from daniel-Precision-5530.ad.analog.com ([10.48.65.230]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 38DFLmjC007886; Wed, 13 Sep 2023 11:22:16 -0400 From: Daniel Matyas CC: Daniel Matyas , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , , , , Subject: [PATCH 2/4] dt-bindings: hwmon: Added new properties to the devicetree Date: Wed, 13 Sep 2023 18:21:32 +0300 Message-ID: <20230913152135.457892-3-daniel.matyas@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230913152135.457892-1-daniel.matyas@analog.com> References: <20230913152135.457892-1-daniel.matyas@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: _z_s-ZBdPl4UijuCYQUZkHi74r9CjPEp X-Proofpoint-GUID: _z_s-ZBdPl4UijuCYQUZkHi74r9CjPEp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_09,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 phishscore=0 malwarescore=0 adultscore=0 priorityscore=1501 impostorscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2309130125 To: unlisted-recipients:; (no To-header on input) 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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:23:04 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 groat.vger.email These attributes are: - adi,comp-int - boolean property - adi,alrm-pol - can be 0, 1 (if not present, default value) - adi,flt-q - can be 1, 2, 4, 8 (if not present, default value) - adi,timeout-enable - boolean property These modify the corresponding bits in the configuration register. Signed-off-by: Daniel Matyas --- .../bindings/hwmon/adi,max31827.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml index 2dc8b07b4d3b..6bde71bdb8dd 100644 --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml @@ -32,6 +32,37 @@ properties: Must have values in the interval (1.6V; 3.6V) in order for the device to function correctly. + adi,comp-int: + description: + If present interrupt mode is used. If not present comparator mode is used + (default). + type: boolean + + adi,alrm-pol: + description: + Sets the alarms active state. + - 0 = active low + - 1 = active high + For max31827 and max31828 the default alarm polarity is low. For max31829 + it is high. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + adi,flt-q: + description: + Select how many consecutive temperature faults must occur before + overtemperature or undertemperature faults are indicated in the + corresponding status bits. + For max31827 default fault queue is 1. For max31828 and max31829 it is 4. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 4, 8] + + adi,timeout-enable: + description: + Enables timeout. Bus timeout resets the I2C-compatible interface when SCL + is low for more than 30ms (nominal). + type: boolean + required: - compatible - reg @@ -49,6 +80,10 @@ examples: compatible = "adi,max31827"; reg = <0x42>; vref-supply = <®_vdd>; + adi,comp-int; + adi,alrm-pol = <0>; + adi,flt-q = <1>; + adi,timeout-enable; }; }; ... -- 2.34.1