Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp929758rdg; Fri, 11 Aug 2023 04:48:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs5gQEbYIIz7O8d8dYXM80DuQpQOQ5VYhisIbx0KPpTL4Bo4/CcCZ5l0SzKXcQW14NTLnO X-Received: by 2002:a05:6808:2a49:b0:3a7:6385:289b with SMTP id fa9-20020a0568082a4900b003a76385289bmr1964862oib.5.1691754518159; Fri, 11 Aug 2023 04:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691754518; cv=none; d=google.com; s=arc-20160816; b=g1UL9AUW8tpM/nA+hNCWv3LD7dztA/zwR89PjbeVwZn2Pd8Z50p8/JOFQpfn9ioN5c Huf6o+dzbNVlsYIkF6JnL90F3FwXC8Nt1ZYifi3M7n2cLEGzMmk6MG5fFeMR1OqKuUdv wg0446MzL2ZUiqhRi5obKQM7qQJrY9Bxj8UMzT7mplbOl9HYw+m6qHqoHkkYPnG1Bieq IMMEI0QlkFd858tEa5c7GITAXJILkiyPQt298Fi1lFSxlO09HOKxOAqXqcqYtAqffkdU Rij6v0SvdocMcC2N92mAywiDjHxQCSg+JrKI8K2fuXYh8sinP/xIibAIo3kx0iEH+i4S C/yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qYA1iNOdZVJpj3OPfnwO45/gsMVIQDNWbkZ3zGXB3GI=; fh=2H+W7ivkMrdvo07ZTPvmMA/CCBodAt3mJBF4m8idvgs=; b=B7eXjSBHu7nwW1WzESPdCmDmIQjMO+IqrYERJHBBugKRsLcFeYzW6kGMngS+UWahCh Zk7d/QyPxyFSGcK2feGFloxkmqMVauSKCQ4qNPkpXEFt7ly5oa37tfEQCuFIH9wDgl3E sz6OVuvBPI/4hxptNfwHbACDGM/Mv8GmlPqcheB4/JV+HmAqdTwi8+ePCablvW8UoPXP Ek2BhU7FVFIxVSmdD5uXofOX16QPGT9Z1WBimaZxqvDeOOLnyslQJ2xgyagpKe47RnZO 4/oFQadGNltRZ3Q2gxyE3bLaFr0x03Ddjcs/KyE7sSEfBHiqvMPZu8WWz/W//mjECfEE V9vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=JiepBe3W; 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 i6-20020a639d06000000b005656a84cfbcsi1894316pgd.152.2023.08.11.04.48.17; Fri, 11 Aug 2023 04:48:38 -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=JiepBe3W; 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 S234536AbjHKKma (ORCPT + 99 others); Fri, 11 Aug 2023 06:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233772AbjHKKm3 (ORCPT ); Fri, 11 Aug 2023 06:42:29 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A5010F for ; Fri, 11 Aug 2023 03:42:28 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5650ef42f6dso1239004a12.0 for ; Fri, 11 Aug 2023 03:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1691750548; x=1692355348; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qYA1iNOdZVJpj3OPfnwO45/gsMVIQDNWbkZ3zGXB3GI=; b=JiepBe3WMoCqwCRY18Uu3PFgmiY5SXx/aLVlXzjYYHTCVh+Towp8JcI+0/Qwc6jSzi v8j7X41vkHKLwJPv+LGET0Y163CMJd/03vaUUJUs7khw6wjN/w5qNvlNeBpfj7tJeDZL Kzolt7uyEDghagAKuB6rbpvDCOxmslAEgu4eFH0EFQY82cPfAvDjCW8lzrj0TKbOOmUc WCBTXfWt4xYeN8DOMb+Gue2/h33Kg5PQa0smV5phrMIychRglNhK0Nv5REfG3dOUpUNL CPob/j+UYtt7E0lrDxyX16VvqSHs8hEvBPUrlRWO+rfWj+DRFi6fnmJ3iGakYeff7uCu L6AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691750548; x=1692355348; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qYA1iNOdZVJpj3OPfnwO45/gsMVIQDNWbkZ3zGXB3GI=; b=LmI4D8Gu6IwxaSDct1xkN5OuahJpPdC8WspCfPLGFi/Y48NUPmsqdcxvhznB9H3DPv G6FrFpZ18MK+Zoh/rKGl/mWV305rM1jK+rJlREsdOZr71cePKnduQA0beLj0dtUk2S9I O/qS1gQ0lBX8Y9RI0ebSL4Xj94F9651GxbiAnA3zTvPa1dsyBt2poTGxy/xuvmDRs19h PDVHsgbuRQ0ZUGxf6c8LM610QR6DLINfvOzxTu3NHhMItcfe+tdHUhFwJM37/0Y5dxoF u9ejbjRa1vV0IdlnUi8wGGTp1psvQJMc2y21tT+G2ZloogvvVb7HE89MzQ/+p9fkbXMH dR8w== X-Gm-Message-State: AOJu0YxWNZnB5a/Fu//Igs6jnfXLHWpMDw9GHe8MiYLCov/TbAXMEUgL 7tJcc/8coN5zRBhMh5/NdFkczRrj53hvSkPl2jsl2w== X-Received: by 2002:a17:90a:db55:b0:268:36a2:bd0 with SMTP id u21-20020a17090adb5500b0026836a20bd0mr774080pjx.8.1691750547480; Fri, 11 Aug 2023 03:42:27 -0700 (PDT) MIME-Version: 1.0 References: <20230803144401.1151065-1-Naresh.Solanki@9elements.com> <20230804-tamper-numbness-0117bb53a921@spud> <3f947ad6-eed6-59ff-e4e6-8b21d90eb803@roeck-us.net> <20230810231142.GA1506309-robh@kernel.org> In-Reply-To: <20230810231142.GA1506309-robh@kernel.org> From: Naresh Solanki Date: Fri, 11 Aug 2023 16:12:18 +0530 Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: hwmon: Add MAX6639 To: Rob Herring Cc: Guenter Roeck , Conor Dooley , krzysztof.kozlowski+dt@linaro.org, Jean Delvare , Conor Dooley , Marcello Sylvester Bauer , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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 Rob, On Fri, 11 Aug 2023 at 04:41, Rob Herring wrote: > > On Fri, Aug 04, 2023 at 09:10:37AM -0700, Guenter Roeck wrote: > > 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. > > I thought what was done earlier in this series was somewhat close. And > there are some bindings that already look pretty close to what a common > binding should. But it seems no one wants to worry about more than their > 1 device. The DT binding for common fan properties is: https://lore.kernel.org/lkml/20221130144626.GA2647609@roeck-us.net/t/#m15ce07c3c43c46506acc389bf24d616646e05653 I wasn't sure on how to address properties for DC controlled fans. Regards, Naresh > > In case it's not clear, as-is, this binding is a NAK for me. > > > 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. > > I'm fine with that too. Just keep kicking that can... > > Rob