Back to home page

OSCL-LXR

 
 

    


0001 Synaptics RMI4 I2C 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 I2C 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-i2c
0011 - reg: I2C address
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 - syna,reset-delay-ms: The number of milliseconds to wait after resetting the
0022                         device.
0023 
0024 - syna,startup-delay-ms: The number of milliseconds to wait after powering on
0025                          the device.
0026 
0027 - vdd-supply: VDD power supply.
0028 See ../regulator/regulator.txt
0029 
0030 - vio-supply: VIO power supply
0031 See ../regulator/regulator.txt
0032 
0033 Function Parameters:
0034 Parameters specific to RMI functions are contained in child nodes of the rmi device
0035  node. Documentation for the parameters of each function can be found in:
0036 Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt.
0037 
0038 
0039 
0040 Example:
0041         &i2c1 {
0042                 rmi4-i2c-dev@2c {
0043                         compatible = "syna,rmi4-i2c";
0044                         reg = <0x2c>;
0045                         #address-cells = <1>;
0046                         #size-cells = <0>;
0047                         interrupt-parent = <&gpio>;
0048                         interrupts = <4 2>;
0049 
0050                         rmi4-f01@1 {
0051                                 reg = <0x1>;
0052                                 syna,nosleep-mode = <1>;
0053                         };
0054 
0055                         rmi4-f11@11 {
0056                                 reg = <0x11>;
0057                                 touchscreen-inverted-y;
0058                                 syna,sensor-type = <2>;
0059                         };
0060                 };
0061         };