/linux/drivers/iio/adc/ ! |
H A D | ab8500-gpadc.c | 43 /* 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 fo 255 ab8500_gpadc_get_channel(struct ab8500_gpadc * gpadc,u8 chan) ab8500_gpadc_get_channel() argument 277 ab8500_gpadc_ad_to_voltage(struct ab8500_gpadc * gpadc,enum ab8500_gpadc_channel ch,int ad_value) ab8500_gpadc_ad_to_voltage() argument 386 ab8500_gpadc_read(struct ab8500_gpadc * gpadc,const struct ab8500_gpadc_chan_info * ch,int * ibat) ab8500_gpadc_read() argument 643 struct ab8500_gpadc *gpadc = data; ab8500_bm_gpadcconvend_handler() local 666 ab8500_gpadc_read_calibration_data(struct ab8500_gpadc * gpadc) ab8500_gpadc_read_calibration_data() argument 894 struct ab8500_gpadc *gpadc = iio_priv(indio_dev); ab8500_gpadc_read_raw() local 948 struct ab8500_gpadc *gpadc = iio_priv(indio_dev); ab8500_gpadc_runtime_suspend() local 958 struct ab8500_gpadc *gpadc = iio_priv(indio_dev); ab8500_gpadc_runtime_resume() local 1027 ab8500_gpadc_parse_channels(struct ab8500_gpadc * gpadc,struct iio_chan_spec ** chans_parsed,unsigned int * nchans_parsed) ab8500_gpadc_parse_channels() argument 1077 struct ab8500_gpadc *gpadc; ab8500_gpadc_probe() local 1183 struct ab8500_gpadc *gpadc = iio_priv(indio_dev); ab8500_gpadc_remove() local [all...] |
H A D | twl6030-gpadc.c | 3 * TWL6030 GPADC module driver 86 * struct twl6030_ideal_code - GPADC calibration parameters 87 * GPADC is calibrated in two points: close to the beginning and 108 * @nchannels: number of GPADC channels 122 int (*calibrate)(struct twl6030_gpadc_data *gpadc); 126 * struct twl6030_gpadc_data - GPADC data 385 struct twl6030_gpadc_data *gpadc = iio_priv(indio_dev); in twl6030_gpadc_irq_handler() local 387 complete(&gpadc->irq_complete); in twl6030_gpadc_irq_handler() 448 static int twl6030_gpadc_make_correction(struct twl6030_gpadc_data *gpadc, in twl6030_gpadc_make_correction() argument 451 const struct twl6030_ideal_code *ideal = gpadc in twl6030_gpadc_make_correction() 463 twl6030_gpadc_get_raw(struct twl6030_gpadc_data * gpadc,int channel,int * res) twl6030_gpadc_get_raw() argument 488 twl6030_gpadc_get_processed(struct twl6030_gpadc_data * gpadc,int channel,int * val) twl6030_gpadc_get_processed() argument 520 struct twl6030_gpadc_data *gpadc = iio_priv(indio_dev); twl6030_gpadc_read_raw() local 573 twl6030_calibrate_channel(struct twl6030_gpadc_data * gpadc,int channel,int d1,int d2) twl6030_calibrate_channel() argument 621 twl6030_calibration(struct twl6030_gpadc_data * gpadc) twl6030_calibration() argument 708 twl6032_calibration(struct twl6030_gpadc_data * gpadc) twl6032_calibration() argument 881 struct twl6030_gpadc_data *gpadc; twl6030_gpadc_probe() local [all...] |
H A D | da9150-gpadc.c | 3 * 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 in da9150_gpadc_read_adc() 156 da9150_gpadc_read_processed(struct da9150_gpadc * gpadc,int channel,int hw_chan,int * val) da9150_gpadc_read_processed() argument 226 struct da9150_gpadc *gpadc = iio_priv(indio_dev); da9150_gpadc_read_raw() local 306 struct da9150_gpadc *gpadc; da9150_gpadc_probe() local [all...] |
H A D | axp288_adc.c | 79 .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()
|
H A D | palmas_gpadc.c | 3 * palmas-adc.c -- TI PALMAS GPADC. 26 #define MOD_NAME "palmas-gpadc" 101 * @extended_delay: enable the gpadc extended delay mode 152 * GPADC lock issue in AUTO mode. 153 * Impact: In AUTO mode, GPADC conversion can be locked after disabling AUTO 161 * will stay at 0 meaning that GPADC is busy. An RT conversion can unlock 162 * the GPADC. 167 * Force the GPADC state machine to be ON by using the GPADC_CTRL1. 169 * Shutdown the GPADC AUTO conversion using 171 * After 100us, force the GPADC stat [all...] |
H A D | Makefile | 9 obj-$(CONFIG_AB8500_GPADC) += ab8500-gpadc.o 59 obj-$(CONFIG_DA9150_GPADC) += da9150-gpadc.o 131 obj-$(CONFIG_SUN20I_GPADC) += sun20i-gpadc-iio.o 132 obj-$(CONFIG_SUN4I_GPADC) += sun4i-gpadc-iio.o 156 obj-$(CONFIG_TWL6030_GPADC) += twl6030-gpadc.o
|
H A D | sun20i-gpadc-iio.c | 3 * GPADC driver for sunxi platforms (D1, T113-S3 and R329) 21 #define SUN20I_GPADC_DRIVER_NAME "sun20i-gpadc" 245 { .compatible = "allwinner,sun20i-d1-gpadc" },
|
H A D | sun4i-gpadc-iio.c | 2 /* ADC driver for sunxi platforms' (A10, A13 and A31) GPADC 36 #include <linux/mfd/sun4i-gpadc.h> 685 { "sun4i-a10-gpadc-iio", (kernel_ulong_t)&sun4i_gpadc_data }, 686 { "sun5i-a13-gpadc-iio", (kernel_ulong_t)&sun5i_gpadc_data }, 687 { "sun6i-a31-gpadc-iio", (kernel_ulong_t)&sun6i_gpadc_data }, 694 .name = "sun4i-gpadc-iio",
|
/linux/Documentation/devicetree/bindings/mfd/ ! |
H A D | da9150.txt | 7 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 [all...] |
H A D | ti,twl.yaml | 113 gpadc: 117 const: ti,twl6030-gpadc 151 gpadc: 155 const: ti,twl6032-gpadc 248 io-channels = <&gpadc 10>; 253 gpadc { 254 compatible = "ti,twl6030-gpadc";
|
H A D | 88pm860x.txt | 59 marvell,88pm860x-gpadc-prebias = <1>; 60 marvell,88pm860x-gpadc-slot-cycle = <1>;
|
/linux/arch/arm/boot/dts/st/ ! |
H A D | ste-ab8500.dtsi | 12 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 label [all...] |
H A D | ste-ab8505.dtsi | 12 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 [all...] |
/linux/Documentation/devicetree/bindings/iio/adc/ ! |
H A D | ti,twl6030-gpadc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/ti,twl6030-gpadc.yaml# 7 title: GPADC subsystem in the TWL6030 power module 13 The GPADC subsystem in the TWL603X consists of a 10-bit ADC 20 - ti,twl6030-gpadc 21 - ti,twl6032-gpadc 38 gpadc { 39 compatible = "ti,twl6030-gpadc";
|
H A D | allwinner,sun20i-d1-gpadc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/allwinner,sun20i-d1-gpadc.yaml# 16 - allwinner,sun20i-d1-gpadc 19 - allwinner,sun50i-h616-gpadc 20 - const: allwinner,sun20i-d1-gpadc 77 gpadc: adc@2009000 { 78 compatible = "allwinner,sun20i-d1-gpadc";
|
H A D | dlg,da9150-gpadc.yaml | 4 $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";
|
H A D | ti,palmas-gpadc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/ti,palmas-gpadc.yaml# 35 const: ti,palmas-gpadc
|
/linux/Documentation/devicetree/bindings/power/supply/ ! |
H A D | dlg,da9150-charger.yaml | 43 io-channels = <&gpadc 0>, 44 <&gpadc 2>, 45 <&gpadc 8>, 46 <&gpadc 5>;
|
H A D | stericsson,ab8500-charger.yaml | 116 io-channels = <&gpadc 0x03>, 117 <&gpadc 0x0a>, 118 <&gpadc 0x09>, 119 <&gpadc 0x0b>;
|
H A D | stericsson,ab8500-btemp.yaml | 72 io-channels = <&gpadc 0x02>, <&gpadc 0x01>;
|
/linux/drivers/mfd/ ! |
H A D | sun4i-gpadc.c | 15 #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");
|
H A D | 88pm800.c | 247 "Warning: gpadc regmap is not available!\n"); in device_gpadc_init() 251 * initialize GPADC without activating it turn on GPADC in device_gpadc_init() 278 * the defult of PM800 is GPADC operates at 100Ks/s rate in device_gpadc_init() 279 * and Number of GPADC slots with active current bias prior in device_gpadc_init() 280 * to GPADC sampling = 1 slot for all GPADCs set for in device_gpadc_init() 435 /* PM800 block GPADC */ in pm800_pages_init() 492 dev_err(chip->dev, "[%s]Failed to init gpadc\n", __func__); in device_800_init() 554 /* pm800 has 2 addtional pages to support power and gpadc. */ in pm800_probe()
|
/linux/drivers/input/touchscreen/ ! |
H A D | 88pm860x-ts.c | 132 /* set GPADC MISC1 register */ in pm860x_touch_dt_init() 134 if (!of_property_read_u32(np, "marvell,88pm860x-gpadc-prebias", &n)) in pm860x_touch_dt_init() 136 if (!of_property_read_u32(np, "marvell,88pm860x-gpadc-slot-cycle", &n)) in pm860x_touch_dt_init() 138 if (!of_property_read_u32(np, "marvell,88pm860x-gpadc-off-scale", &n)) in pm860x_touch_dt_init() 140 if (!of_property_read_u32(np, "marvell,88pm860x-gpadc-sw-cal", &n)) in pm860x_touch_dt_init() 187 /* set GPADC MISC1 register */ in pm860x_touch_probe() 229 /* enable GPADC */ in pm860x_touch_probe()
|
/linux/arch/arm/boot/dts/ti/omap/ ! |
H A D | twl6030.dtsi | 100 gpadc { 101 compatible = "ti,twl6030-gpadc";
|
/linux/arch/arm64/boot/dts/allwinner/ ! |
H A D | sun50i-h700-anbernic-rg35xx-h.dts | 62 io-channels = <&gpadc 0>; 95 &gpadc {
|