1*c66ec88fSEmmanuel VadotSynaptics RMI4 SPI Device Binding 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotThe Synaptics RMI4 core is able to support RMI4 devices using different 4*c66ec88fSEmmanuel Vadottransports and different functions. This file describes the device tree 5*c66ec88fSEmmanuel Vadotbindings for devices using the SPI transport driver. Complete documentation 6*c66ec88fSEmmanuel Vadotfor other transports and functions can be found in 7*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/input/rmi4. 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel VadotRequired Properties: 10*c66ec88fSEmmanuel Vadot- compatible: syna,rmi4-spi 11*c66ec88fSEmmanuel Vadot- reg: Chip select address for the device 12*c66ec88fSEmmanuel Vadot- #address-cells: Set to 1 to indicate that the function child nodes 13*c66ec88fSEmmanuel Vadot consist of only on uint32 value. 14*c66ec88fSEmmanuel Vadot- #size-cells: Set to 0 to indicate that the function child nodes do not 15*c66ec88fSEmmanuel Vadot have a size property. 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel VadotOptional Properties: 18*c66ec88fSEmmanuel Vadot- interrupts: interrupt which the rmi device is connected to. 19*c66ec88fSEmmanuel VadotSee Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 20*c66ec88fSEmmanuel Vadot 21*c66ec88fSEmmanuel Vadot- spi-rx-delay-us: microsecond delay after a read transfer. 22*c66ec88fSEmmanuel Vadot- spi-tx-delay-us: microsecond delay after a write transfer. 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel VadotFunction Parameters: 25*c66ec88fSEmmanuel VadotParameters specific to RMI functions are contained in child nodes of the rmi device 26*c66ec88fSEmmanuel Vadot node. Documentation for the parameters of each function can be found in: 27*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/input/rmi4/rmi_f*.txt. 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel VadotExample: 32*c66ec88fSEmmanuel Vadot spi@7000d800 { 33*c66ec88fSEmmanuel Vadot rmi4-spi-dev@0 { 34*c66ec88fSEmmanuel Vadot compatible = "syna,rmi4-spi"; 35*c66ec88fSEmmanuel Vadot reg = <0x0>; 36*c66ec88fSEmmanuel Vadot #address-cells = <1>; 37*c66ec88fSEmmanuel Vadot #size-cells = <0>; 38*c66ec88fSEmmanuel Vadot spi-max-frequency = <4000000>; 39*c66ec88fSEmmanuel Vadot spi-cpha; 40*c66ec88fSEmmanuel Vadot spi-cpol; 41*c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio>; 42*c66ec88fSEmmanuel Vadot interrupts = <TEGRA_GPIO(K, 2) 0x2>; 43*c66ec88fSEmmanuel Vadot spi-rx-delay-us = <30>; 44*c66ec88fSEmmanuel Vadot 45*c66ec88fSEmmanuel Vadot rmi4-f01@1 { 46*c66ec88fSEmmanuel Vadot reg = <0x1>; 47*c66ec88fSEmmanuel Vadot syna,nosleep-mode = <1>; 48*c66ec88fSEmmanuel Vadot }; 49*c66ec88fSEmmanuel Vadot 50*c66ec88fSEmmanuel Vadot rmi4-f11@11 { 51*c66ec88fSEmmanuel Vadot reg = <0x11>; 52*c66ec88fSEmmanuel Vadot touchscreen-inverted-y; 53*c66ec88fSEmmanuel Vadot syna,sensor-type = <2>; 54*c66ec88fSEmmanuel Vadot }; 55*c66ec88fSEmmanuel Vadot }; 56*c66ec88fSEmmanuel Vadot }; 57