The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/input/mtk-pmic-keys.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: ba47a3aa88039776fe34aff761b862ec


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.