19 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    license terms gnu general public license version 2

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 11 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Enrico Weigelt
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081202.373849232@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

10 Aug, 2016

5 commits

  • STMPE1600 is a 16-bit port expander.
    Datasheet is available here :
    http://www2.st.com/content/st_com/en/products/interfaces-and-transceivers/
    i-o-expanders-and-level-translators/i-o-expanders/stmpe1600.html

    Signed-off-by: Amelie DELAUNAY
    Signed-off-by: Patrice Chotard
    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones

    Patrice Chotard
     
  • this update allows to use registers map as following :
    regs[reg_index + offset] instead of
    regs[reg_index] + offset

    This makes code clearer and will facilitate the addition of STMPE1600
    on which LSB and MSB registers are respectively located at addr and addr + 1.
    Despite for all others STMPE variant, LSB and MSB registers are respectively
    located in reverse order at addr + 1 and addr.

    For variant which have 3 registers's bank, we use LSB,CSB and MSB indexes
    which contains respectively LSB (or LOW), CSB (or MID) and MSB (or HIGH)
    register addresses (STMPE1801/STMPE24xx).
    For variant which have 2 registers's bank, we use LSB and CSB indexes only.
    In this case the CSB index contains the MSB regs address (STMPE 1601).

    Signed-off-by: Patrice Chotard
    Reviewed-by: Linus Walleij
    Signed-off-by: Lee Jones

    Patrice Chotard
     
  • In order to prepare the ground to STMPE1600,
    as STMPE1600's SYS_CTRL register has the same layout as
    STMPE801 variant, unify STMPExxx_REG_SYS_CTRL_RESET/INT_EN/INT_HI
    bit masks to more generic STMPE_SYS_CTRL_RESET/INT_EN/INT_HI

    Signed-off-by: Patrice Chotard
    Signed-off-by: Lee Jones

    Patrice Chotard
     
  • Reset was only implemented for STMPE1801 variant despite
    all variant have a SOFT_RESET bit.

    For STMPE2401/2403/801/1601/1801 SOFT_RESET bit is bit 7
    of SYS_CTRL register.
    For STMPE610/811 (which have the same variant id) SOFT_RESET
    bit is bit 1 of SYS_CTRL register.

    Signed-off-by: Patrice Chotard
    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones

    Patrice Chotard
     
  • As STMPE1801/1601/24xx has a SYS_CTRL register and
    STMPE1601/2403 has even a SYS_CTRL2 register, add
    STMPE_IDX_SYS_CTRL/2 and update driver code accordingly

    This update prepares the ground for not yet supported STMPE1600
    which share similar REG_SYS_CTRL register.

    Signed-off-by: Patrice Chotard
    Acked-by: Linus Walleij
    Signed-off-by: Lee Jones

    Patrice Chotard
     

31 Dec, 2014

1 commit

  • Pull input layer fixes from Dmitry Torokhov:
    "Fixes for v7 protocol for ALPS devices and few other driver fixes.

    Also users can request input events to be stamped with boot time
    timestamps, in addition to real and monotonic timestamps"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: hil_kbd - fix incorrect use of init_completion
    Input: alps - v7: document the v7 touchpad packet protocol
    Input: alps - v7: fix finger counting for > 2 fingers on clickpads
    Input: alps - v7: sometimes a single touch is reported in mt[1]
    Input: alps - v7: ignore new packets
    Input: evdev - add CLOCK_BOOTTIME support
    Input: psmouse - expose drift duration for IBM trackpoints
    Input: stmpe - bias keypad columns properly
    Input: stmpe - enforce device tree only mode
    mfd: stmpe: add pull up/down register offsets for STMPE
    Input: optimize events_per_packet count calculation
    Input: edt-ft5x06 - fixed a macro coding style issue
    Input: gpio_keys - replace timer and workqueue with delayed workqueue
    Input: gpio_keys - allow separating gpio and irq in device tree

    Linus Torvalds
     

16 Dec, 2014

1 commit


10 Nov, 2014

1 commit

  • The least significat byte of the GPIO value read register
    on the STMPE24xx series is on addres 0xA4 not 0xA5. Correct
    against datasheet and tested on the STMPE2401 hardware.

    Signed-off-by: Linus Walleij
    Signed-off-by: Lee Jones

    Linus Walleij
     

09 Jul, 2014

1 commit


09 May, 2014

1 commit

  • The STMPE driver would just read/modify/write the system control
    register on the STMPE1601, meaning it would not properly mask off
    the PWM block, which remained active if it was on at boot time.
    This makes sure the blocks are always masked off if they were
    active on boot, saving some power. Also rename the inconsistenty
    named STMPE1601 define for the PWM block activation.

    Signed-off-by: Linus Walleij

    Linus Walleij
     

06 Jan, 2014

1 commit

  • As of commit 03e361b25ee8dfb1fd9b890072c23c4aae01c6c7 ("mfd: Stop setting
    refcounting pointers in original mfd_cell arrays"), the "cell" parameter of
    mfd_add_devices() is "const" again. Hence make all cell data passed to
    mfd_add_devices() const where possible.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Lee Jones

    Geert Uytterhoeven
     

09 Apr, 2013

1 commit


09 Jan, 2012

3 commits

  • STMPE801 is a GPIO expander. Registers for 801 are much different from other
    variants. This patch adds support for STMPE801 in stmpe mfd driver.

    Signed-off-by: Bhupesh Sharma
    Signed-off-by: Pratyush Anand
    Signed-off-by: Viresh Kumar
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • Few STMPE controller can have register interface over SPI or I2C. Current
    implementation only supports I2C.

    This patch adds support for SPI interface for accessing STMPE's address space.

    Signed-off-by: Viresh Kumar
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     
  • Few STMPE controller can have register interface over SPI or I2C. Current
    implementation only supports I2C and all code is present in a single file
    stmpe.c. It would be better to separate out I2C interface specific code from
    controller specific code. Later SPI specific code can be added in a separate
    file.

    This patch separates out I2C and controller specific code into separate files,
    making stmpe.c independent of I2C.

    Signed-off-by: Viresh Kumar
    Acked-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Viresh Kumar
     

01 Aug, 2011

1 commit

  • Generating kerneldoc for STMPE result in warnings, so fix this by
    adding missing documentation.

    Signed-off-by: Om Prakash
    Reviewed-by: Rabin Vincent
    Reviewed-by: Jonas Aberg
    Reviewed-by: Srinidhi Kasagar
    Signed-off-by: Linus Walleij
    Signed-off-by: Samuel Ortiz

    Om Prakash
     

12 Aug, 2010

2 commits

  • Some STMPE devices support entering sleep mode automatically on a
    specified timeout of inactivity on the I2C bus with the host system.

    Acked-by: Linus Walleij
    Acked-by: Rabin Vincent
    Signed-off-by: Sundar R Iyer
    Signed-off-by: Samuel Ortiz

    Sundar R Iyer
     
  • Add support for the STMPE family of I/O Expanders from
    STMicroelectronics. These devices include upto 24 gpios and a varying
    selection of blocks, including PWM, keypad, and touchscreen controllers.
    This patch adds the MFD core.

    [l.fu@pengutronix.de: fix stmpe811 enable hook]
    [l.fu@pengutronix.de: add touchscreen platform data]
    Acked-by: Luotao Fu
    Acked-by: Linus Walleij
    Signed-off-by: Rabin Vincent
    Signed-off-by: Samuel Ortiz

    Rabin Vincent