openwrt/target/linux/bcm27xx/patches-6.1/950-0691-arm-boot-dts-overlays-mipi-dbi-spi-fix-default-brigh.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

From d566473897f50c1531111f117d4a84fdf5729729 Mon Sep 17 00:00:00 2001
From: David Lechner <david@lechnology.com>
Date: Mon, 24 Apr 2023 10:15:59 -0500
Subject: [PATCH] arm/boot/dts/overlays/mipi-dbi-spi: fix default
brightness (#5442)
There is an off-by-one error in the default brightness for the PWM backlight
in the MIPI DBI SPI overlay that produces the following message in the
kernel logs:
pwm-backlight backlight_pwm: invalid default brightness level: 16, using 15
The value is 0-based, so the max brightness is 15, not 16.
Signed-off-by: David Lechner <david@lechnology.com>
---
arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
+++ b/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
@@ -80,7 +80,7 @@
backlight_pwm: backlight_pwm {
compatible = "pwm-backlight";
brightness-levels = <0 6 8 12 16 24 32 40 48 64 96 128 160 192 224 255>;
- default-brightness-level = <16>;
+ default-brightness-level = <15>;
pwms = <&pwm 0 200000>;
};
};