Re: Meson PWM driver

Vincent DEFERT <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
Thank you, I was wondering if I could use the 2 PWM channels available 
on the ODROID C2's GPIO connector to control servos.
Apparently, it's not that simple, but it's not an issue, I'll use a PCA9685.


On 07/07/2025 20:14, Robert Swindells wrote:
> Vincent DEFERT <[email protected]> wrote:
>> I have adapted the meson_pwm.c driver to work on the ODROID C2 and now,
>> I want to write a test program to use it.
>> The driver correctly initialises, I can see it in dmesg, but there's no
>> corresponding device under /dev.
>>
>> How am I supposed to talk to it?
> The SoC specific pwm drivers are expected to be used by higher level
> drivers in the kernel, there isn't an interface to userland.
>
> The meson_pwm.c driver registers itself to the framework defined in
> sys/dev/fdt/fdt_pwm.c.
>
> There are calls to find a pwm driver in pwm_backlight.c, pwm_fan.c and
> pwmregulator.c in sys/dev/fdt.
>
> What did you want to use the pwm driver for?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.