Home
last modified time | relevance | path

Searched full:gpadc (Results 1 – 25 of 102) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/iio/adc/
Dab8500-gpadc.c43 /* GPADC register offsets and bit definitions */
46 /* GPADC control register 1 bits */
62 * GPADC control register 2 and 3 bits
145 /* GPADC constants from AB8500 spec, UM0836 */
162 /* GPADC constants from AB8540 spec */
207 * struct ab8500_gpadc_chan_info - per-channel GPADC info
230 * struct ab8500_gpadc - AB8500 GPADC device information
236 * the completion of an gpadc conversion cycle
238 * @irq_sw: interrupt number that is used by gpadc for software ADC conversion
239 * @irq_hw: interrupt number that is used by gpadc for hardware ADC conversion
[all …]
Dtwl6030-gpadc.c3 * TWL6030 GPADC module driver
85 * struct twl6030_ideal_code - GPADC calibration parameters
86 * GPADC is calibrated in two points: close to the beginning and
107 * @nchannels: number of GPADC channels
121 int (*calibrate)(struct twl6030_gpadc_data *gpadc);
125 * struct twl6030_gpadc_data - GPADC data
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()
[all …]
Dda9150-gpadc.c3 * DA9150 GPADC Driver
86 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()
[all …]
Daxp288_adc.c79 .datasheet_name = "GPADC",
109 IIO_MAP("GPADC", "axp288-gpadc", "axp288-system-temp"),
130 * with the GPADC. For proper fuel-gauge and charger operation the TS
131 * current-source needs to be permanently on. But to read the GPADC we
133 * the GPADC can use it, otherwise we will always read an all 0 value.
144 /* Channels other than GPADC do not need the current source */ in axp288_adc_set_ts()
153 /* When switching to the GPADC pin give things some time to settle */ in axp288_adc_set_ts()
172 dev_err(&indio_dev->dev, "GPADC mode\n"); in axp288_adc_read_raw()
/kernel/linux/linux-5.10/drivers/iio/adc/
Dab8500-gpadc.c43 /* GPADC register offsets and bit definitions */
46 /* GPADC control register 1 bits */
62 * GPADC control register 2 and 3 bits
145 /* GPADC constants from AB8500 spec, UM0836 */
162 /* GPADC constants from AB8540 spec */
207 * struct ab8500_gpadc_chan_info - per-channel GPADC info
230 * struct ab8500_gpadc - AB8500 GPADC device information
236 * the completion of an gpadc conversion cycle
238 * @irq_sw: interrupt number that is used by gpadc for software ADC conversion
239 * @irq_hw: interrupt number that is used by gpadc for hardware ADC conversion
[all …]
Dtwl6030-gpadc.c3 * TWL6030 GPADC module driver
85 * struct twl6030_ideal_code - GPADC calibration parameters
86 * GPADC is calibrated in two points: close to the beginning and
107 * @nchannels: number of GPADC channels
121 int (*calibrate)(struct twl6030_gpadc_data *gpadc);
125 * struct twl6030_gpadc_data - GPADC data
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()
[all …]
Dda9150-gpadc.c3 * DA9150 GPADC Driver
86 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()
[all …]
Daxp288_adc.c76 .datasheet_name = "GPADC",
106 IIO_MAP("GPADC", "axp288-gpadc", "axp288-system-temp"),
127 * with the GPADC. For proper fuel-gauge and charger operation the TS
128 * current-source needs to be permanently on. But to read the GPADC we
130 * the GPADC can use it, otherwise we will always read an all 0 value.
141 /* Channels other than GPADC do not need the current source */ in axp288_adc_set_ts()
150 /* When switching to the GPADC pin give things some time to settle */ in axp288_adc_set_ts()
169 dev_err(&indio_dev->dev, "GPADC mode\n"); in axp288_adc_read_raw()
Dpalmas_gpadc.c3 * palmas-adc.c -- TI PALMAS GPADC.
27 #define MOD_NAME "palmas-gpadc"
91 * @extended_delay: enable the gpadc extended delay mode
116 * GPADC lock issue in AUTO mode.
117 * Impact: In AUTO mode, GPADC conversion can be locked after disabling AUTO
125 * will stay at 0 meaning that GPADC is busy. An RT conversion can unlock
126 * the GPADC.
131 * Force the GPADC state machine to be ON by using the GPADC_CTRL1.
133 * Shutdown the GPADC AUTO conversion using
135 * After 100us, force the GPADC state machine to be OFF by using the
[all …]
/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";
56 /* GPADC channels */
101 io-channels = <&gpadc 0x08>;
109 io-channels = <&gpadc 0x02>,
[all …]
/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|
74 A few child devices require ADC channels from the GPADC node. Those follow the
113 ab8500-gpadc {
114 compatible = "stericsson,ab8500-gpadc";
123 /* GPADC channels */
188 io-channels = <&gpadc 0x06>,
189 <&gpadc 0x07>;
201 io-channels = <&gpadc 0x08>;
208 io-channels = <&gpadc 0x02>,
[all …]
/kernel/linux/linux-6.6/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>;
/kernel/linux/linux-6.6/arch/arm/boot/dts/st/
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 */
52 gpadc: adc { 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 */
17 <&gpadc 0x0d>; /* Die temperature */
49 gpadc: adc { label
50 compatible = "stericsson,ab8500-gpadc";
58 /* GPADC channels */
116 io-channels = <&gpadc 0x08>;
[all …]
/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/
Ddlg,da9150-gpadc.yaml4 $id: http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml#
7 title: Dialog Semiconductor DA9150 IIO GPADC
18 const: dlg,da9150-gpadc
32 compatible = "dlg,da9150-gpadc";
Dpalmas-gpadc.txt22 - compatible : Must be "ti,palmas-gpadc".
37 gpadc {
38 compatible = "ti,palmas-gpadc";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/
Ddlg,da9150-gpadc.yaml4 $id: http://devicetree.org/schemas/iio/adc/dlg,da9150-gpadc.yaml#
7 title: Dialog Semiconductor DA9150 IIO GPADC
18 const: dlg,da9150-gpadc
32 compatible = "dlg,da9150-gpadc";
Dallwinner,sun20i-d1-gpadc.yaml4 $id: http://devicetree.org/schemas/iio/adc/allwinner,sun20i-d1-gpadc.yaml#
15 - allwinner,sun20i-d1-gpadc
72 gpadc: adc@2009000 {
73 compatible = "allwinner,sun20i-d1-gpadc";
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Ddlg,da9150-charger.yaml43 io-channels = <&gpadc 0>,
44 <&gpadc 2>,
45 <&gpadc 8>,
46 <&gpadc 5>;
Dstericsson,ab8500-charger.yaml118 io-channels = <&gpadc 0x03>,
119 <&gpadc 0x0a>,
120 <&gpadc 0x09>,
121 <&gpadc 0x0b>;
/kernel/linux/linux-6.6/drivers/mfd/
Dsun4i-gpadc.c15 #include <linux/mfd/sun4i-gpadc.h>
46 .name = "sun4i-a10-gpadc-iio",
55 .name = "sun5i-a13-gpadc-iio",
64 .name = "sun6i-a31-gpadc-iio",
165 .name = "sun4i-gpadc",
173 MODULE_DESCRIPTION("Allwinner sunxi platforms' GPADC MFD core driver");
/kernel/linux/linux-5.10/drivers/mfd/
Dsun4i-gpadc.c15 #include <linux/mfd/sun4i-gpadc.h>
47 .name = "sun4i-a10-gpadc-iio",
56 .name = "sun5i-a13-gpadc-iio",
65 .name = "sun6i-a31-gpadc-iio",
168 .name = "sun4i-gpadc",
176 MODULE_DESCRIPTION("Allwinner sunxi platforms' GPADC MFD core driver");

12345