You are here: Digi Embedded Yocto > System development > Linux v4.1 Board Support Package > Devices and interfaces > Micro Controller Assist (MCA) > MCA power key input

MCA power key input

The MCA implements a power key input in its firmware. You can use this input to connect a power button to the ConnectCore 6UL system for performing the following power events:

Both the ConnectCore 6UL SBC Express and SBC Pro contain a power button (ON/OFF) connected to the MCA power key input.

Kernel configuration

You can manage the MCA power key driver support through the following kernel configuration option:

This option is enabled as built-in on the default ConnectCore 6UL kernel configuration file.

Platform driver mapping

The MCA power key driver is located at:

File

Description

drivers/input/misc/pwrkey-mca-cc6ul.c

MCA power key driver

Device tree bindings and customization

The MCA power key input device tree binding is documented at Documentation/devicetree/bindings/input/digi,mca-cc6ul-powerkey.txt.

Power key inside the MCA

Common ConnectCore 6UL device tree 
    mca_cc6ul: mca@7e {
 
        ...
 
        pwrkey {
            compatible = "digi,mca-cc6ul-pwrkey";
            digi,key-power;
            digi,key-sleep;
            digi,debounce-ms = <100>;
            digi,pwroff-delay-sec = <6>;
            digi,pwroff-guard-sec = <30>;
        };
    };

Using the power key

Suspend to memory

The Linux kernel can perform a suspend-to-memory or suspend-to-RAM operation. When entering this low-power mode, the system state is kept in self-refreshing RAM while the system enters a low-power-consumption mode. The system resumes when a previously selected interrupt is received, restores the previous state, and continues running from where it left off.

Power off

The Linux kernel can perform a power-off operation that places the Power Management IC (PMIC) in power off mode, disabling all power sources that are not needed for wake up.

 

© 2017 Digi International Inc. All rights reserved.
MCA power key input updated on 13 April 2017 10:31:15 PM