mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Afzal Mohammed <afzal@ti.com>
To: <linux-fbdev@vger.kernel.org>, <linux-omap@vger.kernel.org>,
	<devicetree-discuss@lists.ozlabs.org>,
	<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	Grant Likely <grant.likely@secretlab.ca>,
	Rob Herring <rob.herring@calxeda.com>,
	Rob Landley <rob@landley.net>,
	Mike Turquette <mturquette@linaro.org>
Subject: [PATCH v5 07/12] video: da8xx-fb: minimal dt support
Date: Mon, 28 Jan 2013 14:51:20 +0530	[thread overview]
Message-ID: <c7ee69ac9efaf8ab15ac6194adee2f39b3d2ecc3.1359356015.git.afzal@ti.com> (raw)
In-Reply-To: <cover.1359356015.git.afzal@ti.com>

Driver is provided a means to have the probe triggered by DT.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 Documentation/devicetree/bindings/video/fb-da8xx.txt | 16 ++++++++++++++++
 drivers/video/da8xx-fb.c                             |  7 +++++++
 2 files changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/video/fb-da8xx.txt

diff --git a/Documentation/devicetree/bindings/video/fb-da8xx.txt b/Documentation/devicetree/bindings/video/fb-da8xx.txt
new file mode 100644
index 0000000..581e014
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/fb-da8xx.txt
@@ -0,0 +1,16 @@
+TI LCD Controller on DA830/DA850/AM335x SoC's
+
+Required properties:
+- compatible:
+	DA830 - "ti,da830-lcdc"
+	AM335x SoC's - "ti,am3352-lcdc", "ti,da830-lcdc"
+- reg: Address range of lcdc register set
+- interrupts: lcdc interrupt
+
+Example:
+
+lcdc@4830e000 {
+	compatible = "ti,am3352-lcdc", "ti,da830-lcdc";
+	reg =  <0x4830e000 0x1000>;
+	interrupts = <36>;
+};
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index b6ea5e9..08ee8eb 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -1595,6 +1595,12 @@ static int fb_resume(struct platform_device *dev)
 #define fb_resume NULL
 #endif
 
+static const struct of_device_id da8xx_fb_of_match[] = {
+	{.compatible = "ti,da830-lcdc", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, da8xx_fb_of_match);
+
 static struct platform_driver da8xx_fb_driver = {
 	.probe = fb_probe,
 	.remove = fb_remove,
@@ -1603,6 +1609,7 @@ static struct platform_driver da8xx_fb_driver = {
 	.driver = {
 		   .name = DRIVER_NAME,
 		   .owner = THIS_MODULE,
+		   .of_match_table = of_match_ptr(da8xx_fb_of_match),
 		   },
 };
 
-- 
1.7.12


  parent reply	other threads:[~2013-01-28  9:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28  9:20 [PATCH v5 00/12] video: da8xx-fb: am335x DT support Afzal Mohammed
2013-01-28  9:20 ` [PATCH v5 01/12] video: da8xx-fb: make io operations safe Afzal Mohammed
2013-01-28  9:20 ` [PATCH v5 02/12] video: da8xx-fb: fix 24bpp raster configuration Afzal Mohammed
2013-01-28  9:20 ` [PATCH v5 03/12] video: da8xx-fb: enable sync lost intr for v2 ip Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 04/12] video: da8xx-fb: use devres Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 05/12] video: da8xx-fb: ensure non-null cfg in pdata Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 06/12] video: da8xx-fb: reorganize panel detection Afzal Mohammed
2013-01-28  9:21 ` Afzal Mohammed [this message]
2013-01-28  9:21 ` [PATCH v5 08/12] video: da8xx-fb: invoke platform callback safely Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 09/12] video: da8xx-fb: obtain fb_videomode info from dt Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 10/12] video: da8xx-fb: ensure pdata only for non-dt Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 11/12] video: da8xx-fb: setup struct lcd_ctrl_config for dt Afzal Mohammed
2013-01-28  9:21 ` [PATCH v5 12/12] video: da8xx-fb: set upstream clock rate (if reqd) Afzal Mohammed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7ee69ac9efaf8ab15ac6194adee2f39b3d2ecc3.1359356015.git.afzal@ti.com \
    --to=afzal@ti.com \
    --cc=FlorianSchandinat@gmx.de \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@linaro.org \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®