Searched +full:mapphone +full:- +full:cpcap +full:- +full:charger (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/ |
D | cpcap-charger.yaml | 1 # 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 …]
|
/linux-6.12.1/arch/arm/boot/dts/ti/omap/ |
D | motorola-cpcap-mapphone.dtsi | 1 // 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 …]
|
D | motorola-mapphone-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 4 #include <dt-bindings/input/input.h> 6 #include "motorola-cpcap-mapphone.dtsi" 10 * We seem to have only 1021 MB accessible, 1021 - 1022 is locked, 11 * then 1023 - 1024 seems to contain mbm. 18 /* Poweroff GPIO probably connected to CPCAP */ 19 gpio-poweroff { 20 compatible = "gpio-poweroff"; 21 pinctrl-0 = <&poweroff_gpio>; [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | motorola-cpcap.c | 1 // 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 …]
|
/linux-6.12.1/drivers/power/supply/ |
D | cpcap-battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Battery driver for CPCAP PMIC 7 * Some parts of the code based on earlier Motorola mapphone Linux kernel 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" 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 …]
|
D | cpcap-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Motorola CPCAP PMIC battery charger driver 10 * Copyright (C) 2009-2010 Motorola, Inc. 30 #include <linux/mfd/motorola-cpcap.h> 36 * and values for CPCAP are different, but some of the internal components seem 37 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1 42 #define CPCAP_REG_CRM_CHRG_LED_EN BIT(13) /* Charger LED */ 89 * values in "Table 8-3. Charge Path Regulator Current Limit 180 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage() 183 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage() [all …]
|