Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4680261rdb; Fri, 15 Sep 2023 09:07:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGiM8Nndk2aR00JUac5CFOutXqUm7etlWhIilpvDJfH4+DHdlW35JyirnnQbyux+4F3YU5J X-Received: by 2002:aa7:88d3:0:b0:68e:487c:c4b7 with SMTP id k19-20020aa788d3000000b0068e487cc4b7mr2416320pff.11.1694794047165; Fri, 15 Sep 2023 09:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694794047; cv=none; d=google.com; s=arc-20160816; b=1AIDar5L5pAgHp/fhn9G0IXLSV6MByGm8rcHZXyJVGJfzPg9wM0z9azLQIdxaPukc/ SRX8NDk7GEj/X5LLZVj39USkTie4HNB/nxe6+4Q+nbxWrYgLxAmfdwX6n9DWf8bsCTB6 GkQzHhfCSB9MTY8mhRnrO44dH78F6Sw2SUCJ9ir1RhT/qnG4vedz826yTeETCBTIPc/E ulYjIfG+Uo+lBGD8H+ckYPBlqOa2/BADGJUY9ssBX3CGJq7XUbnI9hMKwdEcBp2Dgoxy R9wbhzVHChjfAoVuq5KKg+5XVmpwwCBkJunHvPsgHlhsRjdr4v0pPnRtR4pQqZqIRILc ga0Q== 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=nGTum6Zhr5K+4WtrE/FbF0qOxTrIOxTeUETNbdoPcZQ=; fh=xUi0kiBUjdHMsg89DUV8DUYNxQ7TTNaKEZQk4x11bkI=; b=S2Zc+BkQMc9vMRYdO6cwryTHdCo1M4Ua6N7E9iir+j0aCnLNA7Pr2hsGfu+qqlSz8x VFBZEi/U8KKrzV54krnfotILt44r3O7j0HLXI+RYywDOJ+ux4jrfAXOkXty0tBXyeGr5 +8mwNUCN2TOORLJU9tBYYcl45kJgXkmQFF7ex9BuE7rl8LRRMNO/T7Ui9OAHFdmJq9jz HIOIdNVYhSD4AXbqqHEMWaoS5a8gtwoHKSmnZEdHUlRt+L8psTfgTw2mvw2YsPlWNZ/I LhjNwyw6NVFE9NbLdq8MzRjuuh+nRP78x4gWASLCJ+VdpQh5eedcNp6+fWo6KSqV2bM7 QINg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rkgZXP7E; 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 h18-20020a056a00231200b0068feb1cf986si3698632pfh.241.2023.09.15.09.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 09:07:27 -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=rkgZXP7E; 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 CF0C683BBF81; Fri, 15 Sep 2023 08:59:09 -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 S236399AbjIOP6p (ORCPT + 99 others); Fri, 15 Sep 2023 11:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236309AbjIOP6X (ORCPT ); Fri, 15 Sep 2023 11:58:23 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A0C10CC; Fri, 15 Sep 2023 08:58:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B89EC433C7; Fri, 15 Sep 2023 15:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694793497; bh=rHPOWSi7ajq/kQXPUpK+1+DizBbjV6FvUrJCRMYwJxQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rkgZXP7EvoPYQ//HjY99w5xFtAmxtvjMDOeP1+7oGYQd3hC+DDUm+/G/yDr0LJPFq 7pMN4plHAvsLMhWTooH/VAfydyrzfRHOdEpsfk1BsB6wILO9WQRhqg012ZdhCSSjHo XbEx5O3/1oLDKu52PWRNkTv627AlJYCbzya81B7Lf+1l/ve9Jj06wgp4PH7zbH9LfK tYwt/K4Tvmwf2l5mTTZG0F43RTIcMlEqlG4h2hsJYOlyKNKMVvhoDmmsjTKt9TbWiS CxN6BMmYnkAUphrNPZfMYhNLW+Lcjo+SDinkWaGiSh9GjnO1zPmrtfOfNq8YKrGywg 9RfwfOU3An2yA== Date: Fri, 15 Sep 2023 16:58:12 +0100 From: Conor Dooley To: "Matyas, Daniel" 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 2/5] dt-bindings: hwmon: Add possible new properties to max31827 bindings Message-ID: <20230915-battle-shrouded-9d7e9e3cd6c0@spud> References: <20230914075948.208046-1-daniel.matyas@analog.com> <20230914075948.208046-2-daniel.matyas@analog.com> <20230914-qualify-ragweed-b06b7b7923c9@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fu/FZ+WQJsjjwQ/a" 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 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]); Fri, 15 Sep 2023 08:59:10 -0700 (PDT) --fu/FZ+WQJsjjwQ/a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 15, 2023 at 03:31:13PM +0000, Matyas, Daniel wrote: > > -----Original Message----- > > From: Conor Dooley > > On Thu, Sep 14, 2023 at 10:59:45AM +0300, Daniel Matyas wrote: > > > + adi,alrm-pol: > >=20 > > Characters are not at a premium, is there a reason not to use the full > > words? "flt-q" in particular would be quite cryptic if I saw it in a dt= s. > >=20 > > > + description: > > > + Sets the alarms active state. > > > + - 0 =3D active low > > > + - 1 =3D active high > > > + For max31827 and max31828 the default alarm polarity is low. F= or > > max31829 > > > + it is high. > >=20 > > This constraint can be expressed in the binding, rather than in free fo= rm > > text like done here. Ditto below. > Ok, but how? The default values are different depending on the compatible= string. I searched for similar examples, but I found nothing... >=20 > Some bindings use 'default: ' to declare the default values, but this is = the default for every chip. Something like allOf: - if: properties: compatible: contains: const: adi,max31829 then: properties: adi,alrm-pol: default: 1 else: properties: adi,alrm-pol: default: 0 Cheers, Conor. --fu/FZ+WQJsjjwQ/a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQR/FAAKCRB4tDGHoIJi 0jsgAP4jkMxSLKa4saLHIsoqeAjgLQaDQ1jseRxF06yoFniMZAEA8vhX/6PTOojt +Hlpg9H2JENwURZ0ZmJL1RBWpL5nUQ8= =MgnR -----END PGP SIGNATURE----- --fu/FZ+WQJsjjwQ/a--