Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306585
b: refs/heads/master
c: 5cb727a
h: refs/heads/master
i:
  306583: bcc30cf
v: v3
  • Loading branch information
Roland Stigge authored and Dmitry Torokhov committed Apr 21, 2012
1 parent 2589ffe commit 7cd4618
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5e9528bd19c6a3379aac468186f41d2bda48b04
refs/heads/master: 5cb727a86780fcac34de871cd12bea3f744d6be2
Original file line number Diff line number Diff line change
@@ -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>;
};
10 changes: 10 additions & 0 deletions trunk/drivers/input/touchscreen/lpc32xx_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/of.h>

/*
* Touchscreen controller register offsets
Expand Down Expand Up @@ -383,13 +384,22 @@ static const struct dev_pm_ops lpc32xx_ts_pm_ops = {
#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),
.driver = {
.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);
Expand Down

0 comments on commit 7cd4618

Please sign in to comment.