Commit | Line | Data |
---|---|---|
d8a8b3ed AD |
1 | Synaptics RMI4 I2C Device Binding |
2 | ||
3 | The Synaptics RMI4 core is able to support RMI4 devices using different | |
4 | transports and different functions. This file describes the device tree | |
5 | bindings for devices using the I2C transport driver. Complete documentation | |
6 | for other transports and functions can be found in | |
7 | Documentation/devicetree/bindings/input/rmi4. | |
8 | ||
9 | Required Properties: | |
10 | - compatible: syna,rmi4-i2c | |
11 | - reg: I2C address | |
12 | - #address-cells: Set to 1 to indicate that the function child nodes | |
13 | consist of only on uint32 value. | |
14 | - #size-cells: Set to 0 to indicate that the function child nodes do not | |
15 | have a size property. | |
16 | ||
17 | Optional Properties: | |
18 | - interrupts: interrupt which the rmi device is connected to. | |
19 | - interrupt-parent: The interrupt controller. | |
20 | See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | |
21 | ||
22 | - syna,reset-delay-ms: The number of milliseconds to wait after resetting the | |
23 | device. | |
24 | ||
25 | Function Parameters: | |
26 | Parameters specific to RMI functions are contained in child nodes of the rmi device | |
27 | node. Documentation for the parameters of each function can be found in: | |
28 | Documentation/devicetree/bindings/input/rmi4/rmi_f*.txt. | |
29 | ||
30 | ||
31 | ||
32 | Example: | |
33 | &i2c1 { | |
34 | rmi4-i2c-dev@2c { | |
35 | compatible = "syna,rmi4-i2c"; | |
36 | reg = <0x2c>; | |
37 | #address-cells = <1>; | |
38 | #size-cells = <0>; | |
39 | interrupt-parent = <&gpio>; | |
40 | interrupts = <4 2>; | |
41 | ||
42 | rmi4-f01@1 { | |
43 | reg = <0x1>; | |
44 | syna,nosleep-mode = <1>; | |
45 | }; | |
46 | ||
47 | rmi4-f11@11 { | |
48 | reg = <0x11>; | |
49 | touchscreen-inverted-y; | |
50 | syna,sensor-type = <2>; | |
51 | }; | |
52 | }; | |
53 | }; |