ARM: dts: imx6q-apalis: backlight pwm: Simplify inverted backlight
authorMax Krummenacher <max.krummenacher@toradex.com>
Wed, 15 Jun 2022 11:50:04 +0000 (13:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 Jun 2022 01:12:41 +0000 (09:12 +0800)
commite366f7f7fcf6c98298644f45c7fe6660c3e30ffc
tree6c56125157764a82d048ccb7c7795596cb49bf6a
parent1868abc13d3dffd31479867b1b11def92baa9f0d
ARM: dts: imx6q-apalis: 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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-apalis.dtsi