Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2758120rwi; Tue, 11 Oct 2022 12:59:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sY9/gjnKtEmSaF9gW+W1dbGhVWfJRQjHyZEzylOTxr/UjTsLM5fwNhCtzJcgXt+X0FT/U X-Received: by 2002:a17:90a:1690:b0:20a:8f70:14bb with SMTP id o16-20020a17090a169000b0020a8f7014bbmr892164pja.115.1665518383751; Tue, 11 Oct 2022 12:59:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665518383; cv=none; d=google.com; s=arc-20160816; b=MATKGD/99Pbbr5E2tMwOmE/pOJfiCptfe6mXqUGVjkZGcVNfbAz+A7K1HcqUYDnJhm YtD9sh2hW8MjWV1ZzFaXsmWXNTBmpJ9iZlRfNQ+BYmrJXRe+GzXurQl3+3Xa92vuQbBf GhxnHc8BpYPTpzwM/x4iHznp6eR07lot3xofgtiNj7Z14FzIQmzZi8Rejtu9tsTIbunI 7lrS45XmJ/3t8IP3ZBbMcJXOlyc52vHBiD4DduWS7vEIRJrR/+JRtE2USGmJAGmiKqiN Pxge2NQvtpZe3U855mRUnZcvPaHpR1Ud++haWHV9+DfDFMUu1mchYkzaQ+DHb6e9BclY NoAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=LlAJGnPyj1A3ETlIge5PWjY1J90VuYIAynT20wsgRJk=; b=BlhHnRfhNR2ONu6jhxdX11fR5YkuNIOUM1Ba+jt96lXwv5Tk02kVYG/84NjjjdApyu k/ElAG7dZ0Ge9c3+gbMrIOXenZEh8fq2qnedBiTreC5iSp8yYsc+KVI2H/N33B8p12Q8 9RTsxcMvtLD8hxgS2wRs4y/xB4eOqwpY8L0JVMMHWqzX1u8D9aMOFlXPkhuPUqTSBVJi mSotkEDmxIscXZvVwZpZ1e2KRjLXdfrCbpdw9OO/4lkczVMJZw5PSZRYDacXZHywZLPk swj4siLEwYMMudS08irfh72j8FgJGnGxNXdaFU6ZjXcmp9w85yPEIOpt+4NIvbDtYUkm FRyA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a170902e88400b001753958498dsi20390780plg.492.2022.10.11.12.59.32; Tue, 11 Oct 2022 12:59:43 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbiJKThu (ORCPT + 99 others); Tue, 11 Oct 2022 15:37:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJKThq (ORCPT ); Tue, 11 Oct 2022 15:37:46 -0400 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF70B814DC; Tue, 11 Oct 2022 12:37:44 -0700 (PDT) Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-1324e7a1284so17144737fac.10; Tue, 11 Oct 2022 12:37:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LlAJGnPyj1A3ETlIge5PWjY1J90VuYIAynT20wsgRJk=; b=pcpw/vOsTH5GkdgZuRDM6+GyK+J66I8JDc6r+tQ1DcfkbWzR+0yYgikiFyy+EBD/Wp UGEzTcB673Ai+c2h01OBYNS+9F/lqjU6ptg63V6dD38Al1HgDMBapXuSlHaV4OKI5p4f lMeyI5E42si/0/+wQDtb1emI4dE0MWKoDEuQ2CRw1pSFq/EOzMXl0ps9GOeqLDDDT027 n5CrieQsAoOw9/WbQz5KMDGXXx12fp6t0BClW4ec1hGPX6jumopWMOH7fKaHEvztAyBv 0p1JVc6LY5Lxb5uE9+WrdFjXMeekutSd+N5war0UJx0wdT5ic20+hylCOk/J7qSnEjw9 IPMw== X-Gm-Message-State: ACrzQf1IUhSbbdNoew2sMwTwJXMC4w0lydJCBpt1uyAUxn+XK2akF4hs J/74IPKoKjh7D+WclBOxdw== X-Received: by 2002:a05:6870:d61e:b0:132:bc09:4b8c with SMTP id a30-20020a056870d61e00b00132bc094b8cmr477444oaq.32.1665517063906; Tue, 11 Oct 2022 12:37:43 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id g9-20020a056870d20900b0011bde9f5745sm247619oac.23.2022.10.11.12.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 12:37:43 -0700 (PDT) Received: (nullmailer pid 4172857 invoked by uid 1000); Tue, 11 Oct 2022 19:37:44 -0000 Date: Tue, 11 Oct 2022 14:37:44 -0500 From: Rob Herring To: Guenter Roeck Cc: Naresh Solanki , devicetree@vger.kernel.org, Jean Delvare , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph Subject: Re: [PATCH v2 1/3] dt-bindings: hwmon: fan: Add fan binding to schema Message-ID: <20221011193744.GA4051000-robh@kernel.org> References: <20221011104739.53262-1-Naresh.Solanki@9elements.com> <20221011104739.53262-2-Naresh.Solanki@9elements.com> <8d2e905b-8669-b7ec-c7c0-1b0d78fded92@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d2e905b-8669-b7ec-c7c0-1b0d78fded92@roeck-us.net> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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 Tue, Oct 11, 2022 at 09:46:08AM -0700, Guenter Roeck wrote: > On 10/11/22 09:12, Naresh Solanki wrote: > > Hi Guenter, > > > > fan-common is intended for fan properties. i.e., those derived from > > fan datasheets. > > For min-rpm, some fans have minimum non zero rpm like 1900rpm below which > > the fan cannot run. > > > > I would argue the properties are for fan controllers, not for fans. > Fans don't have or depend on specific pwm frequencies. Fan controllers > do. Presumably fan controllers can produce a range of frequencies. If they need a specific frequency, then why are they programmable? Something outside the fan controller must have the constraint. > Fans don't have a configurable pwm polarity. Fan controllers do, > to match the hardware on a board. We don't model an inverter, so it's got to go somewhere. > Fans don't have or rely on > a target rpm. That is a system property, configured into the > fan controller. And so on. Yes, but it is per fan. per fan properties/settings should go in the fan node IMO. > If this is for fans, we'll need another set of properties for > fan controllers. The driver for max6639, being a fan controller, > would need to implement those properties. > > Also, as implemented in the MAX6639, max-rpm is the fan's > rpm range, not the actual rpm. Your implementation is just > confusing, including the example in the bindings. Valid values > should be what the chip accepts, not some random value. A fan would have some design maximum RPM depending on its mechanical design and lifetime requirements. A controller would have some maximum in terms of electrical pulse frequency or register bit sizes (depending how RPM or pulse counts are exposed to s/w. That should all be implied from the controller part and not in DT. It's the mechanical limits of the fan we should be defining here. > Really, I don't understand where you are going with this. Certainly it needs more thought for different cases. Rob