Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3594817rdb; Wed, 13 Sep 2023 17:51:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQHIQTp4XjSElUuxsSKMc+09j4XOkWs6nGSlWIkmjFaa2pPbldngnY6oC5IishWdFYzDM2 X-Received: by 2002:a05:6808:13c1:b0:3a9:e40c:683c with SMTP id d1-20020a05680813c100b003a9e40c683cmr5071066oiw.1.1694652664305; Wed, 13 Sep 2023 17:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694652664; cv=none; d=google.com; s=arc-20160816; b=hpGmugV0uJJKdC2kNKwIJlgIzFGvqlFECBWcZ6yZMfApQES6Sbi6qLtqWom1fHDrY5 hFMereOCfcHp1o99MNC5Y16fz4v1QRory6hOEw5fuLHIjC/DmQdEjsa2xMdyIOOSjIls TmXRemSuun4J1cjdOuzJFErYQkNOlaKPhWslf6zRdTSmlpKsYDCSaYjGBlegOO3H823U SfN0u+VdF9Jd/RmzBa/FAbOOlJG1W65+owkFKqfUR90XoCqdqWmU0yccdVmcshrJ+LiK uZD2phFfyxDcBnsQvdRtWh0nfjhqxmEidlkeuBM4swrMtLj/LKFWkrCv5NAI5/+VQOip Grng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6Hbh6ZXKDhz/KGGt8fE9NnsA0nrENPPs+dh7XyDcr6Q=; fh=au8Bp99Znv1GyYnTszqubrJGGclzGcAkl42jXXRkAlE=; b=jySYNLvIQtRYM+YgzRTo4x+YjHZ0FnjPFiF43VDkoUfMd1UwA5JQzpKEnG9WnDGSO7 Z6KU+L/rGCCoUR/ha9pETPUDC6ZLgkCodRCzKpB5qKqLK/Xky584f4vBQLfWnFO17DdC dSYGSkp5NKAVgN7YKHyp80CB0BvKa8YZujvfzrZF8JmJIRm9IpfbP5OZvrCNyUjwh1nX rYuf9Vn9SGaZj6jo4TSEt37mIqGxOjOzIsm/f3+qu66cCJJXZsFgfFW9LUiWK25Mno+v dTgnJ+SX8WGHWJN3UiptlhAY3mtS76a3/aPbAyug3+lyIJ0tVndutl56YzhRk0SWt/2a Vt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yrem6MrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s3-20020a63d043000000b0056c4189d6c6si281725pgi.829.2023.09.13.17.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 17:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yrem6MrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 26C5B8228140; Wed, 13 Sep 2023 08:41:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229879AbjIMPla (ORCPT + 99 others); Wed, 13 Sep 2023 11:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjIMPlG (ORCPT ); Wed, 13 Sep 2023 11:41:06 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428672108 for ; Wed, 13 Sep 2023 08:40:39 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bf5bf33bcdso113000341fa.0 for ; Wed, 13 Sep 2023 08:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694619637; x=1695224437; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6Hbh6ZXKDhz/KGGt8fE9NnsA0nrENPPs+dh7XyDcr6Q=; b=yrem6MrLesXG2KS3JgTkCT2FTmW5jsLargh35ebvQ5PLnpHO1Q8dvUDuiiNFvuN+qx PZWIP2Xp2bFfjK6vV+f38t5KZSI4hzzj9xp5X4ctYTxT0Y5jgS9pzmuKMehpB3BL1ELx 9qmNisJKsbRidifYzmhE3LCLX1phf1ylOIi+Kxg9YbBoP9Fs72ohsfZKBSYhzMNNl07f 6vTHu8tXMQrg82Cw2hnngCboELcknhxXBOHs8enf8mUTH4x7Z9K8unD86iQ5PMrA5nGi UGBooD8MfMYuXM/cTdWaNzBn7Tm+1dFzXcNSsX4exyNhnoC4qnwh2g+h3+bnqHHhR44m K7DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694619637; x=1695224437; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6Hbh6ZXKDhz/KGGt8fE9NnsA0nrENPPs+dh7XyDcr6Q=; b=s3gCOQ3H7G/r+gwvoL+xddXvjPHuyoMrDTRRMfZRbHAZewZxdqOp+faPmqa8hTp8Rb 4yNTqrsjaybhvy3HpRbkdOaDyGQAmbsqM7jcyQfKadQb5yA9vcDVq2Qhr1/e+IkMF71B eDbzD9Au4IK0m2p/qS8hVbC19uV2VqCmlZ585cLeZ1XCGd8gZcbDGpp2/SMv4Z2rZ9kU Uyxw3Okx4oXdew654UfyoaMfiUfZBwOumgNRYDJ+A932zwrCbQX/iB/bI9MPbxE3/usf 2gKnpF6dgQagi0JZ41H93qoY0jq+LPgrG8Xdm3uWL2QE6MabKch/inA1Z4KAc+V18Adf 13Bg== X-Gm-Message-State: AOJu0YxLqWYxj2q+/j77DnntGUImPQThQ1VUwdHsKqtcFlKQQcTjTP6a 6v4rGfWlWFAReyKJKnvbQQyWp4XGxCGXk1XhL6U= X-Received: by 2002:a2e:7c19:0:b0:2b6:bb21:8d74 with SMTP id x25-20020a2e7c19000000b002b6bb218d74mr2620372ljc.1.1694619637390; Wed, 13 Sep 2023 08:40:37 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id oz13-20020a170906cd0d00b0098951bb4dc3sm8623318ejb.184.2023.09.13.08.40.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 08:40:36 -0700 (PDT) Message-ID: <177ef05b-0cca-be25-afad-ac518d9f6473@linaro.org> Date: Wed, 13 Sep 2023 17:40:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 2/4] dt-bindings: hwmon: Added new properties to the devicetree 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 References: <20230913152135.457892-1-daniel.matyas@analog.com> <20230913152135.457892-3-daniel.matyas@analog.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230913152135.457892-3-daniel.matyas@analog.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:41:35 -0700 (PDT) On 13/09/2023 17:21, Daniel Matyas wrote: Subject: not much improved. I am sorry, but you are not adding new properties to entire devicetree of entire world. You are actually not adding anything to any devicetree, because these are bindings (which is obvious, as said by prefix). You got comments on this. > These attributes are: > - adi,comp-int - boolean property > - adi,alrm-pol - can be 0, 1 (if not present, default value) > - adi,flt-q - can be 1, 2, 4, 8 (if not present, default value) > - adi,timeout-enable - boolean property Don't repeat what the code does. Explain why you are adding it, what is the purpose. > > These modify the corresponding bits in the configuration register. > > Signed-off-by: Daniel Matyas > --- > .../bindings/hwmon/adi,max31827.yaml | 35 +++++++++++++++++++ > 1 file changed, 35 insertions(+) > > diff --git a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > index 2dc8b07b4d3b..6bde71bdb8dd 100644 > --- a/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > +++ b/Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > @@ -32,6 +32,37 @@ 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). Why this is a property of hardware? > + type: boolean > + > + adi,alrm-pol: > + description: > + Sets the alarms active state. > + - 0 = active low > + - 1 = active high > + For max31827 and max31828 the default alarm polarity is low. For max31829 > + it is high. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + > + adi,flt-q: > + description: > + Select how many consecutive temperature faults must occur before > + overtemperature or undertemperature faults are indicated in the > + corresponding status bits. > + For max31827 default fault queue is 1. For max31828 and max31829 it is 4. > + $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). Why this is a property of hardware? Best regards, Krzysztof