2022-05-11 13:36:36

by Max Krummenacher

[permalink] [raw]
Subject: [PATCH v2 4/4] ARM: dts: imx6qdl-colibri: backlight pwm: Adapt brightness steps

From: Max Krummenacher <[email protected]>

Adapt the brightness steps as the backlight doesn't light up
for very low duty cycles.

Signed-off-by: Max Krummenacher <[email protected]>

---

Changes in v2:
- add reviewed-by tags
- Split the Backlight PWM patch into two patches, a) #pwm-cells 3, b) adapt brightness steps
- Split to two patches as proposed by Fabio Estevam

arch/arm/boot/dts/imx6qdl-colibri.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi
index d91fae92c90a..023e76215064 100644
--- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi
@@ -14,8 +14,8 @@

backlight: backlight {
compatible = "pwm-backlight";
- brightness-levels = <0 4 8 16 32 64 128 255>;
- default-brightness-level = <6>;
+ brightness-levels = <0 45 63 88 119 158 203 255>;
+ default-brightness-level = <4>;
enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_bl_on>;
--
2.20.1



2022-05-12 06:40:35

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH v2 4/4] ARM: dts: imx6qdl-colibri: backlight pwm: Adapt brightness steps

On Wed, May 11, 2022 at 8:59 AM Max Krummenacher <[email protected]> wrote:
>
> From: Max Krummenacher <[email protected]>
>
> Adapt the brightness steps as the backlight doesn't light up
> for very low duty cycles.
>
> Signed-off-by: Max Krummenacher <[email protected]>

Reviewed-by: Fabio Estevam <[email protected]>