From: Roland Stigge <stigge@antcom.de>
To: arm@kernel.org, thierry.reding@avionic-design.de, arnd@arndb.de,
linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-input@vger.kernel.org, dmitry.torokhov@gmail.com,
axel.lin@gmail.com, broonie@opensource.wolfsonmicro.com,
marek.vasut@gmail.com, devel@driverdev.osuosl.org,
kevin.wells@nxp.com, srinivas.bakki@nxp.com
Cc: Roland Stigge <stigge@antcom.de>
Subject: [PATCH v4 6/10] input: Device tree support for LPC32xx touchscreen
Date: Thu, 19 Apr 2012 15:00:11 +0200 [thread overview]
Message-ID: <1334840415-14287-7-git-send-email-stigge@antcom.de> (raw)
In-Reply-To: <1334840415-14287-1-git-send-email-stigge@antcom.de>
This patch adds device tree support for the LPC32xx SoC's touchscreen
controller.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de>
---
Applies to v3.4-rc3
Documentation/devicetree/bindings/input/touchscreen/lpc32xx-tsc.txt | 16 ++++++++++
drivers/input/touchscreen/lpc32xx_ts.c | 10 ++++++
2 files changed, 26 insertions(+)
--- /dev/null
+++ linux-2.6/Documentation/devicetree/bindings/input/touchscreen/lpc32xx-tsc.txt
@@ -0,0 +1,16 @@
+* NXP LPC32xx SoC Touchscreen Controller (TSC)
+
+Required properties:
+- compatible: must be "nxp,lpc32xx-tsc"
+- reg: physical base address of the controller and length of memory mapped
+ region.
+- interrupts: The TSC/ADC interrupt
+
+Example:
+
+ tsc@40048000 {
+ compatible = "nxp,lpc32xx-tsc";
+ reg = <0x40048000 0x1000>;
+ interrupt-parent = <&mic>;
+ interrupts = <39 0>;
+ };
--- linux-2.6.orig/drivers/input/touchscreen/lpc32xx_ts.c
+++ linux-2.6/drivers/input/touchscreen/lpc32xx_ts.c
@@ -22,6 +22,7 @@
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/slab.h>
+#include <linux/of.h>
/*
* Touchscreen controller register offsets
@@ -383,6 +384,14 @@ static const struct dev_pm_ops lpc32xx_t
#define LPC32XX_TS_PM_OPS NULL
#endif
+#ifdef CONFIG_OF
+static struct of_device_id lpc32xx_tsc_of_match[] = {
+ { .compatible = "nxp,lpc32xx-tsc", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, lpc32xx_tsc_of_match);
+#endif
+
static struct platform_driver lpc32xx_ts_driver = {
.probe = lpc32xx_ts_probe,
.remove = __devexit_p(lpc32xx_ts_remove),
@@ -390,6 +399,7 @@ static struct platform_driver lpc32xx_ts
.name = MOD_NAME,
.owner = THIS_MODULE,
.pm = LPC32XX_TS_PM_OPS,
+ .of_match_table = of_match_ptr(lpc32xx_tsc_of_match),
},
};
module_platform_driver(lpc32xx_ts_driver);
next prev parent reply other threads:[~2012-04-19 13:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 13:00 [PATCH v4 0/10] Second patchset for LPC32xx device tree conversion Roland Stigge
2012-04-19 13:00 ` [PATCH v4 1/10] ohci-nxp: Driver cleanup Roland Stigge
2012-04-19 13:00 ` [PATCH v4 2/10] ohci-nxp: Device tree support Roland Stigge
2012-04-19 13:00 ` [PATCH v4 3/10] ARM: LPC32xx: clock.c cleanup Roland Stigge
2012-04-19 13:00 ` [PATCH v4 4/10] ARM: LPC32xx: clock.c dma adjustment Roland Stigge
2012-04-19 13:00 ` [PATCH v4 5/10] ARM: LPC32xx: Remove obsolete platform Kconfig Roland Stigge
2012-04-19 13:00 ` Roland Stigge [this message]
2012-04-21 6:39 ` [PATCH v4 6/10] input: Device tree support for LPC32xx touchscreen Dmitry Torokhov
2012-04-19 13:00 ` [PATCH v4 7/10] iio: lpc32xx-adc: Remove driver conflict due to device tree Roland Stigge
2012-04-19 13:00 ` [PATCH v4 8/10] ARM: LPC32xx: DTS files for device tree conversion Roland Stigge
2012-04-19 13:00 ` [PATCH v4 9/10] ARM: LPC32xx: Device tree support Roland Stigge
2012-04-19 13:00 ` [PATCH v4 10/10] ARM: LPC32xx: Move common code to common.c Roland Stigge
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=1334840415-14287-7-git-send-email-stigge@antcom.de \
--to=stigge@antcom.de \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=axel.lin@gmail.com \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=devel@driverdev.osuosl.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kevin.wells@nxp.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marek.vasut@gmail.com \
--cc=srinivas.bakki@nxp.com \
--cc=thierry.reding@avionic-design.de \
/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;
as well as URLs for NNTP newsgroup(s).