Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 368087
b: refs/heads/master
c: 2c0a4f8
h: refs/heads/master
i:
  368085: 45b45c3
  368083: bcc18d4
  368079: 82a4147
v: v3
  • Loading branch information
Mischa Jonker authored and Dmitry Torokhov committed Mar 31, 2013
1 parent f4d33fc commit 8da98e1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 257a1ec603538036a2f2ae7e8433d775b7a7588a
refs/heads/master: 2c0a4f8b870dbeb48e3351899bd0e0cc886d4985
16 changes: 16 additions & 0 deletions trunk/Documentation/devicetree/bindings/serio/snps-arc_ps2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
* ARC PS/2 driver: PS/2 block used in some ARC FPGA's & nSIM OSCI model

Required properties:
- compatible : "snps,arc_ps2"
- reg : offset and length (always 0x14) of registers
- interrupts : interrupt
- interrupt-names : name of interrupt, must be "arc_ps2_irq"

Example:

serio@c9000400 {
compatible = "snps,arc_ps2";
reg = <0xc9000400 0x14>;
interrupts = <13>;
interrupt-names = "arc_ps2_irq";
}
14 changes: 12 additions & 2 deletions trunk/drivers/input/serio/arc_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/input.h>
#include <linux/serio.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -259,10 +260,19 @@ static int arc_ps2_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_OF
static const struct of_device_id arc_ps2_match[] = {
{ .compatible = "snps,arc_ps2" },
{ },
};
MODULE_DEVICE_TABLE(of, arc_ps2_match);
#endif

static struct platform_driver arc_ps2_driver = {
.driver = {
.name = "arc_ps2",
.owner = THIS_MODULE,
.name = "arc_ps2",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(arc_ps2_match),
},
.probe = arc_ps2_probe,
.remove = arc_ps2_remove,
Expand Down

0 comments on commit 8da98e1

Please sign in to comment.