Home
last modified time | relevance | path

Searched +full:adc +full:- +full:battery (Results 1 – 25 of 175) sorted by relevance

1234567

/openbmc/linux/Documentation/devicetree/bindings/power/supply/
H A Dadc-battery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/supply/adc-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ADC battery
10 - Sebastian Reichel <sre@kernel.org>
13 Basic battery capacity meter, which only reports basic battery data
14 via ADC channels and optionally indicate that the battery is full by
17 The voltage is expected to be measured between the battery terminals
19 monitor the current/power flowing out of the battery. Last but not
[all …]
H A Dlego,ev3-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/lego,ev3-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: LEGO MINDSTORMS EV3 Battery
10 - David Lechner <david@lechnology.com>
11 - Sebastian Reichel <sre@kernel.org>
14 LEGO MINDSTORMS EV3 has some built-in capability for monitoring the battery.
15 It uses 6 AA batteries or a special Li-ion rechargeable battery pack that is
16 detected by a key switch in the battery compartment.
[all …]
H A Dingenic,battery.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
4 ---
5 $id: http://devicetree.org/schemas/power/supply/ingenic,battery.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Ingenic JZ47xx battery
11 - Artur Rojek <contact@artur-rojek.eu>
13 $ref: power-supply.yaml#
18 - const: ingenic,jz4740-battery
19 - items:
[all …]
H A Dnokia,n900-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/nokia,n900-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Nokia N900 battery
10 - Pali Rohár <pali@kernel.org>
11 - Sebastian Reichel <sre@kernel.org>
14 - $ref: power-supply.yaml#
18 const: nokia,n900-battery
20 io-channels:
[all …]
H A Dx-powers,axp20x-battery-power-supply.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AXP20x Battery power-supply
10 The supported devices can read the battery voltage, charge and discharge
11 currents of the battery by reading ADC channels from the ADC.
14 - Chen-Yu Tsai <wens@csie.org>
15 - Sebastian Reichel <sre@kernel.org>
18 - $ref: power-supply.yaml#
[all …]
H A Dsc27xx-fg.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sc27xx-fg.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
18 - sprd,sc2720-fgu
19 - sprd,sc2721-fgu
20 - sprd,sc2723-fgu
21 - sprd,sc2730-fgu
[all …]
/openbmc/linux/Documentation/hwmon/
H A Dda9052.rst6 * Dialog Semiconductors DA9052-BC and DA9053-AA/Bx PMICs
15 -----------
17 The DA9052/53 provides an Analogue to Digital Converter (ADC) with 10 bits
21 the input of the ADC during the conversion.
23 The ADC is used to measure the following inputs:
26 Channel 0 VDDOUT - measurement of the system voltage
27 Channel 1 ICH - internal battery charger current measurement
28 Channel 2 TBAT - output from the battery NTC
29 Channel 3 VBAT - measurement of the battery voltage
30 Channel 4 ADC_IN4 - high impedance input (0 - 2.5V)
[all …]
H A Dwm831x.rst1 Kernel driver wm831x-hwmon
11 - http://www.wolfsonmicro.com/products/WM8310
12 - http://www.wolfsonmicro.com/products/WM8311
13 - http://www.wolfsonmicro.com/products/WM8312
18 -----------
26 ------------------
28 Voltages are sampled by a 12 bit ADC. Voltages in millivolts are 1.465
29 times the ADC value.
32 ----------------------
34 Temperatures are sampled by a 12 bit ADC. Chip and battery temperatures
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/
H A Daspeed,ast2600-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ADC that forms part of an ASPEED server management processor.
10 - Billy Tsai <billy_tsai@aspeedtech.com>
13 • 10-bits resolution for 16 voltage channels.
16 • Channel scanning can be non-continuous.
17 • Programmable ADC clock frequency.
21 • Built-in a compensating method.
[all …]
H A Dqcom,spmi-rradc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC Round Robin ADC
10 - Caleb Connolly <caleb.connolly@linaro.org>
13 The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to
15 the battery thermistor die temperature, charger temperature, USB and DC input
16 voltage / current and battery ID resistor.
21 - qcom,pmi8998-rradc
[all …]
H A Dti,palmas-gpadc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/ti,palmas-gpadc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Palmas general purpose ADC IP block
10 - Tony Lindgren <tony@atomide.com>
13 This ADC is often used to provide channels via the io-channels
16 0 battery type
17 1 battery temp NTC (optional current source)
24 8 Backup Battery voltage
[all …]
H A Dadi,ad7280a.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7280a.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7280a Lithium Ion Battery Monitoring System
10 - Michael Hennerich <michael.hennerich@analog.com>
11 - Jonathan Cameron <jic23@kernel.org>
14 Bindings for the Analog Devices AD7280a Battery Monitoring System.
15 Used in devices such as hybrid electric cars, battery backup and power tools.
18 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7280A.pdf
[all …]
/openbmc/linux/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
75 * @battery: battery power supply
78 * @gpiod: GPIO for battery detection
79 * @channel: IIO channel to get battery temperature
81 * @internal_resist: the battery internal resistance in mOhm
82 * @total_cap: the total capacity of the battery in mAh
83 * @init_cap: the initial capacity of the battery in mAh
87 * @min_volt: the minimum drained battery voltage in microvolt
91 * @cur_1000ma_adc: ADC value corresponding to 1000 mA
[all …]
H A Dmax8925_power.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery driver for Maxim MAX8925
5 * Copyright (c) 2009-2010 Marvell International Ltd.
31 /* registers in ADC */
66 struct i2c_client *adc; member
70 struct power_supply *battery; member
87 struct max8925_chip *chip = info->chip; in __set_charger()
90 if (info->set_charger) in __set_charger()
91 info->set_charger(1); in __set_charger()
93 max8925_set_bits(info->gpm, MAX8925_CHG_CNTL1, 1 << 7, 0); in __set_charger()
[all …]
H A Dda9030_battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery charger driver for Dialog Semiconductor DA9030
94 struct da9030_adc_res adc; member
114 /* platform callbacks for battery low and critical events */
128 return ((mV - 2650) << 8) / 2650; in da9030_millivolt_to_reg()
139 struct da9030_charger *charger = s->private; in bat_debug_show()
141 seq_printf(s, "charger is %s\n", charger->is_on ? "on" : "off"); in bat_debug_show()
142 if (charger->chdet) { in bat_debug_show()
144 charger->mA, charger->mV); in bat_debug_show()
148 charger->adc.vbat_res, in bat_debug_show()
[all …]
H A Dgeneric-adc-battery.c1 // SPDX-License-Identifier: GPL-2.0
3 * Generic battery driver using IIO
21 #include <linux/devm-helpers.h>
62 schedule_delayed_work(&adc_bat->bat_work, msecs_to_jiffies(0)); in gab_ext_power_changed()
71 * should correspond one-to-one with enum chan_type.
82 if (!adc_bat->charge_finished) in gab_charge_finished()
84 return gpiod_get_value(adc_bat->charge_finished); in gab_charge_finished()
92 ret = iio_read_channel_processed(adc_bat->channel[channel], result); in gab_read_channel()
94 dev_err(&adc_bat->psy->dev, "read channel error: %d\n", ret); in gab_read_channel()
108 val->intval = adc_bat->status; in gab_get_property()
[all …]
H A Drx51_battery.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Nokia RX-51 battery driver
39 * This conversion formula was extracted from maemo program bsi-read
43 int voltage = rx51_battery_read_adc(di->channel_vbat); in rx51_battery_read_voltage()
46 dev_err(di->dev, "Could not read ADC: %d\n", voltage); in rx51_battery_read_voltage()
54 * Temperature look-up tables
55 * TEMP = (1/(t1 + 1/298) - 273.15)
57 * Formula is based on experimental data, RX-51 CAL data, maemo program bme
74 * Usage: RAW = rx51_temp_table2[TEMP-rx51_temp_table2_first]
75 * TEMP is between 53 C and -32 C
[all …]
/openbmc/linux/drivers/iio/adc/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # ADC drivers
10 bool "ST-Ericsson AB8500 GPADC driver"
16 internal voltages, convert accessory and battery, AC (charger, mains)
25 tristate "Analog Device AD4130 ADC Driver"
33 Say yes here to build support for Analog Devices AD4130-8 SPI analog
34 to digital converters (ADC).
40 tristate "Analog Devices AD7091R5 ADC Driver"
44 Say yes here to build support for Analog Devices AD7091R-5 ADC.
47 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver"
[all …]
H A Dintel_mrfld_adc.c1 // SPDX-License-Identifier: GPL-2.0
3 * ADC driver for Basin Cove PMIC
65 struct mrfld_adc *adc = iio_priv(indio_dev); in mrfld_adc_thread_isr() local
67 complete(&adc->completion); in mrfld_adc_thread_isr()
75 struct mrfld_adc *adc = iio_priv(indio_dev); in mrfld_adc_single_conv() local
76 struct regmap *regmap = adc->regmap; in mrfld_adc_single_conv()
82 reinit_completion(&adc->completion); in mrfld_adc_single_conv()
93 req = mrfld_adc_requests[chan->channel]; in mrfld_adc_single_conv()
98 timeout = wait_for_completion_interruptible_timeout(&adc->completion, in mrfld_adc_single_conv()
105 ret = -ETIMEDOUT; in mrfld_adc_single_conv()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dstericsson,ab8500.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ST-Ericsson Analog Baseband AB8500 and AB8505
10 - Linus Walleij <linus.walleij@linaro.org>
13 the AB8500 "Analog Baseband" is the mixed-signals integrated circuit
14 handling power management (regulators), analog-to-digital conversion
15 (ADC), battery charging, fuel gauging of the battery, battery-backed
16 RTC, PWM, USB PHY and some GPIO lines in the ST-Ericsson U8500 platforms
21 USB charging handling has changed, and it has an embedded USB-to-serial
[all …]
H A Dx-powers,axp152.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: X-Powers AXP PMIC
10 - Chen-Yu Tsai <wens@csie.org>
13 - if:
18 - x-powers,axp152
19 - x-powers,axp202
20 - x-powers,axp209
[all …]
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A Drk3326-odroid-go2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Advance";
13 compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
15 analog_sticks: adc-joystick {
16 compatible = "adc-joystick";
17 io-channels = <&saradc 1>,
19 poll-interval = <60>;
20 #address-cells = <1>;
[all …]
H A Drk3326-odroid-go3.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Super";
13 compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326";
15 joystick_mux_controller: mux-controller {
16 compatible = "gpio-mux";
18 #mux-control-cells = <0>;
20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>,
24 joystick_mux: adc-mux {
[all …]
/openbmc/linux/arch/arm64/boot/dts/allwinner/
H A Daxp803.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
10 interrupt-controller;
11 #interrupt-cells = <1>;
13 ac_power_supply: ac-power {
14 compatible = "x-powers,axp803-ac-power-supply",
15 "x-powers,axp813-ac-power-supply";
19 axp_adc: adc {
20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
21 #io-channel-cells = <1>;
25 compatible = "x-powers,axp803-gpio", "x-powers,axp813-gpio";
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dcs35l32.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * cs35l32.c -- CS35L32 ALSA SoC audio driver
27 #include <sound/soc-dapm.h>
30 #include <dt-bindings/sound/cs35l32.h>
54 { 0x09, 0x20 }, /* Low Battery Threshold */
132 SND_SOC_DAPM_SWITCH("VMON ADC", CS35L32_PWRCTL2, 7, 1, &vmon_ctl),
133 SND_SOC_DAPM_SWITCH("IMON ADC", CS35L32_PWRCTL2, 6, 1, &imon_ctl),
134 SND_SOC_DAPM_SWITCH("VPMON ADC", CS35L32_PWRCTL2, 5, 1, &vpmon_ctl),
141 {"VMON ADC", NULL, "VSENSE"},
142 {"IMON ADC", NULL, "ISENSE"},
[all …]

1234567