Port-arm archive

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

Re: Meson PWM driver



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 <vincent.defert%posteo.net@localhost> 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?



Home | Main Index | Thread Index | Old Index