Lines Matching full:rn5t618

3  * ADC driver for the RICOH RN5T618 power management chip family
14 #include <linux/mfd/rn5t618.h>
40 struct rn5t618 *rn5t618; member
67 static int rn5t618_read_adc_reg(struct rn5t618 *rn5t618, int reg, u16 *val) in rn5t618_read_adc_reg() argument
72 ret = regmap_bulk_read(rn5t618->regmap, reg, data, sizeof(data)); in rn5t618_read_adc_reg()
88 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC1, 0); in rn5t618_adc_irq()
89 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC2, 0); in rn5t618_adc_irq()
91 ret = regmap_read(adc->rn5t618->regmap, RN5T618_IR_ADC3, &r); in rn5t618_adc_irq()
95 regmap_write(adc->rn5t618->regmap, RN5T618_IR_ADC3, 0); in rn5t618_adc_irq()
120 ret = regmap_update_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, in rn5t618_adc_read()
126 ret = regmap_write(adc->rn5t618->regmap, RN5T618_EN_ADCIR3, in rn5t618_adc_read()
131 ret = regmap_update_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, in rn5t618_adc_read()
140 ret = regmap_update_bits(adc->rn5t618->regmap, RN5T618_ADCCNT3, in rn5t618_adc_read()
153 ret = rn5t618_read_adc_reg(adc->rn5t618, in rn5t618_adc_read()
190 IIO_MAP("VADP", "rn5t618-power", "vadp"),
191 IIO_MAP("VUSB", "rn5t618-power", "vusb"),
200 struct rn5t618 *rn5t618 = dev_get_drvdata(pdev->dev.parent); in rn5t618_adc_probe() local
210 adc->rn5t618 = rn5t618; in rn5t618_adc_probe()
212 if (rn5t618->irq_data) in rn5t618_adc_probe()
213 adc->irq = regmap_irq_get_virq(rn5t618->irq_data, in rn5t618_adc_probe()
230 ret = regmap_write(rn5t618->regmap, RN5T618_ADCCNT3, 0); in rn5t618_adc_probe()
254 .name = "rn5t618-adc",
260 MODULE_ALIAS("platform:rn5t618-adc");
261 MODULE_DESCRIPTION("RICOH RN5T618 ADC driver");