Re: PWM-GPIO driver: how to configure it?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Fri, Oct 04, 2024 at 03:06:55PM +0800, Kent Gibson wrote:
> On Wed, Oct 02, 2024 at 02:41:06PM -0400, Jean-Michaël Celerier wrote:
> 
> This is probably best asked on the PWM list, so cross-posting.
> 
> > I am curious of trying the new pwm-gpio driver in Linux 6.11 with a
> > Diolan DLN-2 chip, which exposes a gpiochip accessible to linux over
> > USB.
> >
> > I haven't managed to see where the configuration options of the driver
> > are set: for instance, let's say I want to create a PWM output channel
> > over gpiochip1 line 4, 6 and 12, what should my modprobe line look
> > like ?
> 
> Good question.
> I think it has to be setup by device tree, but that is just a guess.

Setting up the pwm-gpio device via device tree only works if you manage
to describe the USB gpio chip in the device tree, too, as teh pwm-gpio
device must have valid gpio descriptors.

Otherwise you'd need to extend the pwm-gpio driver to instantiate
devices dynamically somehow.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux