Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp526660rdb; Tue, 19 Sep 2023 02:42:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNRDIyc9G96sv3C3m/PSvu6uKJ4J80pSY2lHJ4lT3RnVSLaBTWj4eGTKQwQEuLIldILlbN X-Received: by 2002:a05:6870:f59e:b0:1c8:bf19:e1df with SMTP id eh30-20020a056870f59e00b001c8bf19e1dfmr12696653oab.13.1695116573866; Tue, 19 Sep 2023 02:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695116573; cv=none; d=google.com; s=arc-20160816; b=nr6yq6T0DFpsar03IneHODr36tdEN/xsoRWbFcWukmvzevfVfB+icnSMrlvBSpj0OB szNgUQYlDmyCWEKH1f6LLGCy5jpfwDUS7TnQCIIOvkWNgzR8kJ6V8QHum9ZBJnCAXVHH 7mQ+UVsestVPFxyF8TJOkZBdEhi5+WKoQyTsq0isqs5BRF6Fblx9F0woARcGNrj564NY mCrp5s+Y4cu22DuBjWJ1tJzlxj4EYZAVxtSoSqXGIyNK2FesDQf6JJwVs0y97oDKUOGv lRw5zGP1JZ55cWGtFNsFvpm3hNmXAarZSokDjVQvefDjQnfSL4by9qeJ7I/eHUlqwo1Z eCCA== 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=LI5T7xXTn76+rCjf1LcsyL7Q0u1pHVOaWmBvScMHcQ4=; fh=qc7N/hGS3iGcR+Lz5dqizgi3ctiqy3jSIXMybcGB+CE=; b=DQmBoa7zx9z+MxRS1psrlri8s1g2wErZr1Mr7OyDrbxFBSGaTWHdR21Z/NYMtzmu0X dMvRWTgIMcuSl0bsFs0hPH1ckPLoAIAqqAHXKvd7lW2prh23w3XwLLfohT967D2ajRJ6 XN1VrP4HuYFogUFiPR1E4nA7qu8yX9r1BVct7vpRj0/c9EUfcuIaW/itAtZYeUupbJBU FmEsa7LKdtHhjyDH+piMtudeVYInKaO96zoeXB2CJk9QNuBNfC9GM7ENdRPQ4UPhBxpi sRtET7usVLPGQcdGaqQSmljYyVSkaGokYrxtSPObSJjC91MZOMdQCMbavDRKcJDHH3bx Jj6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id a35-20020a631a63000000b00577f65baa3dsi9358404pgm.849.2023.09.19.02.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:42:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 80C0E80755E8; Tue, 19 Sep 2023 02:36:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231515AbjISJgC (ORCPT + 99 others); Tue, 19 Sep 2023 05:36:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbjISJfz (ORCPT ); Tue, 19 Sep 2023 05:35:55 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC53E6; Tue, 19 Sep 2023 02:35:50 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38J8FW13001581; Tue, 19 Sep 2023 05:35:25 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3t5s7kn4hr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Sep 2023 05:35:24 -0400 (EDT) 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 38J9ZNka007691 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Sep 2023 05:35: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; Tue, 19 Sep 2023 05:35: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; Tue, 19 Sep 2023 05:35: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 38J9Z1d8030605; Tue, 19 Sep 2023 05:35:16 -0400 From: Daniel Matyas CC: Daniel Matyas , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , , , , Subject: [PATCH v4 3/7] dt-bindings: hwmon: Add possible new properties to max31827 bindings Date: Tue, 19 Sep 2023 12:34:51 +0300 Message-ID: <20230919093456.10592-3-daniel.matyas@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230919093456.10592-1-daniel.matyas@analog.com> References: <20230919093456.10592-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-GUID: BsOc3vwKK_u-s5Cp3dEOwaeHggD-G10J X-Proofpoint-ORIG-GUID: BsOc3vwKK_u-s5Cp3dEOwaeHggD-G10J 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-19_04,2023-09-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 mlxscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2309190080 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 02:36:03 -0700 (PDT) These modify the corresponding bits in the configuration register. adi,comp-int is a hardware property, because it affects the behavior of the interrupt signal and whatever it is connected to. adi,timeout-enable is a hardware property, because it affects i2c bus operation. Signed-off-by: Daniel Matyas --- v3 -> v4: Changed property names (adi,flt-q = adi,fault-q; adi,alrm-pol = adi,alarm-pol). Expressed default values in binding. v2 -> v3: Changed commit subject and message v1 -> v2: Added adi,timeout-enable property to binding. Fixed dt_binding_check errors. .../bindings/hwmon/adi,max31827.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml index 2dc8b07b4d3b..f60e06ab7d0a 100644 --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml @@ -32,6 +32,68 @@ 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,alarm-pol: + description: + Sets the alarms active state. + - 0 = active low + - 1 = active high + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [0, 1] + + adi,fault-q: + description: + Select how many consecutive temperature faults must occur before + overtemperature or undertemperature faults are indicated in the + corresponding status bits. + $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 + +allOf: + - if: + properties: + compatible: + contains: + const: adi,max31829 + + then: + properties: + adi,alarm-pol: + default: 1 + + else: + properties: + adi,alarm-pol: + default: 0 + + - if: + properties: + compatible: + contains: + const: adi,max31827 + + then: + properties: + adi,fault-q: + default: 1 + + else: + properties: + adi,fault-q: + default: 4 + + required: - compatible - reg @@ -49,6 +111,10 @@ examples: compatible = "adi,max31827"; reg = <0x42>; vref-supply = <®_vdd>; + adi,comp-int; + adi,alarm-pol = <0>; + adi,fault-q = <1>; + adi,timeout-enable; }; }; ... -- 2.34.1