Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp582217rdb; Tue, 19 Sep 2023 04:39:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaDPm3oj1mxPSS6AhHiMIDb4bZZF/AbCdeqO6/yML0PSH7apgnpwC+In/DUZe22w0p1V3P X-Received: by 2002:a17:903:230c:b0:1c3:8976:e821 with SMTP id d12-20020a170903230c00b001c38976e821mr11292818plh.15.1695123562717; Tue, 19 Sep 2023 04:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695123562; cv=none; d=google.com; s=arc-20160816; b=ns5tl/E1H6EsJw7lkbFpkLyUYmzogGXE99NB3mU4etBAkwOViAXzZOXEbCcUW2ViOd AFXrS7SUUHtRILo0mSFeNNWU6Ni8UApWJfzEXmuc8/mf9QAU1w6+V1EFFVs9eimjTLIx /nPyx7D+TRDY+BAWFjD/VvCJ/UGN0sGIirS4aMsaD+Jdn3YIKlYY9BSJx4mcqcz7z2xN A/deKuBDLQ0z2E6Gv4oIyuc2Ae/jy2+qcAZp8dYkhs1Cda5ov1w5dhPfxvXKvE1fCq4K qp+8XxH0qGG5pnTUGkA4I9i+diMDviM08LgPyfvQ/ohv0y0FZbMAhvd3QBvsJNJsfdgx CILA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iWenOI8fTL1BEM3LKvMMO8MBJrKXL3+S6gU0PFd9ALY=; fh=au8Bp99Znv1GyYnTszqubrJGGclzGcAkl42jXXRkAlE=; b=eOOuRED544z4fZitNmJ2Dq6vPihFvocwu01lMCSgi7doKNAJAOjCmBxXjWIzAl5or9 KIuPI5SWm008k8DKQHg9djcCYpE4LEZoobH+d0eUKjlth9h7Rrm+3fKTP7Jv8VpRpluK 0RBXNLcqoZpDOsTjU7GnQjwCgPpDkl/fJXrBsnbnGCO+oUzGuN/u6v/hUwJoZrI5ttCi rymx8gibUK61lxqZwrY95knNc53IJcIDFJD6YjDzkr+ygbPHwGCj0uDdCpdgSYxf/2DB DJ4+U9TcY6j76UsD2hZ0Si5NmfKKfzuGVOJX3qawBd7+qbMd5QkeqCOyz1mx/r6e+oUz oBPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pgRh1Q2a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d1-20020a170903230100b001c224748a65si9729007plh.476.2023.09.19.04.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:39:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pgRh1Q2a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8DA7F808D2BC; Tue, 19 Sep 2023 04:00:50 -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 S231935AbjISLAr (ORCPT + 99 others); Tue, 19 Sep 2023 07:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbjISLAm (ORCPT ); Tue, 19 Sep 2023 07:00:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 457EB114; Tue, 19 Sep 2023 04:00:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 917D4C433C8; Tue, 19 Sep 2023 11:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695121235; bh=ozaaNy4A2j0mALWUaebh6QEMAgfZg8sTwwxTOEiQSmg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pgRh1Q2aQOq7MkEWZtc6silnhIXVu7ssk1lrCtjWGpOId4D15+051Hs3CCNp6B5dJ 6rULnREK+E9yR50coftq4rcIfbH+Z8G/yN094LrU6ZswWL5i50UJOdNZI8+g/fG8EA F4tLJfJpr1wD9KVw9/gLot3EbTYRvFaGOm6B3I/GjOqYFYPqMyEP90DSrIMorYqoF0 ADJu1688mVobT6eH3ZbXIjj3u7XmTMj4DcfNNU+KHnn+odTMko6ZHsKsDB+6053q39 x7w7X+MZIB/XbNHODn7DuLQOaZmYlqjmBPGXuGfPlSXgD4HtqMowGWBs+Q+x/8cpdh I7CnvXsPLBQEQ== Date: Tue, 19 Sep 2023 12:00:30 +0100 From: Conor Dooley To: Daniel Matyas Cc: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v4 3/7] dt-bindings: hwmon: Add possible new properties to max31827 bindings Message-ID: <20230919-f2858c937249f5c6746d416b@fedora> References: <20230919093456.10592-1-daniel.matyas@analog.com> <20230919093456.10592-3-daniel.matyas@analog.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+bnDgX8rN5Rak+ZZ" Content-Disposition: inline In-Reply-To: <20230919093456.10592-3-daniel.matyas@analog.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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]); Tue, 19 Sep 2023 04:00:51 -0700 (PDT) --+bnDgX8rN5Rak+ZZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Tue, Sep 19, 2023 at 12:34:51PM +0300, Daniel Matyas wrote: > These modify the corresponding bits in the configuration register. >=20 > adi,comp-int is a hardware property, because it affects the behavior > of the interrupt signal and whatever it is connected to. >=20 > adi,timeout-enable is a hardware property, because it affects i2c > bus operation. >=20 > Signed-off-by: Daniel Matyas Thanks for the updates. This looks okay to me now. Reviewed-by: Conor Dooley Thanks, Conor. > --- >=20 > v3 -> v4: Changed property names (adi,flt-q =3D adi,fault-q; adi,alrm-pol > =3D adi,alarm-pol). Expressed default values in binding. >=20 > v2 -> v3: Changed commit subject and message >=20 > v1 -> v2: Added adi,timeout-enable property to binding. Fixed > dt_binding_check errors. >=20 > .../bindings/hwmon/adi,max31827.yaml | 66 +++++++++++++++++++ > 1 file changed, 66 insertions(+) >=20 > 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 dev= ice to > function correctly. > =20 > + 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 =3D active low > + - 1 =3D 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 w= hen 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 =3D "adi,max31827"; > reg =3D <0x42>; > vref-supply =3D <®_vdd>; > + adi,comp-int; > + adi,alarm-pol =3D <0>; > + adi,fault-q =3D <1>; > + adi,timeout-enable; > }; > }; > ... > --=20 > 2.34.1 >=20 --+bnDgX8rN5Rak+ZZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQl/SwAKCRB4tDGHoIJi 0lIhAQDC5V+WeEqVcdnL49Hgv0BWfJn95IGYtTsh6LaOMhVwqgEA/vjkH07s3R7P N+WNivHH24dE+u4jHH20ugjnxuDoegY= =JfNV -----END PGP SIGNATURE----- --+bnDgX8rN5Rak+ZZ--