Home
last modified time | relevance | path

Searched +full:twl4030 +full:- +full:madc (Results 1 – 12 of 12) sorted by relevance

/linux/Documentation/devicetree/bindings/iio/adc/
H A Dti,twl4030-madc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/ti,twl4030-madc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MADC subsystem in the TWL4030 power module
10 - Sebastian Reichel <sre@kernel.org>
13 The MADC subsystem in the TWL4030 consists of a 10-bit ADC
14 combined with a 16-input analog multiplexer.
18 const: ti,twl4030-madc
23 ti,system-uses-second-madc-irq:
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dti,twl.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Andreas Kemnade <andreas@kemnade.info>
19 - if:
23 const: ti,twl4030
26 "^regulator-":
30 - ti,twl4030-vaux1
31 - ti,twl4030-vaux2
32 - ti,twl4030-vaux3
[all …]
/linux/Documentation/hwmon/
H A Dtwl4030-madc-hwmon.rst1 Kernel driver twl4030-madc
6 * Texas Instruments TWL4030
8 Prefix: 'twl4030-madc'
12 J Keerthy <j-keerthy@ti.com>
15 -----------
17 The Texas Instruments TWL4030 is a Power Management and Audio Circuit. Among
18 other things it contains a 10-bit A/D converter MADC. The converter has 16
/linux/drivers/mfd/
H A Dtwl4030-irq.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl4030-irq.c - TWL4030/TPS659x0 irq support
5 * Copyright (C) 2005-2006 Texas Instruments, Inc.
26 #include "twl-core.h"
29 * TWL4030 IRQ handling has two stages in hardware, and thus in software.
32 * SIH modules are more traditional IRQ components, which support per-IRQ
39 * We set up IRQs starting at a platform-specified base, always starting
70 /* SIR ignored -- set interrupt, for testing only */
108 /* sih_modules_twl4030 is used both in twl4030 and twl5030 */
117 /* Note: *all* of these IRQs default to no-trigger */
[all …]
H A Dtwl-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl_core.c - driver for TWL4030/TWL5030/TWL60X0/TPS659x0 PM
6 * Copyright (C) 2005-2006 Texas Instruments, Inc.
39 #include <linux/mfd/twl4030-audio.h>
41 #include "twl-core.h"
44 * The TWL4030 "Triton 2" is one of a family of a multi-function "Power
62 /* subchip/slave 0 - USB ID */
65 /* subchip/slave 1 - AUD ID */
72 /* subchip/slave 2 - AUX ID */
82 #define TWL5031_BASEADD_INTERRUPTS 0x00B9 /* Different than TWL4030's
[all …]
/linux/include/linux/power/
H A Dtwl4030_madc_battery.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Dumb driver for LiIon batteries using TWL4030 madc.
18 short voltage; /* in mV - specify -1 for end of list */
/linux/drivers/power/supply/
H A Dtwl4030_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * TWL4030/TPS65950 BCI (Battery Charger Interface) driver
73 #define TWL4030_ICHGEOC BIT(4) /* Battery current end-of-charge */
92 * If AC (Accessory Charger) voltage exceeds 4.5V (MADC 11)
147 #define USB_MAX_CURRENT 1700000 /* TWL4030 caps at 1.7A */
207 * CGAIN == 0: ICHG = (BCIICHG * 1.7) / (2^10 - 1) - 0.85
208 * CGAIN == 1: ICHG = (BCIICHG * 3.4) / (2^10 - 1) - 1.7
210 * CGAIN == 0: val * 1.6618 - 0.85 * 1000
211 * CGAIN == 1: (val * 1.6618 - 0.85 * 1000) * 2
219 return (regval * 16618 - 8500 * 1000) / 5; in regval2ua()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
104 tristate "Active-semi ACT8945A charger driver"
108 Active-semi ActivePath ACT8945A charger.
120 called chagall-battery.
170 tristate "DS2782/DS2786 standalone gas-gauge"
174 gas-gauge.
181 E Go, which is a sc8280xp-based 2-in-1 tablet.
184 called huawei-gaokun-battery.
230 tristate "Sharp SL-5500 (collie) battery"
234 SL-5500 (collie) models.
[all …]
H A Dtwl4030_madc_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Dumb driver for LiIon batteries using TWL4030 madc.
57 return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; in twl4030_madc_bat_get_charging_status()
62 return madc_read(bt->channel_vbat); in twl4030_madc_bat_get_voltage()
67 return madc_read(bt->channel_ichg) * 1000; in twl4030_madc_bat_get_current()
72 return madc_read(bt->channel_temp) * 10; in twl4030_madc_bat_get_temp()
83 calibration = bat->pdata->charging; in twl4030_madc_bat_voltscale()
85 calibration = bat->pdata->discharging; in twl4030_madc_bat_voltscale()
93 /* interval found - interpolate within range */ in twl4030_madc_bat_voltscale()
94 res = calibration[i].level - in twl4030_madc_bat_voltscale()
[all …]
/linux/drivers/iio/adc/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
6 obj-$(CONFIG_IIO_ADC_HELPER) += industrialio-adc.o
9 obj-$(CONFIG_AB8500_GPADC) += ab8500-gpadc.o
10 obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
11 obj-$(CONFIG_AD4000) += ad4000.o
12 obj-$(CONFIG_AD4030) += ad4030.o
13 obj-$(CONFIG_AD4130) += ad4130.o
14 obj-$(CONFIG_AD4695) += ad4695.o
15 obj-$(CONFIG_AD4851) += ad4851.o
16 obj-$(CONFIG_AD7091R) += ad7091r-base.o
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
13 bool "ST-Ericsson AB8500 GPADC driver"
67 Say yes here to build support for Analog Devices AD4130-8 SPI analog
111 Say yes here to build support for Analog Devices AD7091R-5 ADC.
119 Say yes here to build support for Analog Devices AD7091R-2, AD7091R-4,
120 and AD7091R-8 ADC.
126 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver"
130 Say yes here to build support for Analog Devices AD7124-4 and AD7124-8
146 - AD7172-2
147 - AD7173-8
[all …]
H A Dtwl6030-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2009-2013 Texas Instruments Inc.
13 * Based on twl4030-madc.c
74 * struct twl6030_chnl_calib - channel calibration
86 * struct twl6030_ideal_code - GPADC calibration parameters
107 * struct twl6030_gpadc_platform_data - platform specific data
126 * struct twl6030_gpadc_data - GPADC data
323 [11] = { /* ch 11, internal, VBUS DC-DC output current */
387 complete(&gpadc->irq_complete); in twl6030_gpadc_irq_handler()
440 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated()
[all …]