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)
commit14092ffbd7fd1d3aa4ea8006c747f225e9147dd6
tree78cb7f5a30f068319cd090c40ae69eb111f235ad
parentc77c5b25c1353d5db4a7d2213fe12e54ab3a05dd
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