]> www.infradead.org Git - nvme.git/commitdiff
arm64: dts: renesas: r8a77995: draak: Add backlight
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 25 Nov 2018 14:40:30 +0000 (16:40 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 5 Dec 2018 19:45:44 +0000 (11:45 -0800)
Add the backlight device for the LVDS1 output, in preparation for panel
support.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a77995-draak.dts

index 48bb1d77744ff71a72f3c181e846ae3ac1097252..52d044b9f3f20d913b6ce8390c52532ce6c6c15d 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
+       backlight: backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm1 0 50000>;
+
+               brightness-levels = <256 128 64 16 8 4 0>;
+               default-brightness-level = <6>;
+
+               power-supply = <&reg_12p0v>;
+               enable-gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
+       };
+
        composite-in {
                compatible = "composite-video-connector";
 
                regulator-always-on;
        };
 
+       reg_12p0v: regulator1 {
+               compatible = "regulator-fixed";
+               regulator-name = "D12.0V";
+               regulator-min-microvolt = <12000000>;
+               regulator-max-microvolt = <12000000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
+
        vga {
                compatible = "vga-connector";