Home
last modified time | relevance | path

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

12

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dcpcap-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Motorola CPCAP PMIC battery
11 - Tony Lindgren <tony@atomide.com>
12 - Sebastian Reichel <sre@kernel.org>
15 Motorola CPCAP is a PMIC found in some mobile phones, e.g.
16 the Droid 4. This binding describes its battery fuel gauge
17 sub-function.
[all …]
Dcpcap-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
4 ---
5 $id: http://devicetree.org/schemas/power/supply/cpcap-charger.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Motorola CPCAP PMIC charger
11 - Tony Lindgren <tony@atomide.com>
12 - Sebastian Reichel <sre@kernel.org>
15 Motorola CPCAP is a PMIC found in some mobile phones, e.g.
16 the Droid 4. This binding describes its battery charger
17 sub-function.
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dcpcap-battery.txt1 Motorola CPCAP PMIC battery driver binding
4 - compatible: Shall be "motorola,cpcap-battery"
5 - interrupts: Interrupt specifier for each name in interrupt-names
6 - interrupt-names: Should contain the following entries:
8 - io-channels: IIO ADC channel specifier for each name in io-channel-names
9 - io-channel-names: Should contain the following entries:
11 - power-supplies: List of phandles for power-supplying devices, as
17 cpcap_battery: battery {
18 compatible = "motorola,cpcap-battery";
19 interrupts-extended = <
[all …]
Dcpcap-charger.txt1 Motorola CPCAP PMIC battery charger binding
4 - compatible: Shall be "motorola,mapphone-cpcap-charger"
5 - interrupts: Interrupt specifier for each name in interrupt-names
6 - interrupt-names: Should contain the following entries:
10 - io-channels: IIO ADC channel specifier for each name in io-channel-names
11 - io-channel-names: Should contain the following entries:
15 - mode-gpios: Optionally CPCAP charger can have a companion wireless
22 compatible = "motorola,mapphone-cpcap-charger";
23 interrupts-extended = <
24 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/
Dmotorola-cpcap-mapphone.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Common CPCAP configuration used on Motorola phones
7 cpcap: pmic@0 { label
8 compatible = "motorola,cpcap", "st,6556002";
10 interrupt-parent = <&gpio1>;
12 interrupt-controller;
13 #interrupt-cells = <2>;
14 #address-cells = <1>;
15 #size-cells = <0>;
16 spi-max-frequency = <9600000>;
[all …]
Dmotorola-mapphone-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
6 #include "motorola-cpcap-mapphone.dtsi"
10 stdout-path = &uart3;
19 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
20 * then 1023 - 1024 seems to contain mbm.
27 /* Poweroff GPIO probably connected to CPCAP */
28 gpio-poweroff {
29 compatible = "gpio-poweroff";
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dmotorola-cpcap-mapphone.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Common CPCAP configuration used on Motorola phones
7 cpcap: pmic@0 { label
8 compatible = "motorola,cpcap", "st,6556002";
10 interrupt-parent = <&gpio1>;
12 interrupt-controller;
13 #interrupt-cells = <2>;
14 #address-cells = <1>;
15 #size-cells = <0>;
16 spi-max-frequency = <9600000>;
[all …]
Dmotorola-mapphone-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include <dt-bindings/input/input.h>
6 #include "motorola-cpcap-mapphone.dtsi"
10 stdout-path = &uart3;
19 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked,
20 * then 1023 - 1024 seems to contain mbm.
27 /* Poweroff GPIO probably connected to CPCAP */
28 gpio-poweroff {
29 compatible = "gpio-poweroff";
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Dmotorola,cpcap-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Motorola CPCAP PMIC ADC binding
10 - Tony Lindgren <tony@atomide.com>
13 On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC
14 has ADCs that are used for battery charging and USB PHY VBUS and ID pin
20 - motorola,cpcap-adc
21 - motorola,mapphone-cpcap-adc
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/
Dmotorola,cpcap-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Motorola CPCAP PMIC ADC
10 - Tony Lindgren <tony@atomide.com>
13 On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC
14 has ADCs that are used for battery charging and USB PHY VBUS and ID pin
20 - motorola,cpcap-adc
21 - motorola,mapphone-cpcap-adc
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dmotorola-cpcap.txt1 Motorola CPCAP PMIC device tree binding
4 - compatible : One or both of "motorola,cpcap" or "ste,6556002"
5 - reg : SPI chip select
6 - interrupts : The interrupt line the device is connected to
7 - interrupt-controller : Marks the device node as an interrupt controller
8 - #interrupt-cells : The number of cells to describe an IRQ, should be 2
9 - #address-cells : Child device offset number of cells, should be 1
10 - #size-cells : Child device size number of cells, should be 0
11 - spi-max-frequency : Typically set to 3000000
12 - spi-cs-high : SPI chip select direction
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dmotorola-cpcap.txt1 Motorola CPCAP PMIC device tree binding
4 - compatible : One or both of "motorola,cpcap" or "ste,6556002"
5 - reg : SPI chip select
6 - interrupts : The interrupt line the device is connected to
7 - interrupt-controller : Marks the device node as an interrupt controller
8 - #interrupt-cells : The number of cells to describe an IRQ, should be 2
9 - #address-cells : Child device offset number of cells, should be 1
10 - #size-cells : Child device size number of cells, should be 0
11 - spi-max-frequency : Typically set to 3000000
12 - spi-cs-high : SPI chip select direction
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dcpcap-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Motorola CPCAP PMIC battery charger driver
10 * Copyright (C) 2009-2010 Motorola, Inc.
31 #include <linux/mfd/motorola-cpcap.h>
36 * MC13783UG.pdf chapter "8.5 Battery Interface Register Summary". The registers
37 * and values for CPCAP are different, but some of the internal components seem
38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1
90 * values in "Table 8-3. Charge Path Regulator Current Limit
181 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage()
184 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage()
[all …]
Dcpcap-battery.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery driver for CPCAP PMIC
10 * Copyright (C) 2009-2010 Motorola, Inc.
23 #include <linux/nvmem-consumer.h>
28 #include <linux/mfd/motorola-cpcap.h>
32 * map to MC13783UG.pdf "Table 5-19. Register 13, Power Control 0"
44 #define CPCAP_REG_BPEOL_BIT_BATTDETEN BIT(1) /* Enable battery detect */
52 * the coulomb counter like cpcap does. So for now, we use the twl6030 style
141 #define CPCAP_NO_BATTERY -400
153 return &ddata->state[state]; in cpcap_battery_get_state()
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
4 power_supply-y := power_supply_core.o
5 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
6 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
8 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
9 obj-$(CONFIG_POWER_SUPPLY_HWMON) += power_supply_hwmon.o
10 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
12 obj-$(CONFIG_APM_POWER) += apm_power.o
13 obj-$(CONFIG_AXP20X_POWER) += axp20x_usb_power.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
36 battery class devices.
39 tristate "Generic battery support using IIO"
42 Say Y here to enable support for the generic battery driver
51 which include a battery charger and a boost converter.
54 tristate "MAX8925 battery charger support"
57 Say Y here to enable support for the battery charger in the Maxim
61 tristate "WM831X backup battery charger support"
64 Say Y here to enable support for the backup battery charger
87 tristate "Marvell 88PM860x battery driver"
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dcpcap-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Motorola CPCAP PMIC battery charger driver
10 * Copyright (C) 2009-2010 Motorola, Inc.
31 #include <linux/mfd/motorola-cpcap.h>
36 * MC13783UG.pdf chapter "8.5 Battery Interface Register Summary". The registers
37 * and values for CPCAP are different, but some of the internal components seem
38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1
90 * values in "Table 8-3. Charge Path Regulator Current Limit
180 /* No battery always shows temperature of -40000 */
186 channel = ddata->channels[CPCAP_CHARGER_IIO_BATTDET]; in cpcap_charger_battery_found()
[all …]
Dcpcap-battery.c2 * Battery driver for CPCAP PMIC
9 * Copyright (C) 2009-2010 Motorola, Inc.
34 #include <linux/mfd/motorola-cpcap.h>
38 * map to MC13783UG.pdf "Table 5-19. Register 13, Power Control 0"
50 #define CPCAP_REG_BPEOL_BIT_BATTDETEN BIT(1) /* Enable battery detect */
58 * the coulomb counter like cpcap does. So for now, we use the twl6030 style
139 #define CPCAP_NO_BATTERY -400
148 return &ddata->state[state]; in cpcap_battery_get_state()
169 channel = ddata->channels[CPCAP_BATTERY_IIO_BATTDET]; in cpcap_charger_battery_temperature()
172 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_battery_temperature()
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
4 power_supply-y := power_supply_core.o
5 power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o
6 power_supply-$(CONFIG_LEDS_TRIGGERS) += power_supply_leds.o
8 obj-$(CONFIG_POWER_SUPPLY) += power_supply.o
9 obj-$(CONFIG_POWER_SUPPLY_HWMON) += power_supply_hwmon.o
10 obj-$(CONFIG_GENERIC_ADC_BATTERY) += generic-adc-battery.o
12 obj-$(CONFIG_PDA_POWER) += pda_power.o
13 obj-$(CONFIG_APM_POWER) += apm_power.o
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
45 battery class devices.
48 tristate "Generic battery support using IIO"
51 Say Y here to enable support for the generic battery driver
55 tristate "MAX8925 battery charger support"
58 Say Y here to enable support for the battery charger in the Maxim
62 tristate "WM831X backup battery charger support"
65 Say Y here to enable support for the backup battery charger
88 tristate "Marvell 88PM860x battery driver"
91 Say Y here to enable battery monitor for Marvell 88PM860x chip.
[all …]
/kernel/linux/linux-6.6/drivers/mfd/
Dmotorola-cpcap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Motorola CPCAP PMIC core driver
19 #include <linux/mfd/motorola-cpcap.h>
43 return -EINVAL; in cpcap_sense_irq()
57 return cpcap_sense_irq(regmap, virq - irq_base); in cpcap_sense_virq()
61 static int cpcap_check_revision(struct cpcap_ddata *cpcap) in cpcap_check_revision() argument
66 ret = cpcap_get_vendor(&cpcap->spi->dev, cpcap->regmap, &vendor); in cpcap_check_revision()
70 ret = cpcap_get_revision(&cpcap->spi->dev, cpcap->regmap, &rev); in cpcap_check_revision()
74 dev_info(&cpcap->spi->dev, "CPCAP vendor: %s rev: %i.%i (%x)\n", in cpcap_check_revision()
80 dev_info(&cpcap->spi->dev, in cpcap_check_revision()
[all …]
/kernel/linux/linux-5.10/drivers/mfd/
Dmotorola-cpcap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Motorola CPCAP PMIC core driver
19 #include <linux/mfd/motorola-cpcap.h>
43 return -EINVAL; in cpcap_sense_irq()
57 return cpcap_sense_irq(regmap, virq - irq_base); in cpcap_sense_virq()
61 static int cpcap_check_revision(struct cpcap_ddata *cpcap) in cpcap_check_revision() argument
66 ret = cpcap_get_vendor(&cpcap->spi->dev, cpcap->regmap, &vendor); in cpcap_check_revision()
70 ret = cpcap_get_revision(&cpcap->spi->dev, cpcap->regmap, &rev); in cpcap_check_revision()
74 dev_info(&cpcap->spi->dev, "CPCAP vendor: %s rev: %i.%i (%x)\n", in cpcap_check_revision()
80 dev_info(&cpcap->spi->dev, in cpcap_check_revision()
[all …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dcpcap-adc.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 2009-2010 Motorola, Inc.
27 #include <linux/mfd/motorola-cpcap.h>
86 * struct cpcap_adc_ato - timing settings for cpcap adc
88 * Unfortunately no cpcap documentation available, please document when
103 * struct cpcap-adc - cpcap adc device driver data
104 * @reg: cpcap regmap
106 * @vendor: cpcap vendor
125 * enum cpcap_adc_channel - cpcap adc channels
129 CPCAP_ADC_AD0, /* Battery temperature */
[all …]
/kernel/linux/linux-6.6/drivers/iio/adc/
Dcpcap-adc.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright (C) 2009-2010 Motorola, Inc.
27 #include <linux/mfd/motorola-cpcap.h>
86 * struct cpcap_adc_ato - timing settings for cpcap adc
88 * Unfortunately no cpcap documentation available, please document when
103 * struct cpcap_adc - cpcap adc device driver data
104 * @reg: cpcap regmap
106 * @vendor: cpcap vendor
125 * enum cpcap_adc_channel - cpcap adc channels
129 CPCAP_ADC_AD0, /* Battery temperature */
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 bool "ST-Ericsson AB8500 GPADC driver"
16 internal voltages, convert accessory and battery, AC (charger, mains)
33 Say yes here to build support for Analog Devices AD4130-8 SPI analog
44 Say yes here to build support for Analog Devices AD7091R-5 ADC.
47 tristate "Analog Devices AD7124 and similar sigma-delta ADCs driver"
51 Say yes here to build support for Analog Devices AD7124-4 and AD7124-8
83 tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System"
88 Lithium Ion Battery Monitoring System.
126 tristate "Analog Devices AD7476 1-channel ADCs driver and other similar devices from AD and TI"
[all …]

12