mtk-pmic-keys.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. MediaTek MT6397/MT6323 PMIC Keys Device Driver
  2. There are two key functions provided by MT6397/MT6323 PMIC, pwrkey
  3. and homekey. The key functions are defined as the subnode of the function
  4. node provided by MT6397/MT6323 PMIC that is being defined as one kind
  5. of Muti-Function Device (MFD)
  6. For MT6397/MT6323 MFD bindings see:
  7. Documentation/devicetree/bindings/mfd/mt6397.txt
  8. Required properties:
  9. - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys"
  10. - linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt
  11. Optional Properties:
  12. - wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt
  13. - mediatek,long-press-mode: Long press key shutdown setting, 1 for
  14. pwrkey only, 2 for pwrkey/homekey together, others for disabled.
  15. - power-off-time-sec: See Documentation/devicetree/bindings/input/keys.txt
  16. Example:
  17. pmic: mt6397 {
  18. compatible = "mediatek,mt6397";
  19. ...
  20. mt6397keys: mt6397keys {
  21. compatible = "mediatek,mt6397-keys";
  22. mediatek,long-press-mode = <1>;
  23. power-off-time-sec = <0>;
  24. power {
  25. linux,keycodes = <116>;
  26. wakeup-source;
  27. };
  28. home {
  29. linux,keycodes = <114>;
  30. };
  31. };
  32. };