| /drivers/mfd/ |
| A D | stmpe.c | 43 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable() 55 ret = stmpe->ci->read_byte(stmpe, reg); in __stmpe_reg_read() 70 ret = stmpe->ci->write_byte(stmpe, reg, val); in __stmpe_reg_write() 160 int stmpe_reg_read(struct stmpe *stmpe, u8 reg) in stmpe_reg_read() argument 891 static int stmpe_reset(struct stmpe *stmpe) in stmpe_reset() argument 1082 struct stmpe *stmpe = data; in stmpe_irq() local 1191 struct stmpe *stmpe = d->host_data; in stmpe_irq_map() local 1370 struct stmpe *stmpe; in stmpe_probe() local 1406 stmpe->regs = stmpe->variant->regs; in stmpe_probe() 1420 dev_set_drvdata(stmpe->dev, stmpe); in stmpe_probe() [all …]
|
| A D | stmpe-spi.c | 20 static int spi_reg_read(struct stmpe *stmpe, u8 reg) in spi_reg_read() argument 22 struct spi_device *spi = stmpe->client; in spi_reg_read() 28 static int spi_reg_write(struct stmpe *stmpe, u8 reg, u8 val) in spi_reg_write() argument 30 struct spi_device *spi = stmpe->client; in spi_reg_write() 36 static int spi_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) in spi_block_read() argument 41 ret = spi_reg_read(stmpe, reg + i); in spi_block_read() 50 static int spi_block_write(struct stmpe *stmpe, u8 reg, u8 length, in spi_block_write() argument 64 static void spi_init(struct stmpe *stmpe) in spi_init() argument 71 if (stmpe->variant->id_val == 0x0811) in spi_init() 107 struct stmpe *stmpe = spi_get_drvdata(spi); in stmpe_spi_remove() local [all …]
|
| A D | stmpe.h | 73 int (*enable)(struct stmpe *stmpe, unsigned int blocks, bool enable); 74 int (*get_altfunc)(struct stmpe *stmpe, enum stmpe_block block); 75 int (*enable_autosleep)(struct stmpe *stmpe, int autosleep_timeout); 92 int (*read_byte)(struct stmpe *stmpe, u8 reg); 93 int (*write_byte)(struct stmpe *stmpe, u8 reg, u8 val); 94 int (*read_block)(struct stmpe *stmpe, u8 reg, u8 len, u8 *values); 95 int (*write_block)(struct stmpe *stmpe, u8 reg, u8 len, 97 void (*init)(struct stmpe *stmpe); 101 void stmpe_remove(struct stmpe *stmpe);
|
| A D | stmpe-i2c.c | 20 static int i2c_reg_read(struct stmpe *stmpe, u8 reg) in i2c_reg_read() argument 22 struct i2c_client *i2c = stmpe->client; in i2c_reg_read() 27 static int i2c_reg_write(struct stmpe *stmpe, u8 reg, u8 val) in i2c_reg_write() argument 29 struct i2c_client *i2c = stmpe->client; in i2c_reg_write() 34 static int i2c_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) in i2c_block_read() argument 36 struct i2c_client *i2c = stmpe->client; in i2c_block_read() 41 static int i2c_block_write(struct stmpe *stmpe, u8 reg, u8 length, in i2c_block_write() argument 44 struct i2c_client *i2c = stmpe->client; in i2c_block_write() 97 struct stmpe *stmpe = dev_get_drvdata(&i2c->dev); in stmpe_i2c_remove() local 99 stmpe_remove(stmpe); in stmpe_i2c_remove()
|
| A D | Makefile | 30 obj-$(CONFIG_MFD_STMPE) += stmpe.o 31 obj-$(CONFIG_STMPE_I2C) += stmpe-i2c.o 32 obj-$(CONFIG_STMPE_SPI) += stmpe-spi.o
|
| A D | Kconfig | 1562 GPIO: stmpe-gpio 1563 Keypad: stmpe-keypad 1564 Touchscreen: stmpe-ts 1565 ADC: stmpe-adc
|
| /drivers/gpio/ |
| A D | gpio-stmpe.c | 34 struct stmpe *stmpe; member 45 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_get() local 60 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_set() local 79 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_get_direction() local 98 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_direction_output() local 114 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_direction_input() local 124 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_request() local 185 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_irq_sync_unlock() local 270 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_dbg_show_one() local 393 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_irq() local [all …]
|
| A D | Makefile | 169 obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o
|
| /drivers/input/touchscreen/ |
| A D | stmpe-ts.c | 73 struct stmpe *stmpe; member 85 static int __stmpe_reset_fifo(struct stmpe *stmpe) in __stmpe_reset_fifo() argument 122 __stmpe_reset_fifo(ts->stmpe); in stmpe_work() 162 __stmpe_reset_fifo(ts->stmpe); in stmpe_ts_handler() 178 struct stmpe *stmpe = ts->stmpe; in stmpe_init_hw() local 267 ts->stmpe->sample_time = val; in stmpe_ts_get_platform_info() 269 ts->stmpe->mod_12b = val; in stmpe_ts_get_platform_info() 271 ts->stmpe->ref_sel = val; in stmpe_ts_get_platform_info() 273 ts->stmpe->adc_freq = val; in stmpe_ts_get_platform_info() 289 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_input_probe() local [all …]
|
| A D | Makefile | 85 obj-$(CONFIG_TOUCHSCREEN_STMPE) += stmpe-ts.o
|
| A D | Kconfig | 1251 module will be called stmpe-ts.
|
| /drivers/pwm/ |
| A D | pwm-stmpe.c | 29 struct stmpe *stmpe; member 121 stmpe_pwm->stmpe->partnum == STMPE2403) in stmpe_24xx_pwm_config() 156 if (stmpe_pwm->stmpe->partnum == STMPE2401) in stmpe_24xx_pwm_config() 159 if (stmpe_pwm->stmpe->partnum == STMPE2403) in stmpe_24xx_pwm_config() 164 if (stmpe_pwm->stmpe->partnum == STMPE2401) in stmpe_24xx_pwm_config() 293 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_pwm_probe() local 298 switch (stmpe->partnum) { in stmpe_pwm_probe() 315 stmpe_pwm->stmpe = stmpe; in stmpe_pwm_probe() 325 stmpe_disable(stmpe, STMPE_BLOCK_PWM); in stmpe_pwm_probe() 336 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_pwm_remove() local [all …]
|
| A D | Makefile | 66 obj-$(CONFIG_PWM_STMPE) += pwm-stmpe.o
|
| /drivers/input/keyboard/ |
| A D | stmpe-keypad.c | 130 struct stmpe *stmpe; member 144 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_read_data() local 200 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_altfunc_init() local 201 u8 pureg = stmpe->regs[STMPE_IDX_GPPUR_LSB]; in stmpe_keypad_altfunc_init() 251 ret = stmpe_reg_read(stmpe, pureg); in stmpe_keypad_altfunc_init() 259 ret = stmpe_reg_write(stmpe, pureg, val); in stmpe_keypad_altfunc_init() 268 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_chip_init() local 277 ret = stmpe_enable(stmpe, STMPE_BLOCK_KEYPAD); in stmpe_keypad_chip_init() 294 ret = stmpe_set_bits(stmpe, STMPE_KPC_ROW_MSB, in stmpe_keypad_chip_init() 333 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_keypad_probe() local [all …]
|
| A D | Makefile | 63 obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o
|
| A D | Kconfig | 628 called stmpe-keypad.
|
| /drivers/iio/adc/ |
| A D | stmpe-adc.c | 47 struct stmpe *stmpe; member 77 stmpe_reg_write(info->stmpe, STMPE_REG_ADC_CAPT, in stmpe_read_voltage() 112 stmpe_reg_write(info->stmpe, STMPE_REG_TEMP_CTRL, in stmpe_read_temp() 165 *val2 = info->stmpe->mod_12b ? 12 : 10; in stmpe_read_raw() 190 stmpe_block_read(info->stmpe, in stmpe_adc_isr() 232 struct stmpe *stmpe = adc->stmpe; in stmpe_adc_init_hw() local 234 ret = stmpe_enable(stmpe, STMPE_BLOCK_ADC); in stmpe_adc_init_hw() 240 ret = stmpe811_adc_common_init(stmpe); in stmpe_adc_init_hw() 242 stmpe_disable(stmpe, STMPE_BLOCK_ADC); in stmpe_adc_init_hw() 247 stmpe_reg_write(stmpe, STMPE_REG_TEMP_TH, 0); in stmpe_adc_init_hw() [all …]
|
| A D | Makefile | 130 obj-$(CONFIG_STMPE_ADC) += stmpe-adc.o
|