Home
last modified time | relevance | path

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

/linux/drivers/mfd/
H A 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 …]
H A DMakefile34 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
/linux/drivers/gpio/
H A Dgpio-tc3589x.c29 struct tc3589x *tc3589x; member
40 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local
45 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get()
55 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local
60 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set()
67 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local
73 return tc3589x_set_bits(tc3589x, reg, BIT(pos), BIT(pos)); in tc3589x_gpio_direction_output()
80 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local
84 return tc3589x_set_bits(tc3589x, reg, BIT(pos), 0); in tc3589x_gpio_direction_input()
91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get_direction() local
[all …]
H A DMakefile166 obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
/linux/drivers/input/keyboard/
H A Dtc3589x-keypad.c105 struct tc3589x *tc3589x; member
117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local
125 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware()
131 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
135 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
140 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, in tc3589x_keypad_init_key_hardware()
146 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, in tc3589x_keypad_init_key_hardware()
152 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware()
157 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware()
162 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware()
[all …]
H A DMakefile68 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
H A DKconfig698 module will be called tc3589x-keypad.
/linux/include/linux/mfd/
H A Dtc3589x.h120 struct tc3589x { struct
131 extern int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data); argument
132 extern int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg);
133 extern int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length,
135 extern int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length,
137 extern int tc3589x_set_bits(struct tc3589x *tc3589x, u8 reg, u8 mask, u8 val);
/linux/Documentation/devicetree/bindings/mfd/
H A Dtc3589x.txt28 - compatible : must be "toshiba,tc3589x-gpio"
29 - interrupts : interrupt on the parent, which must be the tc3589x MFD device
48 - compatible : must be "toshiba,tc3589x-keypad"
72 compatible = "toshiba,tc3589x-gpio";
81 compatible = "toshiba,tc3589x-keypad";
/linux/arch/arm/boot/dts/st/
H A Dste-href-tvk1281618-r3.dtsi42 compatible = "toshiba,tc3589x-gpio";
51 compatible = "toshiba,tc3589x-keypad";
H A Dste-href-tvk1281618-r2.dtsi47 compatible = "toshiba,tc3589x-gpio";
56 compatible = "toshiba,tc3589x-keypad";
H A Dste-hrefprev60.dtsi42 compatible = "tc3589x-gpio";
/linux/Documentation/devicetree/bindings/power/
H A Dwakeup-source.txt27 Documentation/devicetree/bindings/mfd/tc3589x.txt