Home
last modified time | relevance | path

Searched +full:twl4030 +full:- +full:madc (Results 1 – 11 of 11) 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
H A Dindex.rst1 .. SPDX-License-Identifier: GPL-2.0
10 hwmon-kernel-api
11 pmbus-core
12 submitting-patches
13 sysfs-interface
14 userspace-tools
24 acbel-fsg032
47 aspeed-g6-pwm-tach
48 aspeed-pwm-tacho
53 bel-pfe
[all …]
/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.
158 tristate "DS2782/DS2786 standalone gas-gauge"
162 gas-gauge.
208 tristate "Sharp SL-5500 (collie) battery"
212 SL-5500 (collie) models.
223 called ingenic-battery.
242 Say Y to include support for SBS battery driver for SBS-compliant
264 called sbs-manager.
[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 DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 bool "ST-Ericsson AB8500 GPADC driver"
45 Say yes here to build support for Analog Devices AD4130-8 SPI analog
73 Say yes here to build support for Analog Devices AD7091R-5 ADC.
81 Say yes here to build support for Analog Devices AD7091R-2, AD7091R-4,
82 and AD7091R-8 ADC.
88 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver"
92 Say yes here to build support for Analog Devices AD7124-4 and AD7124-8
107 - AD7172-2
108 - AD7173-8
[all …]