05 Nov, 2014

1 commit

  • GPIO descriptors are the preferred way over legacy GPIO numbers
    nowadays. Convert the driver to use GPIO descriptors internally but
    still allow passing legacy GPIO numbers from platform data to support
    existing platforms.

    Signed-off-by: Aaron Lu
    Signed-off-by: Mika Westerberg
    Acked-by: Alexandre Courbot
    Reviewed-by: Linus Walleij
    Acked-by: Dmitry Torokhov
    Acked-by: Grant Likely
    Signed-off-by: Rafael J. Wysocki

    Aaron Lu
     

15 May, 2014

1 commit


20 Mar, 2012

1 commit

  • Some of buttons, like power-on key or onkey, may only generate interrupts
    when pressed and not actually be mapped as gpio in the system. Allow
    setting gpio to invalid value and specify IRQ instead to support such
    keys. The debounce timer is used not to debounce but to ignore new IRQs
    coming while button is kept pressed.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Dmitry Torokhov

    Laxman Dewangan
     

02 Feb, 2012

1 commit


12 Apr, 2011

2 commits


07 Dec, 2010

1 commit

  • The existing gpio-keys driver can be usable only for GPIO lines with
    interrupt support. Several devices have buttons connected to a GPIO
    line which is not capable to generate interrupts. This patch adds a
    new input driver using the generic GPIO layer and the input-polldev
    to support such buttons.

    [Ben Gardiner
    Signed-off-by: Ben Gardiner
    Tested-by: Ben Gardiner
    Signed-off-by: Dmitry Torokhov

    Gabor Juhos
     

04 Aug, 2010

1 commit


04 Feb, 2010

1 commit

  • Now gpio-keys input driver exports 4 new attributes to userland through
    sysfs:
    /sys/devices/platform/gpio-keys/keys [ro]
    /sys/devices/platform/gpio-keys/switches [ro]
    /sys/devices/platform/gpio-keys/disabled_keys [rw]
    /sys/devices/platform/gpio-keys/disables_switches [rw]

    With these attributes, userland program can read which keys and
    switches can be disabled and then disable/enable them as needed.
    Keys and switches are exported as stringified bitmap of codes
    (keycodes or switch codes). For example keys 15, 89, 100, 101,
    102 are exported as: '15,89,100-102'.

    Description of the attributes:
    keys - bitmap of keys which can be disabled
    switches - bitmap of switches which can be disabled
    disabled_keys - bitmap of currently disabled keys
    (bit 1 means disabled, 0 enabled)
    disabled_switches - bitmap of currently disabled switches
    (bit 1 means disabled, 0 enabled)

    Signed-off-by: Mika Westerberg
    Signed-off-by: Dmitry Torokhov

    Mika Westerberg
     

28 Oct, 2008

1 commit


17 May, 2008

1 commit


26 Sep, 2007

1 commit


01 May, 2007

1 commit


05 Mar, 2007

1 commit

  • The gpio_keys driver is wrongly ARM-specific; it can't build on
    other platforms with GPIO suport. This fixes that problem.

    Signed-off-by: David Brownell
    Cc: Dmitry Torokhov
    Cc: pHilipp Zabel
    Cc: Haavard Skinnemoen
    Cc: Russell King
    Cc: Richard Purdie
    Cc: Ben Nizette
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell