Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2044682rdb; Mon, 9 Oct 2023 10:35:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7UJ/+JK6Wob3Qz5B+jYGOefpYizyolBz4tU/K32vcivTqoqNVb1Jxr/TpJdSugtFj0NMV X-Received: by 2002:a05:6358:2906:b0:134:dc90:b7d1 with SMTP id y6-20020a056358290600b00134dc90b7d1mr19981121rwb.25.1696872932193; Mon, 09 Oct 2023 10:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696872932; cv=none; d=google.com; s=arc-20160816; b=xH+dOqhnXSe85LulytHXA9oBbEtrvlr0oWNH3/x1GLLerMLTXZjqdYP10O2oOU9dPu iQ8ulVl1kd8nXq2vTrMuafd3RRLDnMHQvt0nmJFW0fHV5ESS3Om23Eka0VoIzi+hWHRb HIb0FJtz/l/78cVp+nv5fE/5dfGqUjdQbscSFtBGB3+62Ci+J5kN3RIZK0IIIB4ppRs1 8/d0dfsopJuNazqP6gA0TbVs3qe+q/ziqVjDEpPsZEpgMmQFnoePvJnBwe5XRw0cqcpk Oc7HuMK1/TZJz/iDkwNwgQtIjZkEBPm0qKgt2XeM8N1fyZIGGdQYu0v3nVCJUF1hxihY vUMw== 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=Dp3wv3bJfGenJQxmvGXtUAVPZZdyESMMlGxUOzKWIxI=; fh=NVbW1UFqqIxTwIlWyivg0SltsdEPRUqzJL3QDbKQnXY=; b=iRj77bwoh086GtSirck4g1c6jnChM5CJq7k//EbfCCJN+M7Up51/yD+syAJnZvuH1G E5ZbNqgeVA6MftCrOJZvh7Ih13avvU2E0ShPA9JR39zFpOayEG3l6ApzOoQj0Uw7DhdJ IffTr2BgTGPMlySUEzMLv9LoHuXBXtpgcPyIp4iMVp/+saIKZEefPmeOEj18LOpfJ0tV SCTVWoufkKWmH7jjt0wbtcZYYJiZLBYHkutuvN4JWjngVKx5LcJ/6X7MP3xhIVKKScjb /ssAJL6PNu5n9oLMx9zCHy0egbppRtG3jCQveNdAhNKXUKD6MF76hkmd82PC6KIOAMJj rewA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RDr93PRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bv10-20020a632e0a000000b005852a35afeesi9676548pgb.186.2023.10.09.10.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 10:35:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RDr93PRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id B3E34801B6EF; Mon, 9 Oct 2023 10:35:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377459AbjJIRfJ (ORCPT + 99 others); Mon, 9 Oct 2023 13:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377385AbjJIRfH (ORCPT ); Mon, 9 Oct 2023 13:35:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A806E94; Mon, 9 Oct 2023 10:35:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1366C433C8; Mon, 9 Oct 2023 17:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696872906; bh=1ZYVBGazHy2d4Xk2g9EBASgik4ghV3l90e5mT3K1Ytc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RDr93PRPR2Q/aDAn5KZ/clRWHgfjNEsU4Sm9fe6ojAyybNu2a+vz/JFOL2gBgyem0 AviVkEuKu9pfF2QwsiUVUQjWBbosIgwB8QehsabJ0WrNFrsQmHkomYR5wfARuJcWvV 9lYEMe6yh0eq4kI766BIsvtm7SP1Bd8TtBNfTSXzJQx1+l+DcG7YwYGJHpHiXyhFF1 C40bo6oAG24vz3K9ABTdBjX5SH2NEz18pOdnrViwbuNXJk/7KASVBejSR5KhC3Kqn3 pTLkC/ruDcqrsZsVHZxUdLgzYgxlV4xDE8oECUV5qfVWyx2FFXYmjXBPTnw0N2Tuvm 2ZY/ZXS2vVDiw== Date: Mon, 9 Oct 2023 18:35:01 +0100 From: Conor Dooley To: Antoniu Miclaus 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 v3 1/2] dt-bindings: hwmon: ltc2991: add bindings Message-ID: <20231009-maimed-reenact-05c6e3b36ca9@spud> References: <20231003080059.8041-1-antoniu.miclaus@analog.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Sb32d3m8HlxF4rSL" Content-Disposition: inline In-Reply-To: <20231003080059.8041-1-antoniu.miclaus@analog.com> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 09 Oct 2023 10:35:29 -0700 (PDT) X-Spam-Level: ** --Sb32d3m8HlxF4rSL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 03, 2023 at 11:00:39AM +0300, Antoniu Miclaus wrote: > Add dt-bindings for ltc2991 octal i2c voltage, current and temperature > monitor. >=20 > Signed-off-by: Antoniu Miclaus > --- > changes in v3: > - expand description for differential channels and temperature channels = by > mentioning the pin configuration that is set via these properties. > - add `additionalProperties: false` for the channel properties > - make `reg` required for channel properties > - make `adi,temperature-enable` and `shunt-resistor-micro-ohms` mutually > exclusive following the approach suggested in review. Thanks for the updates. Reviewed-by: Conor Dooley Cheers, Conor. > .../bindings/hwmon/adi,ltc2991.yaml | 128 ++++++++++++++++++ > 1 file changed, 128 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2991.y= aml >=20 > diff --git a/Documentation/devicetree/bindings/hwmon/adi,ltc2991.yaml b/D= ocumentation/devicetree/bindings/hwmon/adi,ltc2991.yaml > new file mode 100644 > index 000000000000..011e5b65c79c > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/adi,ltc2991.yaml > @@ -0,0 +1,128 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > + > +$id: http://devicetree.org/schemas/hwmon/adi,ltc2991.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices LTC2991 Octal I2C Voltage, Current and Temperature= Monitor > + > +maintainers: > + - Antoniu Miclaus > + > +description: | > + The LTC2991 is used to monitor system temperatures, voltages and curre= nts. > + Through the I2C serial interface, the eight monitors can individually = measure > + supply voltages and can be paired for differential measurements of cur= rent > + sense resistors or temperature sensing transistors. > + > + Datasheet: > + https://www.analog.com/en/products/ltc2991.html > + > +properties: > + compatible: > + const: adi,ltc2991 > + > + reg: > + maxItems: 1 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + vcc-supply: true > + > +patternProperties: > + "^channel@[0-3]$": > + type: object > + description: > + Represents the differential/temperature channels. > + > + properties: > + reg: > + description: > + The channel number. LTC2991 can monitor 4 currents/temperature= s. > + items: > + minimum: 0 > + maximum: 3 > + > + shunt-resistor-micro-ohms: > + description: > + The value of curent sense resistor in micro ohms. Pin configur= ation is > + set for differential input pair. > + > + adi,temperature-enable: > + description: > + Enables temperature readings. Pin configuration is set for rem= ote > + diode temperature measurement. > + type: boolean > + > + required: > + - reg > + > + allOf: > + - if: > + required: > + - shunt-resistor-micro-ohms > + then: > + properties: > + adi,temperature-enable: false > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - vcc-supply > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + hwmon@48 { > + compatible =3D "adi,ltc2991"; > + reg =3D <0x48>; > + vcc-supply =3D <&vcc>; > + }; > + }; > + - | > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + hwmon@48 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + compatible =3D "adi,ltc2991"; > + reg =3D <0x48>; > + vcc-supply =3D <&vcc>; > + > + channel@0 { > + reg =3D <0x0>; > + shunt-resistor-micro-ohms =3D <100000>; > + }; > + > + channel@1 { > + reg =3D <0x1>; > + shunt-resistor-micro-ohms =3D <100000>; > + }; > + > + channel@2 { > + reg =3D <0x2>; > + adi,temperature-enable; > + }; > + > + channel@3 { > + reg =3D <0x3>; > + adi,temperature-enable; > + }; > + }; > + }; > +... > --=20 > 2.42.0 >=20 --Sb32d3m8HlxF4rSL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZSQ5xQAKCRB4tDGHoIJi 0g+SAP48zfjGLubhF083okMidLJzwi9GXWmdPgm2K/XEx2vJ4wEA0rwolj+tSDO4 X8BeLlW4PVLEukU92W77hIo/kNPSAw0= =ymEK -----END PGP SIGNATURE----- --Sb32d3m8HlxF4rSL--