Re: [PATCH v4] gpio: pca953x: Add Maxim MAX7313 PWM support
From: Linus Walleij
Date: Tue Jan 07 2020 - 07:31:20 EST
On Mon, Dec 16, 2019 at 10:51 PM Andy Shevchenko
> On Fri, Nov 29, 2019 at 9:13 PM Miquel Raynal <miquel.raynal@xxxxxxxxxxx> wrote:
> > The MAX7313 chip is fully compatible with the PCA9535 on its basic
> > functions but can also manage the intensity on each of its ports with
> > PWM. Each output is independent and may be tuned with 16 values (4
> > bits per output). The period is always 32kHz, only the duty-cycle may
> > be changed. One can use any output as GPIO or PWM.
> Thanks for an update!
> Still I think it's wrong approach. What should be done is:
> - adding a pin configuration type of PWM (when, for example, argument
> defines duty cycle and period)
> - conversion to pin control of this driver
> - enabling pin configuration PWM for it.
> For now it looks like a custom way of doing it.
> If GPIO maintainers are okay with it, I'll not object, just want to
> have than something like TODO updated for the matter.
Yeah well that is a possible way, it pretty much lies with the PWM
maintainer, I have one guiding stanza "rough consensus and running
code". Making big upfront code conversions just to get a small piece
of hardware going is just too much from me as subsystem maintainer,
a dual sub-system driver is perfectly fine in my opinion.
That said contributors are encouraged to extend scope and be
ambitious and set precedents for others to follow by going the extra
(That sounds like corporate management!)
But that must be voluntary work outside the scope of just hardware