Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp399151rwr; Thu, 4 May 2023 04:57:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ka2g7TwanLn3RrPMHE1VMsZohz3WW70CHbTnZquk+LCN7Inxgb3IqTt7q4VPlQb+k+RVn X-Received: by 2002:a05:6a21:999a:b0:fc:8dfb:3195 with SMTP id ve26-20020a056a21999a00b000fc8dfb3195mr2371755pzb.23.1683201473245; Thu, 04 May 2023 04:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683201473; cv=none; d=google.com; s=arc-20160816; b=UZ68MRGFqoX1UUJd4VoG//xzCERZCavBSc3k6iafM/vLPJ04OA+CvmEaf03U9r55KC cHWwCLb6x5Ahm6QLhHJaceextNyT6dFaoJkTX7MnV7Aqc8UAmr7/KyckLwj5vqTXkos6 OI4QLuAbNMjV4kBCg1IZJHfUCrpgv+2jhrwUTuzqe/Gw1sd/wvY66T7c/E8bAYaxyjoi yXI5iw99AVBvSEdgoOdFAbKIVrLifW1Q3MOXlqee7mxZX3/+/arS04T5AmpLmPHdgaJB WsqR6FbajB7RKRFYNdWJ9mTBHV/NjI9bTDKOd0zZe2G6nPvMCYW8d6gAqPyzTQb+7Wy5 TJJw== 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=psZX5RvMka6EfTIT04LB484cGcwOW4uCNYm9T1PIx84=; b=TTNF3yTz63bSZCipZ7UGiy6lcX/7vvf1N0/N6OZqd7p00lMwXmCPtTCTZwrPAe4AXn d8QW79o3NvgHJpG4Imt4YISSFW8u1V2SwEjxgLz4okoxC3hvfbywdfLtmbVPcElpJiv+ 9//Zk8iUkZqLaPKNfVHmq/7MetJWuVpf0Ql5lbs9VsvTLmkeFnOJ2U2mRDSFURrsVBU6 cuo+trRHy0GHUOWC7WfyP0Nhy9edG1CtaoOrzUWJZdGR/3ST6XBSfsLYgl9VhB8HeCwz QICF/jCB/7AULV1E0PvATgxzPNiEOjmmdML3JhVq/ROzVJ2RUL28sUelStGQF+jWKBvU EsMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wRywg3Nj; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w62-20020a638241000000b0050300a5cf3csi38486635pgd.469.2023.05.04.04.57.40; Thu, 04 May 2023 04:57:53 -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=@linaro.org header.s=google header.b=wRywg3Nj; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbjEDLox (ORCPT + 99 others); Thu, 4 May 2023 07:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjEDLov (ORCPT ); Thu, 4 May 2023 07:44:51 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD08B5 for ; Thu, 4 May 2023 04:44:50 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bd2d7ba74so16245466a12.1 for ; Thu, 04 May 2023 04:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683200689; x=1685792689; 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=psZX5RvMka6EfTIT04LB484cGcwOW4uCNYm9T1PIx84=; b=wRywg3Njv7yCL2L7wjU2PrGS7srBglHCcTE0R1cAfC2EG/iExFfLueT/SGiuYkw5jD x14y6lL8/8ooSocbEkyfCdt3uaLGSWdrI/9eebO8yDoyM5ghIvrzEkX+BdfNHsNCO8u/ fIRKlKVJoqfuCHet+7cbe9cGwSLLDCRJEZI8vCafpbYkco6f4fS9tiiYxlOxaH4oNMCo zQTzlYj1IdnGXVKQIMCkX1RcCXHCsmf+6t9ll7XafqRUnPnmGkZWgD7u9pSTBhD2Z4z5 F4ZwP50teV/KqX/EMiTIt9IDIrpD5PF2AqCCeEetjBX1jXhGpoakvAqPs88SHgwasMwq x37A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683200689; x=1685792689; 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=psZX5RvMka6EfTIT04LB484cGcwOW4uCNYm9T1PIx84=; b=QuJtyItqAlmDoy5kF8B5vHyeba3VourwOFb4rQIMJkrWAIpVxwyGboc154DNhKcWQk rZ6bVtJGyumFgbNiQSvpikcmOeMzK90rcgnP5dJU/tdYiRDesMo7ZOjT/i8dP2MYNNor ePuoNqhkHHdDDK8lXxuqbyTBdtN9hDXqPUDym85bl/EH50U8RnLXSOzIeQw99KMHI7/M BoSWZH967WTJxd9CTZSFKX0KgR0mWW0SUy0vLCDut7CL2vQJuVzT6bbroKMSYBXKaSy6 TWLYetBMRaa5ZpF5OCjPzdav1k/bR4Ja0q6Dfv2u7bCRzQdwxpdiDO4QgNLd8dWN3OP6 As4Q== X-Gm-Message-State: AC+VfDzZcP6a7JF2z8CRCbVKz+9P0Qcip0jMhtGt1TvzsFc7WYga2Mxc Vn0idZb06QtTKJs0xaskJnSb7Q== X-Received: by 2002:a17:907:9281:b0:95f:af3a:be8c with SMTP id bw1-20020a170907928100b0095faf3abe8cmr4084601ejc.18.1683200688778; Thu, 04 May 2023 04:44:48 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:cbf1:e7ef:fb81:e912? ([2a02:810d:15c0:828:cbf1:e7ef:fb81:e912]) by smtp.gmail.com with ESMTPSA id hq32-20020a1709073f2000b0094f206b97e8sm18663216ejc.130.2023.05.04.04.44.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 04:44:48 -0700 (PDT) Message-ID: <530ef711-a32a-fbf7-7bd0-2ddb4cb070f3@linaro.org> Date: Thu, 4 May 2023 13:44:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Add max6639 Content-Language: en-US To: Naresh Solanki , 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> <9d989c4c-7c9e-9e95-133f-03741d07198b@9elements.com> <80b60de0-dcb5-303f-8d13-f4b1cf7d8521@linaro.org> <45236017-22d2-f9f8-0069-77195e49221d@9elements.com> From: Krzysztof Kozlowski In-Reply-To: <45236017-22d2-f9f8-0069-77195e49221d@9elements.com> Content-Type: text/plain; charset=UTF-8 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 On 04/05/2023 13:36, Naresh Solanki wrote: > Hi Krzysztof, > > On 04-05-2023 04:17 pm, Krzysztof Kozlowski wrote: >> On 04/05/2023 11:47, Naresh Solanki wrote: >>> 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? >> >> No, we cannot, because we asked you to fix things there. Your entire >> explanation about compatible and driver is not related to the comment >> you received: bindings should be complete. You argue that bindings do >> not have to be complete, because of something with driver. This is not >> related. Bindings are not for driver. > > I understand that complete bindings are important, but as the driver is > already merged and functional, my immediate goal is to enable its use on > my machine. I will work on a separate patch to include the interrupts in > both binding & driver. I don't care about driver and did not comment about it. I don't understand why do you bring it here all'n over. Best regards, Krzysztof