[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250319-auspicious-sparkling-dachshund-ef0eed@krzk-bin>
Date: Wed, 19 Mar 2025 09:33:59 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Daniel Baluta <daniel.baluta@...il.com>, florin.leotescu@....nxp.com,
Jean Delvare <jdelvare@...e.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Michael Shych <michaelsh@...dia.com>, linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, viorel.suman@....com, carlos.song@....com,
linux-arm-kernel@...ts.infradead.org, imx@...ts.linux.dev, festevam@...il.com,
Florin Leotescu <florin.leotescu@....com>, Frank Li <Frank.Li@....com>
Subject: Re: [PATCH v5 1/3] dt-bindings: hwmon: Add Microchip emc2305 support
On Tue, Mar 18, 2025 at 09:37:29AM -0700, Guenter Roeck wrote:
> > > > +patternProperties:
> > > > + '^fan@[0-4]$':
> > > > + $ref: fan-common.yaml#
> > > > + unevaluatedProperties: false
> > > > + properties:
> > > > + reg:
> > > > + description:
> > > > + The fan number used to determine the associated PWM channel.
> > > > +
> > > > + required:
> > > > + - reg
> > > > + - pwms
> > >
> > > Is it necessary to make 'pwms' mandatory ? The current code works
> > > just fine with defaults.
> >
> > The code adding OF support is added just in the next patch, so the
> > current code isn't event
> > probed when trying to use dts.
> >
> > Or am I missing something?
> >
>
> The patch introducing devicetree support to the driver doesn't evaluate
> the pwm property. That makes it quite obvious that, from driver perspective,
> it isn't needed. I don't immediately see why it would add value to _force_
> users to provide pwm frequency, polarity, and the output configuration
> if the defaults work just fine.
Indeed. PWM source is actually fixed and rest of pwm argument could be fine
with defaults.
Both options are fine with me, so keep my tag.
Best regards,
Krzysztof
Powered by blists - more mailing lists