Re: [PATCH v1 1/2] leds: pca9532: read pwm settings from device tree

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

 



On Tue, 22 Sep 2020 21:31:15 +0200 (CEST)
Markus Moll <moll.markus@xxxxxxxx> wrote:

> While the two pca9532 pwms can be configured in the platform data
> struct, there was no corresponding dt binding. Users need to configure
> the pwm if some leds should blink or continue blinking during boot.
> 
> Signed-off-by: Markus Moll <mmoll@xxxxxxxxxxxxxxxxxxxx>
> ---

> +	of_property_read_u8_array(np, "nxp,pwm", &pdata->pwm[0],
> +				  ARRAY_SIZE(pdata->pwm));
> +	of_property_read_u8_array(np, "nxp,psc", &pdata->psc[0],
> +				  ARRAY_SIZE(pdata->psc));
> +

This properties are not documented in device tree bindings.

Moreover there are pwm-dutycycle-unit and pwm-dutycycle-range
properties documented for pwm-regulator. Maybe these should be used?

Marek



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux