Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp273810rwr; Thu, 4 May 2023 02:53:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ55Bi4P4efv3cLq8uJrt4Qp391ALLyE4VMnYRt8RB1761vNM0QB0UKyYov7Pbc6yQg3AmTd X-Received: by 2002:a17:90b:4a8c:b0:23d:a2a:3ae4 with SMTP id lp12-20020a17090b4a8c00b0023d0a2a3ae4mr1557258pjb.44.1683193999068; Thu, 04 May 2023 02:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683193999; cv=none; d=google.com; s=arc-20160816; b=XapzmsNuJPCqK8y7OFgT+vKfzxe8sItx89DBf+BVYEIXxmdZV1jPTEqEuoC4ICxcrr pqJFcZaBOtnMRgRAJMJ0n7wVy9FjXsQn6EPHVddguSKuG+4vYT9ogf5KsPaxBdnP3KA1 MSF6W15+7K+jXgLmQUPNi8IIC+Tqud+Tw+69jSnryCwCILweBX3i9usjN/4Q/egrOwNn eOePITSHnk8rTJWhGs/sbfLZZyDgOaRZyeIzmuMbE6ySBkcWPQQSzJt+OGb0WYXU3zCB S3CTMD+ihERA2F4uxaTbUhYpaU7Y90xDMmAnXxPvzBYcU79eRLfRuo210b4ZtaqSsqq4 puqQ== 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=6qubOiERHGS1J8v+Zq6pOuw2BSBtjZ1nMOAjNz3GrsI=; b=Ngqc13WHhxvtRcrF+cZOsQAHXa5BPS7gsVnhhcDGocukEDGk0vYCzLyX6bLLbg+z7K QhFmTaMSMFIPmhiR3QALsSjid6sohmqO4QXdHsmuNo8bZsAlIAlSAYxcVz3lvsC1oWKE 4ruJiFsCMpgz0zOT5qbAqD8bH7OLJ3x5NSOyg3tWVrkXIYt5Kde8GwxL+OuT8XSyuQK9 WBBt3GchhqvZCKkBMbufU0Qxb8RlMt5c+5CalaiTNoAmfL9VVeWZalzatCasVykDIYqJ wD9xsgmE2apEVeirY9nZ0E3Tkvcl1nzMaU8emD9Q+rFrCHLoO2BDqt5yoYpRnLrod0fp e5TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dK9tDu74; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a17090a62cc00b0023d23393318si15622099pjs.55.2023.05.04.02.53.05; Thu, 04 May 2023 02:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=dK9tDu74; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbjEDJr6 (ORCPT + 99 others); Thu, 4 May 2023 05:47:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjEDJrb (ORCPT ); Thu, 4 May 2023 05:47:31 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFC224C17 for ; Thu, 4 May 2023 02:47:29 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1ab0c697c84so1475855ad.3 for ; Thu, 04 May 2023 02:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1683193649; x=1685785649; 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=6qubOiERHGS1J8v+Zq6pOuw2BSBtjZ1nMOAjNz3GrsI=; b=dK9tDu74Ul9fYi1mNmYCrKtHmZwx8DyEgBxplBiB0zir8cqs0JYavDhu+vIgpt2Yd4 sCfLiMpEZRje8q3QW3xHfQIEh59yWw6MrC5+UQkYm91Ds5EgjSF/n7stSk54JOIwY+j6 N0xLB+TZfkMtbvYNmlRNE7HvnygLAZG0n+YFvoT9+iMyWUTBlK0+KAky7JjfTbyENjZP 4gwj+nNcGUfdSSMhqT3gTcbP+t8vX8f2XI2frf58Kgy8WN7xhJM3mWR/piJTuc31ZHrR Ptl1o5HYXnZWWuCwco6AqBThLV9emd2f1eWF/X7zbdewXl0YiXFTuIvS3kgBeR5kpn1c Oa4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683193649; x=1685785649; 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=6qubOiERHGS1J8v+Zq6pOuw2BSBtjZ1nMOAjNz3GrsI=; b=AwkWHy2PREhD4UVNjsQmezjP7QlNt0n5gUvA+Dp15hSZI9ABwsIOzGUBMp6vZ8HchZ SX45YUZl1H6nr9Qc3e+dIiN6tNSAZRxantI3IxLFGM/GzbE1T9K79kUy5DXR/iL4yoOj 3j8wOBbR1jcQAo60FfONBIKtuKmcPfqyJlu1njgODEQEoJEd4LhOOTTm2NJYKF11se3p Fx26N9ER/05rr1owPMIyHtlv17HEqkD4NpyHwtYIQFoxzQ3a14m3/l/E2JT8sP6d0y4E kQSWY9sT0MLaarr8sBQ922lzUfCHkrBrmF2nSQiSdx5Vu+uYoWdGiqpX0ZqRhJO6W5C+ NNuw== X-Gm-Message-State: AC+VfDxOd4pqmzrh6wZFolHV2onCIbxpllggC2qts4jHPP5tvuvAPRsa 3LGo5b5yAHBM3ssezM6SyK1V4Q== X-Received: by 2002:a17:902:be09:b0:1ab:1b9d:50bf with SMTP id r9-20020a170902be0900b001ab1b9d50bfmr3096948pls.64.1683193649403; Thu, 04 May 2023 02:47:29 -0700 (PDT) Received: from ?IPV6:2405:201:d02f:d855:461d:14be:2cce:b776? ([2405:201:d02f:d855:461d:14be:2cce:b776]) by smtp.gmail.com with ESMTPSA id z2-20020a170902708200b001a19196af48sm23075222plk.64.2023.05.04.02.47.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 02:47:29 -0700 (PDT) Message-ID: <9d989c4c-7c9e-9e95-133f-03741d07198b@9elements.com> Date: Thu, 4 May 2023 15:17:26 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Add max6639 To: Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski Cc: Marcello Sylvester Bauer , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230420111759.2687001-1-Naresh.Solanki@9elements.com> <76e57634-75dd-01e8-9c56-36ed7de17812@linaro.org> <88f9a008-2861-284c-76c4-7d416c107fbb@9elements.com> <20eb1d0e-0aa2-9d41-7ba5-2feb148748d0@linaro.org> Content-Language: en-US From: Naresh Solanki In-Reply-To: <20eb1d0e-0aa2-9d41-7ba5-2feb148748d0@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On 03-05-2023 09:48 pm, Krzysztof Kozlowski wrote: > On 03/05/2023 10:26, Naresh Solanki wrote: >> Hi Krzysztof, >> >> On 24-04-2023 03:23 pm, Naresh Solanki wrote: >>> Hi Krzysztof, >>> >>> On 24-04-2023 03:12 pm, Krzysztof Kozlowski wrote: >>>> On 24/04/2023 11:18, Naresh Solanki wrote: >>>> >>>>>>> Changes in V2: >>>>>>> - Update subject >>>>>>> - Drop blank lines >>>>>>> --- >>>>>>>    .../bindings/hwmon/maxim,max6639.yaml         | 52 >>>>>>> +++++++++++++++++++ >>>>>>>    1 file changed, 52 insertions(+) >>>>>>>    create mode 100644 >>>>>>> Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml >>>>>>> >>>>>>> diff --git >>>>>>> a/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml >>>>>>> b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml >>>>>>> new file mode 100644 >>>>>>> index 000000000000..1aaedfd7cee0 >>>>>>> --- /dev/null >>>>>>> +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml >>>>>>> @@ -0,0 +1,52 @@ >>>>>>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>>>>>> +%YAML 1.2 >>>>>>> +--- >>>>>>> +$id: http://devicetree.org/schemas/hwmon/maxim,max6639.yaml# >>>>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>>>>>> + >>>>>>> +title: Maxim max6639 >>>>>> >>>>>> What is this device? fan controller? >>>>> Yes Fan controller. >>>>> Do you want me to update the title here as: >>>>> "Maxim MAC6639 2 channel fan controller & temperature monitor" ? >>>> >>>> Enough would be: >>>> Maxim MAX6639 Fan Controller >>> Ack >>>> >>>> >>>>> >>>>>> >>>>>>> + >>>>>>> +maintainers: >>>>>>> +  - Naresh Solanki >>>>>>> + >>>>>>> +description: | >>>>>>> +  The MAX6639 is a 2-channel temperature monitor with dual, >>>>>>> automatic, PWM >>>>>>> +  fan-speed controller.  It monitors its own temperature and one >>>>>>> external >>>>>>> +  diode-connected transistor or the temperatures of two external >>>>>>> diode-connected >>>>>>> +  transistors, typically available in CPUs, FPGAs, or GPUs. >>>>>>> + >>>>>>> +  Datasheets: >>>>>>> +    https://datasheets.maximintegrated.com/en/ds/MAX6639-MAX6639F.pdf >>>>>>> + >>>>>>> +properties: >>>>>>> +  compatible: >>>>>>> +    enum: >>>>>>> +      - maxim,max6639 >>>>>>> + >>>>>>> +  reg: >>>>>>> +    maxItems: 1 >>>>>>> + >>>>>>> +  '#address-cells': >>>>>>> +    const: 1 >>>>>>> + >>>>>>> +  '#size-cells': >>>>>>> +    const: 0 >>>>>> >>>>>> Why do you need these two properties? >>>>> Ack. Will remove them. >>>>>> >>>>>> Anyway, the binding looks incomplete. Where are the supplies? >>>>>> Interrupts? >>>>> This patch just adds basic support to the existing platform driver. >>>>> Intention is to be able to call the driver from DT with basic >>>>> initialization from driver the existing driver. >>>> >>>> Bindings should be rather complete. Here the datasheet is accessible and >>>> few properties quite obvious, so I don't see a reason to skip them. >>> I agree with you. But currently the driver which is already merged >>> doesn't has it implemented. >>> And will be working on separate patch to include this later. >> Please let me know if this approach is acceptable, or if there are any >> other suggestions or concerns that you have. > > You are adding new bindings, so what does the driver has to do with it? The reason for adding these new bindings is to enable the use of the driver on my machine. Without the compatible string, it would not be possible to use the driver. Currently, the driver initializes the device with defaults, which is good enough for my application. Also, as you previously pointed out, it uses the optional 'fan-supply' which will be included in the next patch revision. I hope this clarifies my reasoning. Could you kindly confirm if we can proceed with this approach? Best Regards, ~Naresh > > Best regards, > Krzysztof >