18c2ecf20Sopenharmony_ciSynaptics RMI4 SPI Device Binding
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe Synaptics RMI4 core is able to support RMI4 devices using different
48c2ecf20Sopenharmony_citransports and different functions. This file describes the device tree
58c2ecf20Sopenharmony_cibindings for devices using the SPI transport driver. Complete documentation
68c2ecf20Sopenharmony_cifor other transports and functions can be found in
78c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/input/rmi4.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciRequired Properties:
108c2ecf20Sopenharmony_ci- compatible: syna,rmi4-spi
118c2ecf20Sopenharmony_ci- reg: Chip select address for the device
128c2ecf20Sopenharmony_ci- #address-cells: Set to 1 to indicate that the function child nodes
138c2ecf20Sopenharmony_ci		    consist of only on uint32 value.
148c2ecf20Sopenharmony_ci- #size-cells: Set to 0 to indicate that the function child nodes do not
158c2ecf20Sopenharmony_ci		have a size property.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciOptional Properties:
188c2ecf20Sopenharmony_ci- interrupts: interrupt which the rmi device is connected to.
198c2ecf20Sopenharmony_ciSee Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci- spi-rx-delay-us: microsecond delay after a read transfer.
228c2ecf20Sopenharmony_ci- spi-tx-delay-us: microsecond delay after a write transfer.
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciFunction Parameters:
258c2ecf20Sopenharmony_ciParameters specific to RMI functions are contained in child nodes of the rmi device
268c2ecf20Sopenharmony_ci node. Documentation for the parameters of each function can be found in:
278c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciExample:
328c2ecf20Sopenharmony_ci	spi@7000d800 {
338c2ecf20Sopenharmony_ci		rmi4-spi-dev@0 {
348c2ecf20Sopenharmony_ci			compatible = "syna,rmi4-spi";
358c2ecf20Sopenharmony_ci			reg = <0x0>;
368c2ecf20Sopenharmony_ci			#address-cells = <1>;
378c2ecf20Sopenharmony_ci			#size-cells = <0>;
388c2ecf20Sopenharmony_ci			spi-max-frequency = <4000000>;
398c2ecf20Sopenharmony_ci			spi-cpha;
408c2ecf20Sopenharmony_ci			spi-cpol;
418c2ecf20Sopenharmony_ci			interrupt-parent = <&gpio>;
428c2ecf20Sopenharmony_ci			interrupts = <TEGRA_GPIO(K, 2) 0x2>;
438c2ecf20Sopenharmony_ci			spi-rx-delay-us = <30>;
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci			rmi4-f01@1 {
468c2ecf20Sopenharmony_ci				reg = <0x1>;
478c2ecf20Sopenharmony_ci				syna,nosleep-mode = <1>;
488c2ecf20Sopenharmony_ci			};
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci			rmi4-f11@11 {
518c2ecf20Sopenharmony_ci				reg = <0x11>;
528c2ecf20Sopenharmony_ci				touchscreen-inverted-y;
538c2ecf20Sopenharmony_ci				syna,sensor-type = <2>;
548c2ecf20Sopenharmony_ci			};
558c2ecf20Sopenharmony_ci		};
568c2ecf20Sopenharmony_ci	};
57