aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input
diff options
context:
space:
mode:
authorAndrew Duggan <aduggan@synaptics.com>2016-03-10 18:59:52 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-03-10 19:04:25 -0500
commit48147b9768b83265bf2e1211bcadeca035011380 (patch)
tree5af450151993e3e454ef1f5d2c2111a0f94d4110 /Documentation/devicetree/bindings/input
parent8d99758dee31ff4a72bfc35d3a7a51fe66b7bb91 (diff)
Input: synaptics-rmi4 - add device tree support to the SPI transport driver
Add devicetree binding for SPI devices. Signed-off-by: Andrew Duggan <aduggan@synaptics.com> Acked-by: Rob Herring <robh@kernel.org> Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Tested-by: Linus Walleij <linus.walleij@linaro.org> Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
-rw-r--r--Documentation/devicetree/bindings/input/rmi4/rmi_spi.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/rmi4/rmi_spi.txt b/Documentation/devicetree/bindings/input/rmi4/rmi_spi.txt
new file mode 100644
index 000000000000..a4ca7828f21d
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/rmi4/rmi_spi.txt
@@ -0,0 +1,57 @@
1Synaptics RMI4 SPI Device Binding
2
3The Synaptics RMI4 core is able to support RMI4 devices using different
4transports and different functions. This file describes the device tree
5bindings for devices using the SPI transport driver. Complete documentation
6for other transports and functions can be found in
7Documentation/devicetree/bindings/input/rmi4.
8
9Required Properties:
10- compatible: syna,rmi4-spi
11- reg: Chip select address for the device
12- #address-cells: Set to 1 to indicate that the function child nodes
13 consist of only on uint32 value.
14- #size-cells: Set to 0 to indicate that the function child nodes do not
15 have a size property.
16
17Optional Properties:
18- interrupts: interrupt which the rmi device is connected to.
19- interrupt-parent: The interrupt controller.
20See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
21
22- spi-rx-delay-us: microsecond delay after a read transfer.
23- spi-tx-delay-us: microsecond delay after a write transfer.
24
25Function Parameters:
26Parameters specific to RMI functions are contained in child nodes of the rmi device
27 node. Documentation for the parameters of each function can be found in:
28Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
29
30
31
32Example:
33 spi@7000d800 {
34 rmi4-spi-dev@0 {
35 compatible = "syna,rmi4-spi";
36 reg = <0x0>;
37 #address-cells = <1>;
38 #size-cells = <0>;
39 spi-max-frequency = <4000000>;
40 spi-cpha;
41 spi-cpol;
42 interrupt-parent = <&gpio>;
43 interrupts = <TEGRA_GPIO(K, 2) 0x2>;
44 spi-rx-delay-us = <30>;
45
46 rmi4-f01@1 {
47 reg = <0x1>;
48 syna,nosleep-mode = <1>;
49 };
50
51 rmi4-f11@11 {
52 reg = <0x11>;
53 touchscreen-inverted-y;
54 syna,sensor-type = <2>;
55 };
56 };
57 };