| /linux-4.4.14/drivers/mfd/ |
| D | tc3589x.c | 42 int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg) in tc3589x_reg_read() argument 46 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg); in tc3589x_reg_read() 48 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n", in tc3589x_reg_read() 61 int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data) in tc3589x_reg_write() argument 65 ret = i2c_smbus_write_byte_data(tc3589x->i2c, reg, data); in tc3589x_reg_write() 67 dev_err(tc3589x->dev, "failed to write reg %#x: %d\n", in tc3589x_reg_write() 81 int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values) in tc3589x_block_read() argument 85 ret = i2c_smbus_read_i2c_block_data(tc3589x->i2c, reg, length, values); in tc3589x_block_read() 87 dev_err(tc3589x->dev, "failed to read regs %#x: %d\n", in tc3589x_block_read() 101 int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, in tc3589x_block_write() argument [all …]
|
| D | Makefile | 33 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
|
| /linux-4.4.14/drivers/input/keyboard/ |
| D | tc3589x-keypad.c | 106 struct tc3589x *tc3589x; member 118 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local 126 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware() 132 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 136 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 141 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, in tc3589x_keypad_init_key_hardware() 147 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, in tc3589x_keypad_init_key_hardware() 153 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware() 158 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware() 163 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware() [all …]
|
| D | Makefile | 61 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
|
| D | Kconfig | 652 module will be called tc3589x-keypad.
|
| /linux-4.4.14/drivers/gpio/ |
| D | gpio-tc3589x.c | 29 struct tc3589x *tc3589x; member 45 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local 50 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get() 60 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local 65 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set() 72 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local 78 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 1 << pos); in tc3589x_gpio_direction_output() 85 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local 89 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 0); in tc3589x_gpio_direction_input() 142 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq_sync_unlock() local [all …]
|
| D | Makefile | 94 obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
|
| /linux-4.4.14/include/linux/mfd/ |
| D | tc3589x.h | 115 struct tc3589x { struct 126 extern int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data); argument 127 extern int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg); 128 extern int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, 130 extern int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, 132 extern int tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val);
|
| /linux-4.4.14/Documentation/devicetree/bindings/mfd/ |
| D | tc3589x.txt | 29 - compatible : must be "toshiba,tc3589x-gpio" 30 - interrupts : interrupt on the parent, which must be the tc3589x MFD device 49 - compatible : must be "toshiba,tc3589x-keypad" 73 compatible = "toshiba,tc3589x-gpio"; 82 compatible = "toshiba,tc3589x-keypad";
|
| /linux-4.4.14/arch/arm/boot/dts/ |
| D | ste-href-tvk1281618.dtsi | 54 compatible = "toshiba,tc3589x-gpio"; 63 compatible = "toshiba,tc3589x-keypad";
|
| D | ste-hrefprev60.dtsi | 49 compatible = "tc3589x-gpio";
|
| /linux-4.4.14/Documentation/devicetree/bindings/power/ |
| D | wakeup-source.txt | 25 Documentation/devicetree/bindings/mfd/tc3589x.txt
|