Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp521924rdh; Thu, 26 Oct 2023 08:26:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEH1WlflTFnJspGhW+3kPn4vvNKFex0R0U1qG9/6hJOf/sDOVoXa+YQHzITDsJkythSqAGo X-Received: by 2002:a0d:e291:0:b0:5a7:fbd5:8c1 with SMTP id l139-20020a0de291000000b005a7fbd508c1mr19299373ywe.17.1698334009283; Thu, 26 Oct 2023 08:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698334009; cv=none; d=google.com; s=arc-20160816; b=iZK5p0BCN+Ss3OdD7I4LywHSCBSoYY1/KrhIWpUooA0U/P1CbGso3i1gd7hxbfEwuT QRS9dw0b2zYQbWAoETRTQTnHbkkErVSoLJmx2K1cWPQrHke6cUcV3o5oP23+jR2Ip1hW 0dxz/QN1E3yAnhTCdfOI1XPMc2BdEOOmoSzW+oyF6GEnnin4cRoc+po0apPNuQebJ2BS OHOAvWHYKoNoFvKOUPF4KqlfPFW9Ag/oOPA0+NXkkiIM5gaKE4yLaf1WEjmhavgHeztw x5w6VYcYjRcRVnYqovfj0xGYDdwAfYJD5cO7HwZj+ABuiNiXLftGbtUC0mYamnwIcBOx TqFQ== 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=wE/O205ZRKTuwUp7KOYxM/azhh3ZqV6mIWjXW3DcwJ0=; fh=BpDWYLWDdPGDnvxk36IoE2gIWoEX9xOnW71vy+4we9o=; b=vHqVTAfSplGRzn1KZ8TVOmdKmTG1poNISVbmh5H0+pJ4MiGApu040A2Q4ErVlbsEG4 6gP+9jdRenWEwdXwxgscdrU1gcQYLV5KIRvYSWp+h5QiYqyilEoG7dirJO4Up9t/7+fz VRmQL8+KmuYR3wSoKuM4UMOU73PRczK5OrH0IMAR3yuZMiMXKf/kWZriKD+ynMZe0jKD cqVCFQtVhUA/+asPrvdUQ9kFygjXWvUHL5JxXKNp7mkBqEAPXGfikko+Z3In0g+NDAzE 010YtWuiFu7XANGFsx9KwzCP3xr1DYQvWwu/0eTsl1WueAUxtGarLjZgqSMRrjvhgeoV Kftw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mes1gn0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w184-20020a8186c1000000b005a7af4fe63dsi14930953ywf.107.2023.10.26.08.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 08:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mes1gn0z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id C2D2A8185968; Thu, 26 Oct 2023 08:26:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345441AbjJZP0V (ORCPT + 99 others); Thu, 26 Oct 2023 11:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbjJZP0U (ORCPT ); Thu, 26 Oct 2023 11:26:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0643AC; Thu, 26 Oct 2023 08:26:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC321C433C9; Thu, 26 Oct 2023 15:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698333978; bh=7f5jXWpac8QZKPV1MUAg3K8E6GSbuJvhCPvV6ZUCJUs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mes1gn0zY9wsK9yGdAJYMQwOkw/vWggKfbPilTP63TgMbYNuTEDhgUKEfly6OeUsy Z0/ZzufvG/Kz0eqtWpKHmopfJARvTf/8v/lEp6Bo4RqEntEqzHmpN3JQUaEpJy27S3 s6OD+wp0VGGwJEvq1GA0KTDYxjjJpTQywyloxiZIjIxDmcbFkQYXna0L1uUmctcNvt izuOfGIANVrtWl056FnZ93Kpm2u1jtpC7SIORe1R/1ujf6TVPaugc/eOfBOidvqRyc TXA/ObZ6iJUm8g50a4gR3cN1LQdgu+ooMznywwBgVnTN5YIsDnv1xTERQ1cspE6Few byZ9032N1A9AQ== Date: Thu, 26 Oct 2023 16:26:13 +0100 From: Conor Dooley To: Guenter Roeck Cc: Delphine CC Chiu , patrick@stwcx.xyz, Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Add lltc ltc4286 driver bindings Message-ID: <20231026-poison-encrypt-1df55e023867@spud> References: <20231026081514.3610343-1-Delphine_CC_Chiu@Wiwynn.com> <20231026081514.3610343-2-Delphine_CC_Chiu@Wiwynn.com> <20231026-dicing-crispy-a10af575d3e5@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="krQTSOoQEUtjB+4u" Content-Disposition: inline In-Reply-To: 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Thu, 26 Oct 2023 08:26:43 -0700 (PDT) --krQTSOoQEUtjB+4u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 26, 2023 at 08:09:52AM -0700, Guenter Roeck wrote: > On 10/26/23 07:25, Conor Dooley wrote: > > Hey, > >=20 > > On Thu, Oct 26, 2023 at 04:15:11PM +0800, Delphine CC Chiu wrote: > > > Add a device tree bindings for ltc4286 driver. > >=20 > > Bindings are for devices, not for drivers. > >=20 > > >=20 > > > Signed-off-by: Delphine CC Chiu > > >=20 > > > Changelog: > > > v2 - Revise vrange_select_25p6 to adi,vrange-select-25p6 > > > - Add type for adi,vrange-select-25p6 > > > - Revise rsense-micro-ohms to shunt-resistor-micro-ohms > > > --- > > > .../bindings/hwmon/lltc,ltc4286.yaml | 50 ++++++++++++++++= +++ > > > MAINTAINERS | 10 ++++ > > > 2 files changed, 60 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/hwmon/lltc,ltc= 4286.yaml > > >=20 > > > diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yam= l b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml > > > new file mode 100644 > > > index 000000000000..17022de657bb > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml > > > @@ -0,0 +1,50 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/hwmon/lltc,ltc4286.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: LTC4286 power monitors > > > + > > > +maintainers: > > > + - Delphine CC Chiu > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - lltc,ltc4286 > > > + - lltc,ltc4287 > >=20 > > I don't recall seeing an answer to Guenter about this ltc4287 device: > > https://lore.kernel.org/all/22f6364c-611c-ffb6-451c-9ddc20418d0a@roeck-= us.net/ > >=20 >=20 > At least the chip does officially exist now, and a datasheet is available. >=20 > https://www.analog.com/en/products/ltc4287.html >=20 > It shows that coefficients for the telemetry commands are different, > meaning that indeed both chips need to be explicitly referenced > in the properties description (and handled in the driver, which proves > my point of needing a datasheet before accepting such a driver). Oh neat, would've been good if that'd been mentioned! > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + adi,vrange-select-25p6: > > > + description: > > > + This property is a bool parameter to represent the > > > + voltage range is 25.6 or not for this chip. > >=20 > > 25.6 what? Volts? microvolts? > > What about Guenter's suggestion to name this so that it better matches > > the other, similar properties? > >=20 >=20 > I still would prefer one of the more common properties. > I still prefer adi,vrange-high-enable. I think, from reading the previous version, that this is actually the lower voltage range, as there is a 102.x $unit range too that is the default in the hardware. Obviously, the use of the property could be inverted to match that naming however. Cheers, Conor. --krQTSOoQEUtjB+4u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZTqFFQAKCRB4tDGHoIJi 0miPAP9L8K6SvI6VCT2EjTet+tJAmaS2yY3HJ6tRbYuno10IBQEAwzAatI/gAbTd v+T2gZMjF8Xf3EaQtl/98SNYuVMLswc= =OU8X -----END PGP SIGNATURE----- --krQTSOoQEUtjB+4u--