Home
last modified time | relevance | path

Searched refs:iqs62x (Results 1 – 10 of 10) sorted by relevance

/drivers/mfd/
Diqs62x.c108 static int iqs62x_dev_init(struct iqs62x_core *iqs62x) in iqs62x_dev_init() argument
114 list_for_each_entry(fw_blk, &iqs62x->fw_blk_head, list) { in iqs62x_dev_init()
124 ret = regmap_update_bits(iqs62x->regmap, fw_blk->addr, in iqs62x_dev_init()
127 ret = regmap_raw_write(iqs62x->regmap, fw_blk->addr, in iqs62x_dev_init()
133 switch (iqs62x->dev_desc->prod_num) { in iqs62x_dev_init()
136 ret = regmap_read(iqs62x->regmap, in iqs62x_dev_init()
137 iqs62x->dev_desc->prox_settings, &val); in iqs62x_dev_init()
142 iqs62x->ui_sel = IQS62X_UI_SAR1; in iqs62x_dev_init()
146 ret = regmap_write(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs62x_dev_init()
148 iqs62x->dev_desc->prox_mask | in iqs62x_dev_init()
[all …]
DMakefile237 obj-$(CONFIG_MFD_IQS62X) += iqs62x.o
DKconfig722 be called iqs62x.
/drivers/iio/position/
Diqs624-pos.c25 struct iqs62x_core *iqs62x; member
33 static int iqs624_pos_angle_en(struct iqs62x_core *iqs62x, bool angle_en) in iqs624_pos_angle_en() argument
43 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) in iqs624_pos_angle_en()
46 return regmap_update_bits(iqs62x->regmap, IQS624_HALL_UI, event_mask, in iqs624_pos_angle_en()
55 struct iqs62x_core *iqs62x; in iqs624_pos_notifier() local
66 iqs62x = iqs624_pos->iqs62x; in iqs624_pos_notifier()
67 if (iqs62x->dev_desc->prod_num == IQS625_PROD_NUM) in iqs624_pos_notifier()
73 ret = iqs624_pos_angle_en(iqs62x, iqs624_pos->angle_en); in iqs624_pos_notifier()
105 ret = blocking_notifier_chain_unregister(&iqs624_pos->iqs62x->nh, in iqs624_pos_notifier_unregister()
112 static int iqs624_pos_angle_get(struct iqs62x_core *iqs62x, unsigned int *val) in iqs624_pos_angle_get() argument
[all …]
/drivers/iio/light/
Diqs621-als.c38 struct iqs62x_core *iqs62x; member
55 struct iqs62x_core *iqs62x = iqs621_als->iqs62x; in iqs621_als_init() local
61 ret = regmap_write(iqs62x->regmap, IQS622_IR_THRESH_TOUCH, in iqs621_als_init()
66 ret = regmap_write(iqs62x->regmap, IQS622_IR_THRESH_PROX, in iqs621_als_init()
71 ret = regmap_write(iqs62x->regmap, IQS621_ALS_THRESH_LIGHT, in iqs621_als_init()
76 ret = regmap_write(iqs62x->regmap, IQS621_ALS_THRESH_DARK, in iqs621_als_init()
84 event_mask |= iqs62x->dev_desc->als_mask; in iqs621_als_init()
87 event_mask |= iqs62x->dev_desc->ir_mask; in iqs621_als_init()
89 return regmap_update_bits(iqs62x->regmap, IQS620_GLBL_EVENT_MASK, in iqs621_als_init()
198 ret = blocking_notifier_chain_unregister(&iqs621_als->iqs62x->nh, in iqs621_als_notifier_unregister()
[all …]
/drivers/input/keyboard/
Diqs62x-keys.c36 struct iqs62x_core *iqs62x; member
103 struct iqs62x_core *iqs62x = iqs62x_keys->iqs62x; in iqs62x_keys_init() local
109 switch (iqs62x->dev_desc->prod_num) { in iqs62x_keys_init()
124 event_mask |= iqs62x->dev_desc->prox_mask; in iqs62x_keys_init()
126 event_mask |= (iqs62x->dev_desc->hyst_mask | in iqs62x_keys_init()
127 iqs62x->dev_desc->sar_mask); in iqs62x_keys_init()
130 ret = regmap_read(iqs62x->regmap, iqs62x->dev_desc->hall_flags, in iqs62x_keys_init()
148 event_mask |= iqs62x->dev_desc->hall_mask; in iqs62x_keys_init()
172 ret = regmap_read(iqs62x->regmap, iqs62x->dev_desc->interval, in iqs62x_keys_init()
184 return regmap_update_bits(iqs62x->regmap, event_reg, event_mask, 0); in iqs62x_keys_init()
[all …]
DMakefile32 obj-$(CONFIG_KEYBOARD_IQS62X) += iqs62x-keys.o
DKconfig688 be called iqs62x-keys.
/drivers/pwm/
Dpwm-iqs620a.c36 struct iqs62x_core *iqs62x; member
46 struct iqs62x_core *iqs62x = iqs620_pwm->iqs62x; in iqs620_pwm_init() local
50 return regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS, in iqs620_pwm_init()
53 ret = regmap_write(iqs62x->regmap, IQS620_PWM_DUTY_CYCLE, in iqs620_pwm_init()
58 return regmap_update_bits(iqs62x->regmap, IQS620_PWR_SETTINGS, in iqs620_pwm_init()
177 ret = blocking_notifier_chain_unregister(&iqs620_pwm->iqs62x->nh, in iqs620_pwm_notifier_unregister()
186 struct iqs62x_core *iqs62x = dev_get_drvdata(pdev->dev.parent); in iqs620_pwm_probe() local
195 iqs620_pwm->iqs62x = iqs62x; in iqs620_pwm_probe()
197 ret = regmap_read(iqs62x->regmap, IQS620_PWR_SETTINGS, &val); in iqs620_pwm_probe()
202 ret = regmap_read(iqs62x->regmap, IQS620_PWM_DUTY_CYCLE, &val); in iqs620_pwm_probe()
[all …]
/drivers/iio/temperature/
Diqs620at-temp.c26 struct iqs62x_core *iqs62x = iio_device_get_drvdata(indio_dev); in iqs620_temp_read_raw() local
32 ret = regmap_raw_read(iqs62x->regmap, IQS620_TEMP_UI_OUT, in iqs620_temp_read_raw()
45 *val = iqs62x->hw_num < IQS620_HW_NUM_V3 ? IQS620_TEMP_OFFSET in iqs620_temp_read_raw()
69 struct iqs62x_core *iqs62x = dev_get_drvdata(pdev->dev.parent); in iqs620_temp_probe() local
76 iio_device_set_drvdata(indio_dev, iqs62x); in iqs620_temp_probe()
81 indio_dev->name = iqs62x->dev_desc->dev_name; in iqs620_temp_probe()