^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) * Dialog DA9061/62/63 OnKey Module
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) This module is part of the DA9061/DA9062/DA9063. For more details about entire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) For DA9063 see Documentation/devicetree/bindings/mfd/da9063.txt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) This module provides the KEY_POWER event.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - compatible: should be one of the following valid compatible string lines:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) "dlg,da9061-onkey", "dlg,da9062-onkey"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) "dlg,da9062-onkey"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) "dlg,da9063-onkey"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - dlg,disable-key-power : Disable power-down using a long key-press. If this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) entry exists the OnKey driver will remove support for the KEY_POWER key
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) press when triggered using a long press of the OnKey.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Example: DA9063
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) pmic0: da9063@58 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) onkey {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) compatible = "dlg,da9063-onkey";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) dlg,disable-key-power;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Example: DA9062
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) pmic0: da9062@58 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) onkey {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) compatible = "dlg,da9062-onkey";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) dlg,disable-key-power;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Example: DA9061 using a fall-back compatible for the DA9062 onkey driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) pmic0: da9061@58 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) onkey {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) compatible = "dlg,da9061-onkey", "dlg,da9062-onkey";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) dlg,disable-key-power;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) };