18c2ecf20Sopenharmony_ciSynaptics RMI4 I2C 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 I2C 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-i2c 118c2ecf20Sopenharmony_ci- reg: I2C address 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- syna,reset-delay-ms: The number of milliseconds to wait after resetting the 228c2ecf20Sopenharmony_ci device. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci- syna,startup-delay-ms: The number of milliseconds to wait after powering on 258c2ecf20Sopenharmony_ci the device. 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci- vdd-supply: VDD power supply. 288c2ecf20Sopenharmony_ciSee ../regulator/regulator.txt 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci- vio-supply: VIO power supply 318c2ecf20Sopenharmony_ciSee ../regulator/regulator.txt 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciFunction Parameters: 348c2ecf20Sopenharmony_ciParameters specific to RMI functions are contained in child nodes of the rmi device 358c2ecf20Sopenharmony_ci node. Documentation for the parameters of each function can be found in: 368c2ecf20Sopenharmony_ciDocumentation/devicetree/bindings/input/rmi4/rmi_f*.txt. 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciExample: 418c2ecf20Sopenharmony_ci &i2c1 { 428c2ecf20Sopenharmony_ci rmi4-i2c-dev@2c { 438c2ecf20Sopenharmony_ci compatible = "syna,rmi4-i2c"; 448c2ecf20Sopenharmony_ci reg = <0x2c>; 458c2ecf20Sopenharmony_ci #address-cells = <1>; 468c2ecf20Sopenharmony_ci #size-cells = <0>; 478c2ecf20Sopenharmony_ci interrupt-parent = <&gpio>; 488c2ecf20Sopenharmony_ci interrupts = <4 2>; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci rmi4-f01@1 { 518c2ecf20Sopenharmony_ci reg = <0x1>; 528c2ecf20Sopenharmony_ci syna,nosleep-mode = <1>; 538c2ecf20Sopenharmony_ci }; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci rmi4-f11@11 { 568c2ecf20Sopenharmony_ci reg = <0x11>; 578c2ecf20Sopenharmony_ci touchscreen-inverted-y; 588c2ecf20Sopenharmony_ci syna,sensor-type = <2>; 598c2ecf20Sopenharmony_ci }; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci }; 62