Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3754493rdb; Thu, 14 Sep 2023 01:15:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGo/iSMbuecx1Wl/KHVFAI+PUf/2hOS/z0xrhQsBlmRKJEePrpzwLj3lGJqB6hKtNeTrdxw X-Received: by 2002:a17:90a:744f:b0:263:5d25:150c with SMTP id o15-20020a17090a744f00b002635d25150cmr4106400pjk.29.1694679308946; Thu, 14 Sep 2023 01:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694679308; cv=none; d=google.com; s=arc-20160816; b=I2m+LV3D57H/DzWTcNt4UuPrklayldC50rD0QOR7lIUgV+YWXxVbTiyu44uXe/hM7a JD8td1RZPaIxmG8M9qyTBjK1WkqUAXdasb/0BV7NEutT5TVo2Z1UgxUkxrEO/pVyxo1Y BWn2cDNGidNh7ZDynrc1JuM9azT1BJBSV8Og4J8TUbVsxbkfgVKWEwOURRNossQaqrFo H7U323LrhKL4npt68qSpw4Hk4cDFQJA8TQZUlcI10zaIQRh94Psw2zj1NCQkkiS7RNqV DowjtN8FPneU143R4HkqHgMIT9i5U/aV8HOYjCTbS+sHLw5gczPRMd9cD75C09kntpf3 SCEg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Gboc+yTSlTpqo4O2hT0cAj0WNACoksBEekqcz7Hl4Y0=; fh=xUi0kiBUjdHMsg89DUV8DUYNxQ7TTNaKEZQk4x11bkI=; b=zAIlkDTFEMRnCR2oJmxx+VMHhf0nHby2+gja3oxyYzFMUKdBTpP7MrtJsSFbgA7nP8 A39yahIA1+W+fKiVpexGer6g8/HwRRyZbTuINRNM/EPOJSM8dJV4qD/E5sPbcWdzvu6z RuxvxK/49M9bZjWUFSPjQWZmKNpI24dIO5/xLIZUx15+2lhNKZrSteSCQMnb9V90xzKh lMbO6M4/5OmAuH1ls/tFdfLY5MD2PAteXxwi+Gven0qiaffnUzdmtKAm8iJ5cqDG8Ke6 pAyMMRY3rnkbvqCw25ddJxEttPG1nbAxdBNHaqXdkATbHm/Azn1ituVyb2P7yC4eTo6V HL8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qj/foAC6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ls5-20020a17090b350500b0026963a00ab0si1279406pjb.122.2023.09.14.01.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qj/foAC6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id D8CBE82E296F; Wed, 13 Sep 2023 22:44:15 -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 S234891AbjINFoA (ORCPT + 99 others); Thu, 14 Sep 2023 01:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234889AbjINFn7 (ORCPT ); Thu, 14 Sep 2023 01:43:59 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC91CC for ; Wed, 13 Sep 2023 22:43:55 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-404732a0700so784525e9.0 for ; Wed, 13 Sep 2023 22:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694670233; x=1695275033; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Gboc+yTSlTpqo4O2hT0cAj0WNACoksBEekqcz7Hl4Y0=; b=qj/foAC6JHM58o+shEjt5deuS1KouDYNa66h/L+Hp/4Rl+MkS77NG9jwg7M6byduLw CetU5Jvm+5EshWFqJm+5ZtBsP1znN0aE5Ll6yGcoTAv2T5h4NY7lgeq7Sk7EFzCoKcsD T74mCJGRCP2tKrS0u+OAhd0EhXRvYR09lrAQ5ZSEWLbwl6zcv/Cqqew9Iyk7j+t9EOGK 2Oahcp0itVZXqM4uqD11vJKj9Q+h+hU9SQFYXfDNMA7ka4mMnZIA5EZKr70c5+HD5bJl UR/iDwPSpboJtLpLZoHMsTGVE9n3snQYZGfhUdtKDQqaNkEL5elX8RhE55n3MFpgR/fW 6niA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694670233; x=1695275033; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Gboc+yTSlTpqo4O2hT0cAj0WNACoksBEekqcz7Hl4Y0=; b=OV44L6YL8AzZe4APyHAGKhG3ax7bbO8ycQD9i/douXiWPVZdKEdxNTqM2bED1PpiJC GH0GzbsDSyX2Qshl9rqeo7FXjepI+urv3le4Pt7vS8LoeDd7ukTrEIDThjcPoofI/58x Ahl17OBxocwAeLlZXRLNP/m/zi0aNa7D/734FjqEpzM2C8Pb6uVzda1+q3ZRZODIB9k4 WWt+L5icV17epZXE1sRMEhABVvc1y/lVwKLxLtIY0sooESF0oWl8OdlEMzjuC+Dbumln 9ROcWURbSytzR0GDNoQfknwPfhr0skJPYkfJuViZhI+0g7YBFplQKARuP5qzxT7zGG1S Bfgg== X-Gm-Message-State: AOJu0YwlpFoBJ3bAt7wpmX7jqHv42shkyQdgQztBemYiWdq3TxA3LS0V WKgDspOAA3Nt+3wzM9bpPMsrMw== X-Received: by 2002:a5d:444c:0:b0:318:7bc:122e with SMTP id x12-20020a5d444c000000b0031807bc122emr3500282wrr.23.1694670233432; Wed, 13 Sep 2023 22:43:53 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id k8-20020a5d4288000000b00317a29af4b2sm709967wrq.68.2023.09.13.22.43.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Sep 2023 22:43:52 -0700 (PDT) Message-ID: Date: Thu, 14 Sep 2023 07:43:50 +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 Content-Language: en-US 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" References: <20230913152135.457892-1-daniel.matyas@analog.com> <20230913152135.457892-3-daniel.matyas@analog.com> <177ef05b-0cca-be25-afad-ac518d9f6473@linaro.org> From: Krzysztof Kozlowski In-Reply-To: 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 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 22:44:16 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 morse.vger.email On 13/09/2023 17:48, Matyas, Daniel wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: Wednesday, September 13, 2023 6:41 PM >> To: Matyas, Daniel >> Cc: Jean Delvare ; Guenter Roeck > us.net>; 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 2/4] dt-bindings: hwmon: Added new properties to >> the devicetree >> >> [External] >> >> 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? Code is okay, after Guenter's explanation. However please fix the subject and improve the commit msg. Best regards, Krzysztof