Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp188060rwb; Fri, 4 Aug 2023 11:02:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgreiuTOHeWT+HJJGGZQcby7ypXEQQ6pnJAmgc4Hxfady+2P2MkpXb5QaDZ/IzHeknCtna X-Received: by 2002:a17:907:272a:b0:99b:4378:a5aa with SMTP id d10-20020a170907272a00b0099b4378a5aamr2046141ejl.49.1691172169443; Fri, 04 Aug 2023 11:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691172169; cv=none; d=google.com; s=arc-20160816; b=f53aHEL4EQnrWEqhkkXuaSKMYViDF7haOyxcnoE7af+f1/pZbNxtPe5Ps+KSQRMH+t 9Nry11ggIZVHl0hkcNAt8YBssvZsXMGmRjT9C+RdJNgQw2EbuJ6C6LKhiKffGH9jd+na 3vE06sar7uWPUw14m0QZDodduZ+W+/LbtYpuztvfPiJLLm+NUZQOXM7TV/WaxwIB0x3h IifPLEiS1CBxJhHhwvCfDx44oVbrvM7noNba1MrP/PxpuWlbFW27y2Ywv/OyWvOeifsV 4GlF1wUYZxMNjPU2GawbxjE+SCPcyZsHR5xoPzxQxDtUA9fdrCTPHZnRvNWdRXRK7mak kY6A== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=kUioFZ7tXMJEvu9BOB44xCzuGpOwtxseq1YU/H9f2GY=; fh=fGMf/nuOzHGrd+jDoHFjf5OX6n8fdLq2C8rfWW0R/Oc=; b=MdQqALBBs6/7kPBNz/6JzGMYBolMYn2ToLZfUtXNz+V4tmz6ob8xEzqaF5lhTOChE/ Kw611X5TqoXFHXjFVAUdnJ+uN3JiTgH1EPGYTLgvOLbqLibJg4QnFbCEsZXCTJ1KIncr sYnBLuNVckJoo2lYgMg+GWpMO2Rm4hTMgNGpZGKMUTlrPEAwate3PfWXlva/71NNeuYv w/g3z1ot9JCHwYmHiyANPFOOXprJZ2OWQHv/rUCiIvYr9BuHbzaDlNaOCIIHLRqU24aT mPn3SWQIRBmXz4/fJv43E+X4OkXmlWNW6I2UfEJodrWei3Qc0eklkZMqutr9kiKNsdk1 tc9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Bu8zWvC/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a170906050900b0099bd53f16b3si1737215eja.391.2023.08.04.11.02.23; Fri, 04 Aug 2023 11:02:49 -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=@gmail.com header.s=20221208 header.b="Bu8zWvC/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbjHDQKn (ORCPT + 99 others); Fri, 4 Aug 2023 12:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjHDQKm (ORCPT ); Fri, 4 Aug 2023 12:10:42 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E69EB2; Fri, 4 Aug 2023 09:10:39 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2682b4ca7b7so1279819a91.3; Fri, 04 Aug 2023 09:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691165439; x=1691770239; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=kUioFZ7tXMJEvu9BOB44xCzuGpOwtxseq1YU/H9f2GY=; b=Bu8zWvC/pNAwG2ZDB65BogeFW6RHuCyK9yLNSZovbdS0DTP1e1VCDsQLqJSP6JUHWx rNwntmzjIRpxLV8HSBsD+lW9PaC98+9JJFSlT7q0ktD9FO8fYVJqmSuFp0uPifsDIgz6 8wSkJtd1R5dtD19PKK4ibKld/tT71nfOKrguWrys3yG+2A9eApu5WFd1fdtH6R7tFJFV phK8+NiQ0g1mxxfnz4qzSctExwM8DjX7zDkT84afrFPRvWO7EAxxYVuGIgzXoXJStvLC RsedEKJb/wt1VNw5UcO/SLn3b3iATl0u0StR3b90KC9TLJplyiy8kUQu6LjViMXBgfAb N9kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691165439; x=1691770239; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kUioFZ7tXMJEvu9BOB44xCzuGpOwtxseq1YU/H9f2GY=; b=dWycs8Bh2Ht+VDYHseJoR6l6s6y3F0M2BhwC1SGhYL5SARRpovBAxRPJBpQZLE5WFB UxEN6vbKgLugmXcoZz6bHWDMx7r8mjuhXdfyXKbq07EiKJdJJLqevz5LywZmxy3aj//o lmvVIDKTd4JnMouTnyMgNvwGm12Hzy4hxKaSJwZWINNc95qwp4CWpLxdUxwgRFeAZ4Bj BRbo9lmqW875n6uG2WOMmWYoO4pBCTctCSt6FcsQs9NRCU/ePnQ2L1iwRZXmKmtiWaSs VnQyTa27j3CJsVdafhK1Wbp3bGKxVNZHBUuuQnIDWg1ILFqdCdzWS2YvB2SN6fXtUeec lgIQ== X-Gm-Message-State: AOJu0YwHyZYsnrWWWTMrTN4s9OiYC+pNcUbUtlvkxE6EtQtZrGez/PMb 6JbKx8JEj7J1MF8GM/LnzTw= X-Received: by 2002:a17:90a:3004:b0:263:72c5:9ac6 with SMTP id g4-20020a17090a300400b0026372c59ac6mr1768740pjb.11.1691165438701; Fri, 04 Aug 2023 09:10:38 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m1-20020a170902db0100b001bb3beb2bc6sm71067plx.65.2023.08.04.09.10.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Aug 2023 09:10:38 -0700 (PDT) Sender: Guenter Roeck Message-ID: <3f947ad6-eed6-59ff-e4e6-8b21d90eb803@roeck-us.net> Date: Fri, 4 Aug 2023 09:10:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Conor Dooley , Naresh Solanki Cc: krzysztof.kozlowski+dt@linaro.org, Jean Delvare , Rob Herring , Conor Dooley , Marcello Sylvester Bauer , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230803144401.1151065-1-Naresh.Solanki@9elements.com> <20230804-tamper-numbness-0117bb53a921@spud> From: Guenter Roeck Subject: Re: [PATCH v3 1/2] dt-bindings: hwmon: Add MAX6639 In-Reply-To: <20230804-tamper-numbness-0117bb53a921@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 8/4/23 08:48, Conor Dooley wrote: > On Thu, Aug 03, 2023 at 04:43:59PM +0200, Naresh Solanki wrote: >> From: Marcello Sylvester Bauer >> >> Add binding documentation for Maxim MAX6639 fan-speed controller. >> >> Signed-off-by: Marcello Sylvester Bauer >> Signed-off-by: Naresh Solanki >> --- >> Changes in V3: >> - Update title >> - Add pulses-per-revolution, supplies & interrupts >> Changes in V2: >> - Update subject >> - Drop blank lines >> --- >> .../bindings/hwmon/maxim,max6639.yaml | 60 +++++++++++++++++++ >> 1 file changed, 60 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..b3292061ca58 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/hwmon/maxim,max6639.yaml >> @@ -0,0 +1,60 @@ >> +# 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 Fan Controller >> + >> +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. > >> + fan-supply: >> + description: Phandle to the regulator that provides power to the fan. > >> + pulses-per-revolution: >> + description: >> + Define the number of pulses per fan revolution for each tachometer >> + input as an integer. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [1, 2, 3, 4] >> + default: 2 > > Apologies if I am digging up old wounds here, since there was quite a > bit of back and forth on the last version, but these two newly added > properties look to be common with the "pwm-fan" and with > "adi,axi-fan-control". At what point should these live in a common > schema instead? > > Otherwise, this looks okay to me, although I'll leave things to > Krzysztof since he had a lot to say about the previous version. > Rob has said that he won't accept any fan controller bindings without a generic schema. At the same time he has said that he expects properties such as the number of pulses per revolution to be attached to a 'fan' description, and he wants pwm related properties of fan controllers to be modeled as pwm controllers. And now we have a notion of a regulator providing power to the fan (which again would be the fan controller, at least in cases where the fan controller provides direct voltage to the fan). On top of that, this fan-supply property should presumably, again, be part of a fan description and not be part of the controller description. I don't think anyone knows how to make this all work (I for sure don't), so it is very unlikely we'll see a generic fan controller schema anytime soon. Given that neither fan-supply nor pulses-per-revolution is implemented in the driver, and given that I am not aware of any fans which would have a value for pulses-per-revolution other than 2, my personal suggestion would be to add the chip to trivial devices and be done with it for the time being. Guenter