drm/tilcdc: add a da850-specific compatible string
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 3 Oct 2016 15:45:19 +0000 (17:45 +0200)
committerJyri Sarha <jsarha@ti.com>
Tue, 29 Nov 2016 19:03:16 +0000 (21:03 +0200)
Due to some potential tweaks for the da850 LCDC (for example: the
required memory bandwith settings) we need a separate compatible
for the IP present on the da850 boards.

Suggested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt
drivers/gpu/drm/tilcdc/tilcdc_drv.c

index a83abd79c55cbccada48ff1744e9adae5500868e..6fddb4f4f71a45f0fc001b7f904a89f6e50948b3 100644 (file)
@@ -1,7 +1,9 @@
 Device-Tree bindings for tilcdc DRM driver
 
 Required properties:
- - compatible: value should be "ti,am33xx-tilcdc".
+ - compatible: value should be one of the following:
+    - "ti,am33xx-tilcdc" for AM335x based boards
+    - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards
  - interrupts: the interrupt number
  - reg: base address and size of the LCDC device
 
@@ -51,7 +53,7 @@ Optional nodes:
 Example:
 
        fb: fb@4830e000 {
-               compatible = "ti,am33xx-tilcdc";
+               compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc";
                reg = <0x4830e000 0x1000>;
                interrupt-parent = <&intc>;
                interrupts = <36>;
index 0f58a74f25d1d33b9f47849e1f6fa65a4280a77f..8f897fe2332eb16dfd1d8c1f70b4cf8c90016a26 100644 (file)
@@ -719,6 +719,7 @@ static int tilcdc_pdev_remove(struct platform_device *pdev)
 
 static struct of_device_id tilcdc_of_match[] = {
                { .compatible = "ti,am33xx-tilcdc", },
+               { .compatible = "ti,da850-tilcdc", },
                { },
 };
 MODULE_DEVICE_TABLE(of, tilcdc_of_match);