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