[PATCH 2/4] dt-bindings: add binding for Nsiway NS2009 touchscreen controller
Icenowy Zheng
icenowy at aosc.xyz
Wed Mar 15 08:51:38 PDT 2017
Nsiway NS2009 is a resistive touchscreen controller, with I2C interface
and optional interrupt pin.
Add binding document for it.
Signed-off-by: Icenowy Zheng <icenowy at aosc.xyz>
---
.../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 at 00000000 {
+ ns2009: touchscreen at 48 {
+ compatible = "nsiway,ns2009";
+ reg = <0x48>;
+ touchscreen-fuzz-x = <8>;
+ touchscreen-fuzz-y = <8>;
+ };
+};
--
2.12.0
More information about the linux-arm-kernel
mailing list