Commit 406d5a2d authored by Steve Twiss's avatar Steve Twiss Committed by Dmitry Torokhov

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.
- f889beaa 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: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent c3fc6089
* Dialog DA9062/63 OnKey Module * Dialog DA9061/62/63 OnKey Module
This module is part of the DA9062/DA9063. For more details about entire This module is part of the DA9061/DA9062/DA9063. For more details about entire
chips see Documentation/devicetree/bindings/mfd/da9062.txt and DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt
Documentation/devicetree/bindings/mfd/da9063.txt For DA9063 see Documentation/devicetree/bindings/mfd/da9063.txt
This module provides KEY_POWER, KEY_SLEEP and events. This module provides the KEY_POWER event.
Required properties: Required properties:
- compatible: should be one of: - compatible: should be one of the following valid compatible string lines:
dlg,da9062-onkey "dlg,da9061-onkey", "dlg,da9062-onkey"
dlg,da9063-onkey "dlg,da9062-onkey"
"dlg,da9063-onkey"
Optional properties: Optional properties:
- dlg,disable-key-power : Disable power-down using a long key-press. If this - dlg,disable-key-power : Disable power-down using a long key-press. If this
entry exists the OnKey driver will remove support for the KEY_POWER key entry exists the OnKey driver will remove support for the KEY_POWER key
press. If this entry does not exist then by default the key-press press when triggered using a long press of the OnKey.
triggered power down is enabled and the OnKey will support both KEY_POWER
and KEY_SLEEP.
Example: Example: DA9063
pmic0: da9062@58 {
pmic0: da9063@58 {
onkey { onkey {
compatible = "dlg,da9063-onkey"; compatible = "dlg,da9063-onkey";
dlg,disable-key-power; dlg,disable-key-power;
}; };
};
Example: DA9062
pmic0: da9062@58 {
onkey {
compatible = "dlg,da9062-onkey";
dlg,disable-key-power;
};
};
Example: DA9061 using a fall-back compatible for the DA9062 onkey driver
pmic0: da9061@58 {
onkey {
compatible = "dlg,da9061-onkey", "dlg,da9062-onkey";
dlg,disable-key-power;
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment