Home
last modified time | relevance | path

Searched refs:tc3589x (Results 1 – 12 of 12) sorted by relevance

/linux-4.4.14/drivers/mfd/
Dtc3589x.c42 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 …]
DMakefile33 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
/linux-4.4.14/drivers/input/keyboard/
Dtc3589x-keypad.c106 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 …]
DMakefile61 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
DKconfig652 module will be called tc3589x-keypad.
/linux-4.4.14/drivers/gpio/
Dgpio-tc3589x.c29 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 …]
DMakefile94 obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
/linux-4.4.14/include/linux/mfd/
Dtc3589x.h115 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/
Dtc3589x.txt29 - 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/
Dste-href-tvk1281618.dtsi54 compatible = "toshiba,tc3589x-gpio";
63 compatible = "toshiba,tc3589x-keypad";
Dste-hrefprev60.dtsi49 compatible = "tc3589x-gpio";
/linux-4.4.14/Documentation/devicetree/bindings/power/
Dwakeup-source.txt25 Documentation/devicetree/bindings/mfd/tc3589x.txt