• Xiaolong CHEN's avatar
    Input: adp5588-keys - support GPI events for ADP5588 devices · 69a4af60
    Xiaolong CHEN authored
    A column or row configured as a GPI can be programmed to be part
    of the key event table and therefore also capable of generating a
    key event interrupt. A key event interrupt caused by a GPI follows
    the same process flow as a key event interrupt caused by a key
    press. GPIs configured as part of the key event table allow single
    key switches and other GPI interrupts to be monitored. As part of
    the event table, GPIs are represented by the decimal value 97 (0x61
    or 1100001) through the decimal value 114 (0x72 or 1110010). See
    table below for GPI event number assignments for rows and columns.
    
    GPI Event Number Assignments for Rows
    Row0 Row1 Row2 Row3 Row4 Row5 Row6 Row7
    97   98   99   100  101  102  103  104
    
    GPI Event Number Assignments for Cols
    Col0 Col1 Col2 Col3 Col4 Col5 Col6 Col7 Col8 Col9
    105  106  107  108  109  110  111  112  113  114
    Signed-off-by: default avatarXiaolong Chen <xiao-long.chen@motorola.com>
    Signed-off-by: default avatarYuanbo Ye <yuan-bo.ye@motorola.com>
    Signed-off-by: default avatarTao Hu <taohu@motorola.com>
    Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    69a4af60
adp5588-keys.c 11.5 KB