mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Cc: "Uwe Kleine-König" <ukleinek@kernel.org>,
	"jdelvare@suse.com" <jdelvare@suse.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"linux-hwmon@vger.kernel.org" <linux-hwmon@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-pwm@vger.kernel.org" <linux-pwm@vger.kernel.org>
Subject: Re: [PATCH v7 1/3] dt-bindings: hwmon: Add adt7475 fan/pwm properties
Date: Mon, 2 Jun 2025 08:00:43 -0700	[thread overview]
Message-ID: <c316130c-9b64-4510-b2a2-d2aa45ee3734@roeck-us.net> (raw)
In-Reply-To: <4858ce06-2081-4335-af09-f118872317ea@alliedtelesis.co.nz>

On Wed, May 28, 2025 at 09:18:37PM +0000, Chris Packham wrote:
> >> As I mentioned at the time the adt7475 is not currently pwm_chip so I
> >> need the ad-hoc parsing in that driver. I'd be happy to take you
> >> prototype patch for pwm/core.c and polish it although I don't really
> >> have a good way of testing it.
> > It's more the deviation of the default binding for PWMs that I don't
> > like than the ad-hoc parsing. Ideally the adt7475 would provide a
> > pwmchip (as the binding suggests) and the fan would be formalized as a

We are not going to force each fan controller driver to register as pwm chip
just because it provides a pwm value to control the fans - even more so since
this gets really ugly if the chip can be programmed to either provide a voltage
output or a pwm value to control fan speed. Maybe the next requirement is that
fan controllers supporting voltage output to control fan speeds are supposed
to register themselves as regulators. I really don't want to go there.

Those are _not_ pwm controllers. They are special-purpose fan controllers.
Forcing them into the pwm framework from devicetree perspective is bad enough,
but forcing them to register as pwm controllers is a step too far.

Guenter

  parent reply	other threads:[~2025-06-02 15:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-22 22:17 [PATCH v7 0/3] hwmon: (adt7475) duty cycle configuration Chris Packham
2024-07-22 22:17 ` [PATCH v7 1/3] dt-bindings: hwmon: Add adt7475 fan/pwm properties Chris Packham
2024-07-25 14:06   ` Guenter Roeck
2025-05-27 16:12   ` Uwe Kleine-König
2025-05-27 20:24     ` Chris Packham
2025-05-28  6:10       ` Uwe Kleine-König
2025-05-28 21:18         ` Chris Packham
2025-05-30  9:38           ` Uwe Kleine-König
2025-06-02 20:52             ` Chris Packham
2025-06-03  8:20               ` Uwe Kleine-König
2025-06-02 15:00           ` Guenter Roeck [this message]
2024-07-22 22:17 ` [PATCH v7 2/3] dt-bindings: hwmon: adt7475: Deprecate adi,pwm-active-state Chris Packham
2024-07-25 14:06   ` Guenter Roeck
2024-07-22 22:17 ` [PATCH v7 3/3] hwmon: (adt7475) Add support for configuring initial PWM state Chris Packham
2024-07-25 14:09   ` Guenter Roeck
2024-07-25 21:02     ` Chris Packham
2024-07-25 22:01       ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c316130c-9b64-4510-b2a2-d2aa45ee3734@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=Chris.Packham@alliedtelesis.co.nz \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jdelvare@suse.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=ukleinek@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®