From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Mergnat Subject: [PATCH v4 2/3] dt-bindings: iio: position: Add docs pat9125 Date: Sat, 13 Jul 2019 10:04:54 +0200 Message-ID: <20190713080455.17513-3-amergnat@baylibre.com> References: <20190713080455.17513-1-amergnat@baylibre.com> Return-path: In-Reply-To: <20190713080455.17513-1-amergnat@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org To: robh+dt@kernel.org, mark.rutland@arm.com, jic23@kernel.org Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, baylibre-upstreaming@groups.io, dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Mergnat List-Id: devicetree@vger.kernel.org Add documentation for the optical tracker PAT9125 and "position" directory for chip which can provides position data. Signed-off-by: Alexandre Mergnat --- .../bindings/iio/position/pat9125.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/position/pat9125.txt diff --git a/Documentation/devicetree/bindings/iio/position/pat9125.txt b/Documentation/devicetree/bindings/iio/position/pat9125.txt new file mode 100644 index 000000000000..4028aeef9b42 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/position/pat9125.txt @@ -0,0 +1,18 @@ +PixArt Imaging PAT9125 Optical Tracking Miniature Chip device driver + +Required properties: + - compatible: must be "pixart,pat9125" + - reg: i2c address where to find the device + - interrupts: the sole interrupt generated by the device + + Refer to interrupt-controller/interrupts.txt for generic + interrupt client node bindings. + +Example: + +pat9125@75 { + compatible = "pixart,pat9125"; + reg = <0x75>; + interrupt-parent = <&gpio3>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; +}; -- 2.17.1