From 2d605456431343886bc073ea126aeb7c64e07a57 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Tue, 15 Jul 2014 14:33:25 +0200 Subject: [PATCH] video/atmel_lcdfb: Introduce regulator support This adds regulator support to enable/disable the LCD voltage, using 'lcd-supply' as regulator name. Signed-off-by: Alexander Stein Signed-off-by: Tomi Valkeinen --- .../devicetree/bindings/video/atmel,lcdc.txt | 3 +++ drivers/video/fbdev/atmel_lcdfb.c | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/video/atmel,lcdc.txt b/Documentation/devicetree/bindings/video/atmel,lcdc.txt index b75af94..b37be4f 100644 --- a/Documentation/devicetree/bindings/video/atmel,lcdc.txt +++ b/Documentation/devicetree/bindings/video/atmel,lcdc.txt @@ -20,6 +20,9 @@ Required nodes: - default-mode: a videomode within the display with timing parameters as specified below. +Optional properties: +- lcd-supply: Regulator for LCD supply voltage. + Example: fb0: fb@0x00500000 { diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index 92640d4..10d0380 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -24,6 +24,7 @@ #include #include #include