diff options
| author | Steve Twiss <stwiss.opensource@diasemi.com> | 2016-11-08 19:15:31 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-11-08 19:23:50 -0500 |
| commit | 406d5a2de0718622241eff35831f6fed0316a7d4 (patch) | |
| tree | 1effccce101d00920038a36500ba93bf9888493f /Documentation/devicetree/bindings/input | |
| parent | c3fc60893d2d3ef55844c26770d080eceff68fd5 (diff) | |
Input: da9062 - update bindings docs to account for da9061
Add binding information for DA9061 onkey.
This patch updates the compatible string "dlg,da9061-onkey" to support
DA9061, removes the reference to KEY_SLEEP (which the driver no longer
supports) and fixes a typo in the example for DA9063.
Supporting KEY_SLEEP was not the general convention and the typical
solution should have been for KEY_POWER to support both cases of suspend
and S/W power off. This change was sent to the DA9063 ONKEY device
driver in a separate patch, but the documentation was not updated at
that time.
- f889bea Report KEY_POWER instead of KEY_SLEEP during power key-press
This patch also adds two new examples, one for DA9062 and one for DA9061.
The DA9061 examples uses a fall-back compatible string for the DA9062
onkey driver.
Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
| -rw-r--r-- | Documentation/devicetree/bindings/input/da9062-onkey.txt | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/Documentation/devicetree/bindings/input/da9062-onkey.txt b/Documentation/devicetree/bindings/input/da9062-onkey.txt index ab0e0488fe92..5f9fbc68e58a 100644 --- a/Documentation/devicetree/bindings/input/da9062-onkey.txt +++ b/Documentation/devicetree/bindings/input/da9062-onkey.txt | |||
| @@ -1,32 +1,47 @@ | |||
| 1 | * Dialog DA9062/63 OnKey Module | 1 | * Dialog DA9061/62/63 OnKey Module |
| 2 | 2 | ||
| 3 | This module is part of the DA9062/DA9063. For more details about entire | 3 | This module is part of the DA9061/DA9062/DA9063. For more details about entire |
| 4 | chips see Documentation/devicetree/bindings/mfd/da9062.txt and | 4 | DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt |
| 5 | Documentation/devicetree/bindings/mfd/da9063.txt | 5 | For DA9063 see Documentation/devicetree/bindings/mfd/da9063.txt |
| 6 | 6 | ||
| 7 | This module provides KEY_POWER, KEY_SLEEP and events. | 7 | This module provides the KEY_POWER event. |
| 8 | 8 | ||
| 9 | Required properties: | 9 | Required properties: |
| 10 | 10 | ||
| 11 | - compatible: should be one of: | 11 | - compatible: should be one of the following valid compatible string lines: |
| 12 | dlg,da9062-onkey | 12 | "dlg,da9061-onkey", "dlg,da9062-onkey" |
| 13 | dlg,da9063-onkey | 13 | "dlg,da9062-onkey" |
| 14 | "dlg,da9063-onkey" | ||
| 14 | 15 | ||
| 15 | Optional properties: | 16 | Optional properties: |
| 16 | 17 | ||
| 17 | - dlg,disable-key-power : Disable power-down using a long key-press. If this | 18 | - dlg,disable-key-power : Disable power-down using a long key-press. If this |
| 18 | entry exists the OnKey driver will remove support for the KEY_POWER key | 19 | entry exists the OnKey driver will remove support for the KEY_POWER key |
| 19 | press. If this entry does not exist then by default the key-press | 20 | press when triggered using a long press of the OnKey. |
| 20 | triggered power down is enabled and the OnKey will support both KEY_POWER | ||
| 21 | and KEY_SLEEP. | ||
| 22 | 21 | ||
| 23 | Example: | 22 | Example: DA9063 |
| 24 | |||
| 25 | pmic0: da9062@58 { | ||
| 26 | 23 | ||
| 24 | pmic0: da9063@58 { | ||
| 27 | onkey { | 25 | onkey { |
| 28 | compatible = "dlg,da9063-onkey"; | 26 | compatible = "dlg,da9063-onkey"; |
| 29 | dlg,disable-key-power; | 27 | dlg,disable-key-power; |
| 30 | }; | 28 | }; |
| 29 | }; | ||
| 30 | |||
| 31 | Example: DA9062 | ||
| 32 | |||
| 33 | pmic0: da9062@58 { | ||
| 34 | onkey { | ||
| 35 | compatible = "dlg,da9062-onkey"; | ||
| 36 | dlg,disable-key-power; | ||
| 37 | }; | ||
| 38 | }; | ||
| 39 | |||
| 40 | Example: DA9061 using a fall-back compatible for the DA9062 onkey driver | ||
| 31 | 41 | ||
| 42 | pmic0: da9061@58 { | ||
| 43 | onkey { | ||
| 44 | compatible = "dlg,da9061-onkey", "dlg,da9062-onkey"; | ||
| 45 | dlg,disable-key-power; | ||
| 46 | }; | ||
| 32 | }; | 47 | }; |
