0001 Synaptics RMI4 SPI Device Binding
0002
0003 The Synaptics RMI4 core is able to support RMI4 devices using different
0004 transports and different functions. This file describes the device tree
0005 bindings for devices using the SPI transport driver. Complete documentation
0006 for other transports and functions can be found in
0007 Documentation/devicetree/bindings/input/rmi4.
0008
0009 Required Properties:
0010 - compatible: syna,rmi4-spi
0011 - reg: Chip select address for the device
0012 - #address-cells: Set to 1 to indicate that the function child nodes
0013 consist of only on uint32 value.
0014 - #size-cells: Set to 0 to indicate that the function child nodes do not
0015 have a size property.
0016
0017 Optional Properties:
0018 - interrupts: interrupt which the rmi device is connected to.
0019 See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
0020
0021 - spi-rx-delay-us: microsecond delay after a read transfer.
0022 - spi-tx-delay-us: microsecond delay after a write transfer.
0023
0024 Function Parameters:
0025 Parameters specific to RMI functions are contained in child nodes of the rmi device
0026 node. Documentation for the parameters of each function can be found in:
0027 Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
0028
0029
0030
0031 Example:
0032 spi@7000d800 {
0033 rmi4-spi-dev@0 {
0034 compatible = "syna,rmi4-spi";
0035 reg = <0x0>;
0036 #address-cells = <1>;
0037 #size-cells = <0>;
0038 spi-max-frequency = <4000000>;
0039 spi-cpha;
0040 spi-cpol;
0041 interrupt-parent = <&gpio>;
0042 interrupts = <TEGRA_GPIO(K, 2) 0x2>;
0043 spi-rx-delay-us = <30>;
0044
0045 rmi4-f01@1 {
0046 reg = <0x1>;
0047 syna,nosleep-mode = <1>;
0048 };
0049
0050 rmi4-f11@11 {
0051 reg = <0x11>;
0052 touchscreen-inverted-y;
0053 syna,sensor-type = <2>;
0054 };
0055 };
0056 };