From 2be0a26f8ecd6430b9850ef3c2ab5b9bef7a9659 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Wed, 15 Mar 2017 23:51:38 +0800 Subject: [PATCH] dt-bindings: add binding for Nsiway NS2009 touchscreen controller Nsiway NS2009 is a resistive touchscreen controller, with I2C interface and optional interrupt pin. Add binding document for it. Signed-off-by: Icenowy Zheng --- .../bindings/input/touchscreen/ns2009.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ns2009.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt b/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt new file mode 100644 index 000000000000..0e9090ba978c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/ns2009.txt @@ -0,0 +1,23 @@ +* Nsiway NS2009 Resistive Touchscreen Controller + +Required properties: +- compatible : "nsiway,ns2009" +- reg : I2C slave address of the chip (0x48 or 0x49, depends on + the hardware) + +Optional properties: +- interrupt-parent : a phandle pointing to the interrupt controller + serving the interrupt for this chip +- interrupts : interrupt specification for the ns2009 pen interrupt +- properties defined in touchscreen.txt + +Example: + +i2c@00000000 { + ns2009: touchscreen@48 { + compatible = "nsiway,ns2009"; + reg = <0x48>; + touchscreen-fuzz-x = <8>; + touchscreen-fuzz-y = <8>; + }; +};