diff options
author | Caesar Wang <wxt@rock-chips.com> | 2017-02-09 21:03:56 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-03-06 07:48:44 -0500 |
commit | cb5cfd91a7ae5ae355e657e5ce4931836b7665eb (patch) | |
tree | de926ac001ac7c3e1af51b45609926fd74515654 | |
parent | 81bbef23db51c0b450d90607fbbc2ad80ee0d43f (diff) |
devicetree: i2c-hid: Add regulator support
Document a "vdd-supply" and an initialization delay. Can be used for
powering on/off a HID.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | Documentation/devicetree/bindings/input/hid-over-i2c.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/hid-over-i2c.txt b/Documentation/devicetree/bindings/input/hid-over-i2c.txt index 488edcb264c4..28e8bd8b7d64 100644 --- a/Documentation/devicetree/bindings/input/hid-over-i2c.txt +++ b/Documentation/devicetree/bindings/input/hid-over-i2c.txt | |||
@@ -17,6 +17,22 @@ Required properties: | |||
17 | - interrupt-parent: the phandle for the interrupt controller | 17 | - interrupt-parent: the phandle for the interrupt controller |
18 | - interrupts: interrupt line | 18 | - interrupts: interrupt line |
19 | 19 | ||
20 | Additional optional properties: | ||
21 | |||
22 | Some devices may support additional optional properties to help with, e.g., | ||
23 | power sequencing. The following properties can be supported by one or more | ||
24 | device-specific compatible properties, which should be used in addition to the | ||
25 | "hid-over-i2c" string. | ||
26 | |||
27 | - compatible: | ||
28 | * "wacom,w9013" (Wacom W9013 digitizer). Supports: | ||
29 | - vdd-supply | ||
30 | - post-power-on-delay-ms | ||
31 | |||
32 | - vdd-supply: phandle of the regulator that provides the supply voltage. | ||
33 | - post-power-on-delay-ms: time required by the device after enabling its regulators | ||
34 | before it is ready for communication. Must be used with 'vdd-supply'. | ||
35 | |||
20 | Example: | 36 | Example: |
21 | 37 | ||
22 | i2c-hid-dev@2c { | 38 | i2c-hid-dev@2c { |