Home
last modified time | relevance | path

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

/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/
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-v5.10/Documentation/hwmon/
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
Dindex.rst8 hwmon-kernel-api
9 pmbus-core
10 inspur-ipsps1
11 submitting-patches
12 sysfs-interface
13 userspace-tools
46 aspeed-pwm-tacho
48 bel-pfe
49 bt1-pvt
51 corsair-cpro
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dtwl4030.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
10 compatible = "ti,twl4030";
11 interrupt-controller;
12 #interrupt-cells = <1>;
15 compatible = "ti,twl4030-rtc";
20 compatible = "ti,twl4030-bci";
22 bci3v1-supply = <&vusb3v1>;
23 io-channels = <&twl_madc 11>;
24 io-channel-names = "vac";
[all …]
/Linux-v5.10/drivers/iio/adc/
Dtwl4030-madc.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * TWL4030 MADC module driver-This driver monitors the real time
8 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
9 * J Keerthy <j-keerthy@ti.com>
11 * Based on twl4030-madc.c
56 #define TWL4030_MADC_MADCON (1 << 0) /* MADC power on */
57 #define TWL4030_MADC_BUSY (1 << 0) /* MADC busy */
58 /* MADC conversion completion */
60 /* MADC SWx start conversion */
118 * struct twl4030_madc_request - madc request packet for channel conversion
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
7 obj-$(CONFIG_AB8500_GPADC) += ab8500-gpadc.o
8 obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
9 obj-$(CONFIG_AD7091R5) += ad7091r5.o ad7091r-base.o
10 obj-$(CONFIG_AD7124) += ad7124.o
11 obj-$(CONFIG_AD7192) += ad7192.o
12 obj-$(CONFIG_AD7266) += ad7266.o
13 obj-$(CONFIG_AD7291) += ad7291.o
14 obj-$(CONFIG_AD7292) += ad7292.o
15 obj-$(CONFIG_AD7298) += ad7298.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 bool "ST-Ericsson AB8500 GPADC driver"
29 Say yes here to build support for Analog Devices AD7091R-5 ADC.
32 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver"
36 Say yes here to build support for Analog Devices AD7124-4 and AD7124-8
100 tristate "Analog Devices AD7476 1-channel ADCs driver and other similar devices from AD an TI"
126 ad7605-4, ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC).
137 ad7605-4, ad7606, ad7606-6, ad7606-4 analog to digital converters (ADC).
148 Say yes here to build support for Analog Devices AD7766, AD7766-1,
149 AD7766-2, AD7767, AD7767-1, AD7767-2 SPI analog to digital converters.
[all …]
Dtwl6030-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2009-2013 Texas Instruments Inc.
13 * Based on twl4030-madc.c
61 * struct twl6030_chnl_calib - channel calibration
73 * struct twl6030_ideal_code - GPADC calibration parameters
94 * struct twl6030_gpadc_platform_data - platform specific data
113 * struct twl6030_gpadc_data - GPADC data
310 [11] = { /* ch 11, internal, VBUS DC-DC output current */
374 complete(&gpadc->irq_complete); in twl6030_gpadc_irq_handler()
427 const struct twl6030_ideal_code *ideal = pdata->ideal; in twl6030_channel_calibrated()
[all …]
/Linux-v5.10/drivers/mfd/
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.
25 #include "twl-core.h"
28 * TWL4030 IRQ handling has two stages in hardware, and thus in software.
31 * SIH modules are more traditional IRQ components, which support per-IRQ
38 * We set up IRQs starting at a platform-specified base, always starting
69 /* SIR ignored -- set interrupt, for testing only */
107 /* sih_modules_twl4030 is used both in twl4030 and twl5030 */
116 /* Note: *all* of these IRQs default to no-trigger */
[all …]
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.
37 #include <linux/mfd/twl4030-audio.h>
39 #include "twl-core.h"
42 * The TWL4030 "Triton 2" is one of a family of a multi-function "Power
60 /* subchip/slave 0 - USB ID */
63 /* subchip/slave 1 - AUD ID */
70 /* subchip/slave 2 - AUX ID */
80 #define TWL5031_BASEADD_INTERRUPTS 0x00B9 /* Different than TWL4030's
[all …]
/Linux-v5.10/include/linux/power/
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-v5.10/drivers/power/supply/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
105 tristate "Active-semi ACT8945A charger driver"
109 Active-semi ActivePath ACT8945A charger.
159 tristate "DS2782/DS2786 standalone gas-gauge"
163 gas-gauge.
185 tristate "Sharp SL-6000 (tosa) battery"
189 SL-6000 (tosa) models.
192 tristate "Sharp SL-5500 (collie) battery"
196 SL-5500 (collie) models.
207 called ingenic-battery.
[all …]
Dtwl4030_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * TWL4030/TPS65950 BCI (Battery Charger Interface) driver
72 #define TWL4030_ICHGEOC BIT(4) /* Battery current end-of-charge */
91 * If AC (Accessory Charger) voltage exceeds 4.5V (MADC 11)
146 #define USB_MAX_CURRENT 1700000 /* TWL4030 caps at 1.7A */
206 * CGAIN == 0: ICHG = (BCIICHG * 1.7) / (2^10 - 1) - 0.85
207 * CGAIN == 1: ICHG = (BCIICHG * 3.4) / (2^10 - 1) - 1.7
209 * CGAIN == 0: val * 1.6618 - 0.85 * 1000
210 * CGAIN == 1: (val * 1.6618 - 0.85 * 1000) * 2
218 return (regval * 16618 - 8500 * 1000) / 5; in regval2ua()
[all …]
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-v5.10/include/linux/mfd/
Dtwl.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * twl4030.h - header for TWL4030 PM and audio CODEC device
5 * Copyright (C) 2005-2006 Texas Instruments, Inc.
18 * Using the twl4030 core we address registers using a pair
23 * The module IDs are meaningful only to the twl4030 core code,
28 /* Module IDs for similar functionalities found in twl4030/twl6030 */
44 /* Modules only available in twl4030 series */
89 * Offset from TWL6030_IRQ_BASE / pdata->irq_base
167 * Read and write several 8-bit registers at once.
173 * Read and write single 8-bit registers
[all …]