Re: [PATCH v2 1/2] video: backlight: Support PWMs without a known period_ns

2020-09-27 Thread Simon Glass
On Sat, 26 Sep 2020 at 14:09, Alper Nebi Yasak wrote: > > The PWM device provided by Chrome OS EC doesn't really support anything > other than setting a relative duty cycle. To support it as a backlight, > this patch makes the PWM period optional in the device tree and pretends > the valid brightn

[PATCH v2 1/2] video: backlight: Support PWMs without a known period_ns

2020-09-26 Thread Alper Nebi Yasak
The PWM device provided by Chrome OS EC doesn't really support anything other than setting a relative duty cycle. To support it as a backlight, this patch makes the PWM period optional in the device tree and pretends the valid brightness range is its period_ns. Also adds a sandbox test for a PWM c