1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0693-arm-boot-dts-overlays-mipi-dbi-spi-fix-default-brigh.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

30 lines
1.1 KiB
Diff

From ba51bc64eb77727de4dce701f3fba46843e56e79 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>;
};
};