]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: imx6qdl-colibri: backlight pwm: Simplify inverted backlight
authorMax Krummenacher <max.krummenacher@toradex.com>
Fri, 13 May 2022 10:26:14 +0000 (12:26 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 11 Jun 2022 08:50:40 +0000 (16:50 +0800)
commitd5a038c76625912838f6736a815a1f00a1a728a7
tree78cb7f5a30f068319cd090c40ae69eb111f235ad
parentefa46a945233e930a649ce4276b07f1fc7563e53
ARM: dts: imx6qdl-colibri: backlight pwm: Simplify inverted backlight

Set #pwm-cells to the default 3 to gain access to the parameter
which allows inverting the PWM signal. This is useful to specify
a backlight which has its highest brightness at 0.

With the change to use the PWM with inverted polarity the PWM signal
is inverted to how it was before this patch.
This changes the meaning of the values in the brightness-levels
property. I.e. the duty-cycle changes from x/255 to (255-x)/255.
Keeping the brightness-levels will then have a big brightness
jump from 0 to 127 duty cycle, the other 6 steps will then be
barely noticeable.

Change the brightness-levels to provide the same brightness-levels
as before.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-colibri.dtsi