Home
last modified time | relevance | path

Searched refs:gpadc (Results 1 – 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/iio/adc/
Dab8500-gpadc.c255 ab8500_gpadc_get_channel(struct ab8500_gpadc *gpadc, u8 chan) in ab8500_gpadc_get_channel() argument
260 for (i = 0; i < gpadc->nchans; i++) { in ab8500_gpadc_get_channel()
261 ch = &gpadc->chans[i]; in ab8500_gpadc_get_channel()
265 if (i == gpadc->nchans) in ab8500_gpadc_get_channel()
277 static int ab8500_gpadc_ad_to_voltage(struct ab8500_gpadc *gpadc, in ab8500_gpadc_ad_to_voltage() argument
286 if (!gpadc->cal_data[AB8500_CAL_VMAIN].gain) { in ab8500_gpadc_ad_to_voltage()
293 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_VMAIN].gain + in ab8500_gpadc_ad_to_voltage()
294 gpadc->cal_data[AB8500_CAL_VMAIN].offset) / AB8500_GPADC_CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
304 if (!gpadc->cal_data[AB8500_CAL_BTEMP].gain) { in ab8500_gpadc_ad_to_voltage()
311 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_BTEMP].gain + in ab8500_gpadc_ad_to_voltage()
[all …]
Dtwl6030-gpadc.c121 int (*calibrate)(struct twl6030_gpadc_data *gpadc);
384 struct twl6030_gpadc_data *gpadc = iio_priv(indio_dev); in twl6030_gpadc_irq_handler() local
386 complete(&gpadc->irq_complete); in twl6030_gpadc_irq_handler()
447 static int twl6030_gpadc_make_correction(struct twl6030_gpadc_data *gpadc, in twl6030_gpadc_make_correction() argument
450 const struct twl6030_ideal_code *ideal = gpadc->pdata->ideal; in twl6030_gpadc_make_correction()
454 i = twl6030_gpadc_lookup(ideal, channel, gpadc->pdata->nchannels); in twl6030_gpadc_make_correction()
456 gpadc->twl6030_cal_tbl[i].offset_error) / in twl6030_gpadc_make_correction()
457 gpadc->twl6030_cal_tbl[i].gain_error; in twl6030_gpadc_make_correction()
462 static int twl6030_gpadc_get_raw(struct twl6030_gpadc_data *gpadc, in twl6030_gpadc_get_raw() argument
465 u8 reg = gpadc->pdata->channel_to_reg(channel); in twl6030_gpadc_get_raw()
[all …]
Dda9150-gpadc.c86 struct da9150_gpadc *gpadc = data; in da9150_gpadc_irq() local
88 complete(&gpadc->complete); in da9150_gpadc_irq()
93 static int da9150_gpadc_read_adc(struct da9150_gpadc *gpadc, int hw_chan) in da9150_gpadc_read_adc() argument
98 mutex_lock(&gpadc->lock); in da9150_gpadc_read_adc()
101 da9150_reg_write(gpadc->da9150, DA9150_GPADC_MAN, in da9150_gpadc_read_adc()
106 try_wait_for_completion(&gpadc->complete); in da9150_gpadc_read_adc()
109 wait_for_completion_timeout(&gpadc->complete, msecs_to_jiffies(5)); in da9150_gpadc_read_adc()
112 da9150_bulk_read(gpadc->da9150, DA9150_GPADC_RES_A, 2, result_regs); in da9150_gpadc_read_adc()
114 mutex_unlock(&gpadc->lock); in da9150_gpadc_read_adc()
118 dev_err(gpadc->dev, "Timeout on channel %d of GPADC\n", in da9150_gpadc_read_adc()
[all …]
DMakefile7 obj-$(CONFIG_AB8500_GPADC) += ab8500-gpadc.o
40 obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o
87 obj-$(CONFIG_SUN4I_GPADC) += sun4i-gpadc-iio.o
108 obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
DKconfig391 will be da9150-gpadc.
1006 called sun4i-gpadc-iio.
1192 called twl6030-gpadc.
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dda9150.txt7 da9150-gpadc : General Purpose ADC
22 - da9150-gpadc: See ../iio/adc/da9150-gpadc.txt
35 gpadc: da9150-gpadc {
36 compatible = "dlg,da9150-gpadc";
43 io-channels = <&gpadc 0>,
44 <&gpadc 2>,
45 <&gpadc 8>,
46 <&gpadc 5>;
Dab8500.txt50 ab8500-gpadc : HW_CONV_END : vddadc : Analogue to Digital Converter
71 - compatible : "stericsson,ab8500-[bm|btemp|charger|fg|gpadc|gpio|ponkey|
113 ab8500-gpadc {
114 compatible = "stericsson,ab8500-gpadc";
188 io-channels = <&gpadc 0x06>,
189 <&gpadc 0x07>;
201 io-channels = <&gpadc 0x08>;
208 io-channels = <&gpadc 0x02>,
209 <&gpadc 0x01>;
218 io-channels = <&gpadc 0x03>,
[all …]
D88pm860x.txt59 marvell,88pm860x-gpadc-prebias = <1>;
60 marvell,88pm860x-gpadc-slot-cycle = <1>;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dste-ab8500.dtsi12 io-channels = <&gpadc 0x02>, /* Battery temperature */
13 <&gpadc 0x03>, /* Main charger voltage */
14 <&gpadc 0x08>, /* Main battery voltage */
15 <&gpadc 0x09>, /* VBUS */
16 <&gpadc 0x0a>, /* Main charger current */
17 <&gpadc 0x0b>, /* USB charger current */
18 <&gpadc 0x0c>, /* Backup battery voltage */
19 <&gpadc 0x0d>, /* Die temperature */
20 <&gpadc 0x12>; /* Crystal temperature */
50 gpadc: ab8500-gpadc { label
[all …]
Dste-ab8505.dtsi12 io-channels = <&gpadc 0x02>, /* Battery temperature */
13 <&gpadc 0x08>, /* Main battery voltage */
14 <&gpadc 0x09>, /* VBUS */
15 <&gpadc 0x0b>, /* Charger current */
16 <&gpadc 0x0c>; /* Backup battery voltage */
46 gpadc: ab8500-gpadc { label
47 compatible = "stericsson,ab8500-gpadc";
101 io-channels = <&gpadc 0x08>;
109 io-channels = <&gpadc 0x02>,
110 <&gpadc 0x01>;
[all …]
Dtwl6030.dtsi100 gpadc {
101 compatible = "ti,twl6030-gpadc";
Dpxa910-dkb.dts139 marvell,88pm860x-gpadc-prebias = <1>;
140 marvell,88pm860x-gpadc-slot-cycle = <1>;
Domap5-board-common.dtsi416 gpadc: gpadc { label
417 compatible = "ti,palmas-gpadc";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dda9150-charger.txt18 io-channels = <&gpadc 0>,
19 <&gpadc 2>,
20 <&gpadc 8>,
21 <&gpadc 5>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Dpalmas-gpadc.txt22 - compatible : Must be "ti,palmas-gpadc".
37 gpadc {
38 compatible = "ti,palmas-gpadc";
/kernel/linux/linux-5.10/drivers/mfd/
DMakefile254 obj-$(CONFIG_MFD_SUN4I_GPADC) += sun4i-gpadc.o
DKconfig66 sun4i-gpadc-iio and the hwmon driver iio_hwmon.
69 called sun4i-gpadc.
/kernel/linux/linux-5.10/include/linux/mfd/
Dpalmas.h81 struct palmas_gpadc *gpadc; member
/kernel/linux/linux-5.10/
DMAINTAINERS2174 F: drivers/iio/adc/ab8500-gpadc.c