arm64: dts: renesas: beacon: Fix RGB Display PWM Backlight
authorAdam Ford <aford173@gmail.com>
Sun, 13 Dec 2020 18:37:49 +0000 (12:37 -0600)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 28 Dec 2020 09:46:45 +0000 (10:46 +0100)
The backlight didn't really work correctly due to some updates that were
made in hardware.  It should be safe to apply these, because the older
hardware was never shipped to anyone, so it shouldn't break anything.
Because the display driver refers to the display as DPI, this also
renames the backlight to use DPI for consistency.

Signed-off-by: Adam Ford <aford173@gmail.com>
Link: https://lore.kernel.org/r/20201213183759.223246-10-aford173@gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi

index 12a9f14..1ab96ec 100644 (file)
                default-brightness-level = <6>;
        };
 
-       backlight_rgb: backlight-rgb {
+       backlight_dpi: backlight-dpi {
                compatible = "pwm-backlight";
                power-supply = <&reg_lcd>;
                enable-gpios = <&gpio_exp1 7 GPIO_ACTIVE_LOW>;
-               pwms = <&pwm0 0 50000>;
-               brightness-levels = <0 4 8 16 32 64 128 255>;
+               pwms = <&pwm0 0 25000>;
+               brightness-levels = <0 25 33 50 63 75 88 100>;
                default-brightness-level = <6>;
        };
 
        rgb {
                /* Different LCD with compatible timings */
                compatible = "rocktech,rk070er9427";
-               backlight = <&backlight_rgb>;
+               backlight = <&backlight_dpi>;
                enable-gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
                power-supply = <&reg_lcd>;
                port {