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
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
11 pwm-backlight backlight_pwm: invalid default brightness level: 16, using 15
13 The value is 0-based, so the max brightness is 15, not 16.
15 Signed-off-by: David Lechner <david@lechnology.com>
17 arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 --- a/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
21 +++ b/arch/arm/boot/dts/overlays/mipi-dbi-spi-overlay.dts
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>;