]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00298052-2 Documentation: video: add Hannstar CABC dt bindings
authorLiu Ying <Ying.Liu@freescale.com>
Tue, 18 Feb 2014 05:19:12 +0000 (13:19 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:55 +0000 (10:06 +0200)
This patch documents the Hannstar CABC driver's device tree bindings.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 0a6b9cf8548ffe03b8df494d08bece54ef3e528e)

Documentation/devicetree/bindings/video/hannstar,cabc.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/video/hannstar,cabc.txt b/Documentation/devicetree/bindings/video/hannstar,cabc.txt
new file mode 100644 (file)
index 0000000..bf582ef
--- /dev/null
@@ -0,0 +1,28 @@
+* Hannstar CABC device tree bindings
+
+The Hannstar CABC function may turn a display plane's backlight
+automatically according to the content shown on the plane.  The
+function is controlled(enabled/disabled) by a GPIO.
+
+Required properties:
+- compatible : Should be "hannstar,cabc".
+
+Each standalone CABC gpio is represented as a sub-node of "hannstar_cabc":
+Required subnode properties:
+- gpios: OF device-tree gpio specification.
+
+Optional subnode properties:
+- cabc-enable: Provide this bool property if you want to enable the CABC feature.
+
+Example:
+       hannstar_cabc {
+               compatible = "hannstar,cabc";
+
+               lvds0 {
+                       gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
+               };
+
+               lvds1 {
+                       gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>;
+               };
+       };