Home
last modified time | relevance | path

Searched +full:charger +full:- +full:disable (Results 1 – 25 of 152) sorted by relevance

1234567

/linux-6.12.1/drivers/power/supply/
Drt5033_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery charger driver for RT5033
9 #include <linux/devm-helpers.h>
18 #include <linux/mfd/rt5033-private.h>
43 static int rt5033_get_charger_state(struct rt5033_charger *charger) in rt5033_get_charger_state() argument
45 struct regmap *regmap = charger->regmap; in rt5033_get_charger_state()
72 if (charger->otg) in rt5033_get_charger_state()
78 static int rt5033_get_charger_type(struct rt5033_charger *charger) in rt5033_get_charger_type() argument
80 struct regmap *regmap = charger->regmap; in rt5033_get_charger_type()
100 static int rt5033_get_charger_current_limit(struct rt5033_charger *charger) in rt5033_get_charger_current_limit() argument
[all …]
Dmax8903_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
27 struct gpio_desc *cen; /* Charger Enable input */
30 struct gpio_desc *chg; /* Charger status output */
32 struct gpio_desc *dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
40 POWER_SUPPLY_PROP_STATUS, /* Charger status output */
53 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property()
54 if (data->chg) { in max8903_get_property()
55 if (gpiod_get_value(data->chg)) in max8903_get_property()
57 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property()
[all …]
Dab8500_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
5 * Charger driver for AB8500
36 #include "ab8500-bm.h"
37 #include "ab8500-chargalg.h"
39 /* Charger constants */
94 /* Lowest charger voltage is 3.39V -> 0x4E */
107 /*External charger control*/
112 /* UsbLineStatus register - usb types */
174 * struct ab8500_charger_interrupts - ab8500 interrupts
[all …]
Disp1704_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ISP1704 USB Charger Detection driver
6 * Copyright (C) 2012 - 2013 Pali Rohár <pali@kernel.org>
63 return usb_phy_io_read(isp->phy, reg); in isp1704_read()
68 return usb_phy_io_write(isp->phy, val, reg); in isp1704_write()
73 gpiod_set_value(isp->enable_gpio, on); in isp1704_charger_set_power()
77 * Determine is the charging port DCP (dedicated charger) or CDP (Host/HUB
93 /* disable pulldowns */ in isp1704_charger_type()
103 /* Enable strong pull-up on DP (1.5K) and reset */ in isp1704_charger_type()
120 * ISP1704 detects PS/2 adapters as charger. To make sure the detected charger
[all …]
Dcharger-manager.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * This driver enables to monitor battery health and control charger
7 * during suspend-to-mem.
8 * Charger manager depends on other devices. Register this later than
23 #include <linux/power/charger-manager.h>
35 { "USB-HOST", EXTCON_USB_HOST },
40 { "FAST-CHARGER", EXTCON_CHG_USB_FAST },
41 { "SLOW-CHARGER", EXTCON_CHG_USB_SLOW },
49 { "CHARGE-DOWNSTREAM", EXTCON_CHG_USB_CDP },
78 /* About in-suspend (suspend-again) monitoring */
[all …]
Dbd99954-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ROHM BD99954 charger driver
20 * a) Trickle-charge with constant current (8).
21 * b) pre-charge with constant current (6)
22 * c) fast-charge, first with constant current (5) phase. After
30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------.
32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5)
34 * . + /- -- .
35 * . +`/- + .
36 * . o/- -: .
[all …]
Dsmb347-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Summit Microelectronics SMB347 Battery Charger Driver
23 #include <dt-bindings/power/summit,smb347-charger.h>
26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1
29 #define SMB3XX_TEMP_USE_DEFAULT -273
34 * reloaded from non-volatile registers after POR.
136 * struct smb347_charger - smb347 charger instance
142 * @id: SMB charger ID
146 * @usb_vbus_enabled: is USB VBUS powered by SMB charger
149 * @pre_charge_current: current (in uA) to use in pre-charging phase
[all …]
Dmax8997_charger.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max8997_charger.c - Power supply consumer driver for the Maxim 8997/8966
15 #include <linux/mfd/max8997-private.h>
17 #include <linux/devm-helpers.h>
46 POWER_SUPPLY_PROP_ONLINE, /* charger is active or not */
49 /* Note that the charger control is done by a current regulator "CHARGER" */
54 struct charger_data *charger = power_supply_get_drvdata(psy); in max8997_battery_get_property() local
55 struct i2c_client *i2c = charger->iodev->i2c; in max8997_battery_get_property()
61 val->intval = 0; in max8997_battery_get_property()
66 val->intval = POWER_SUPPLY_STATUS_FULL; in max8997_battery_get_property()
[all …]
Daxp288_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * axp288_charger.c - X-power AXP288 PMIC Charger driver
5 * Copyright (C) 2016-2017 Hans de Goede <hdegoede@redhat.com>
160 else if (cc > info->max_cc) in axp288_charger_set_cc()
161 cc = info->max_cc; in axp288_charger_set_cc()
163 reg_val = (cc - CHRG_CCCV_CC_OFFSET) / CHRG_CCCV_CC_LSB_RES; in axp288_charger_set_cc()
167 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cc()
171 info->cc = cc; in axp288_charger_set_cc()
197 ret = regmap_update_bits(info->regmap, in axp288_charger_set_cv()
202 info->cv = cv; in axp288_charger_set_cv()
[all …]
Dmax77650-charger.c1 // SPDX-License-Identifier: GPL-2.0
6 // Battery charger driver for MAXIM 77650/77651 charger/power-supply.
24 /* Charger is OFF. */
26 /* Charger is in prequalification mode. */
28 /* Charger is in fast-charge constant current mode. */
30 /* Charger is in JEITA modified fast-charge constant-current mode. */
32 /* Charger is in fast-charge constant-voltage mode. */
34 /* Charger is in JEITA modified fast-charge constant-voltage mode. */
36 /* Charger is in top-off mode. */
38 /* Charger is in JEITA modified top-off mode. */
[all …]
Dmax8925_power.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2009-2010 Marvell International Ltd.
87 struct max8925_chip *chip = info->chip; in __set_charger()
89 /* enable charger in platform */ in __set_charger()
90 if (info->set_charger) in __set_charger()
91 info->set_charger(1); in __set_charger()
92 /* enable charger */ in __set_charger()
93 max8925_set_bits(info->gpm, MAX8925_CHG_CNTL1, 1 << 7, 0); in __set_charger()
95 /* disable charge */ in __set_charger()
96 max8925_set_bits(info->gpm, MAX8925_CHG_CNTL1, 1 << 7, 1 << 7); in __set_charger()
[all …]
/linux-6.12.1/include/linux/power/
Dcharger-manager.h1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Charger Manager.
8 * monitor charging even in the context of suspend-to-RAM with
45 * @wq: the workqueue to control charger according to the state of
46 * charger cable. If charger cable is attached, enable charger.
47 * But if charger cable is detached, disable charger.
49 * (External Connector) when charger cable is attached/detached.
50 * @attached: the state of charger cable.
51 * true: the charger cable is attached
52 * false: the charger cable is detached
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/
Dactive-semi,act8945a-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/active-semi,act8945a-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Active-semi ACT8945A Charger Function
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
17 const: active-semi,act8945a-charger
22 active-semi,chglev-gpios:
26 active-semi,lbo-gpios:
[all …]
Dqcom,pm8941-charger.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/qcom,pm8941-charger.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Switch-Mode Battery Charger and Boost
10 - Sebastian Reichel <sre@kernel.org>
15 - qcom,pm8226-charger
16 - qcom,pm8941-charger
23 - description: charge done
24 - description: charge fast mode
[all …]
Dsbs,sbs-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
16 - $ref: power-supply.yaml#
21 - items:
22 - enum:
23 - ti,bq20z45
24 - ti,bq20z65
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/rtc/
Ddallas,ds1390.txt1 * Dallas DS1390 SPI Serial Real-Time Clock
4 - compatible: Should contain "dallas,ds1390".
5 - reg: SPI address for chip
8 - trickle-resistor-ohms : Selected resistor for trickle charger
10 Should be given if trickle charger should be enabled
11 - trickle-diode-disable : Do not use internal trickle charger diode
12 Should be given if internal trickle charger diode should be disabled
16 trickle-resistor-ohms = <250>;
Drtc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 pattern: "^rtc(@.*|-([0-9]|[1-9][0-9]+))?$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
31 The capacitive load of the quartz(x-tal), expressed in femto
35 start-year:
41 trickle-diode-disable:
[all …]
Drtc-ds1307.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
15 - enum:
16 - dallas,ds1307
17 - dallas,ds1308
18 - dallas,ds1337
19 - dallas,ds1338
[all …]
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dsc7180-trogdor-coachz-r1.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "sc7180-trogdor-coachz.dtsi"
13 model = "Google CoachZ (rev1 - 2)";
14 compatible = "google,coachz-rev1", "google,coachz-rev2", "qcom,sc7180";
18 * CoachZ rev1 is stuffed with a 47k NTC as charger thermistor which currently
19 * is not supported by the PM6150 ADC driver. Disable the charger thermal zone
27 /delete-node/ channel@4e;
28 /delete-node/ channel@4f;
34 /delete-node/ charger-thermistor@0;
[all …]
Dsc7180-trogdor-pompom-r2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "sc7180-trogdor-pompom.dtsi"
14 compatible = "google,pompom-rev2", "qcom,sc7180";
18 * Pompom rev2 is stuffed with a 47k NTC as charger thermistor which currently
19 * is not supported by the PM6150 ADC driver. Disable the charger thermal zone
27 /delete-node/ channel@4f;
31 /delete-node/ charger-thermistor@0;
Dsc7180-trogdor-pompom-r1.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
10 #include "sc7180-trogdor-pompom.dtsi"
12 /delete-node/ &keyboard_controller;
13 #include <arm/cros-ec-keyboard.dtsi>
17 compatible = "google,pompom-rev1", "qcom,sc7180";
21 * Pompom rev1 is stuffed with a 47k NTC as charger thermistor which currently
22 * is not supported by the PM6150 ADC driver. Disable the charger thermal zone
30 /delete-node/ channel@4f;
34 /delete-node/ charger-thermistor@0;
[all …]
Dsc7180-trogdor-lazor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include "sc7180-trogdor-clamshell.dtsi"
11 semtech,cs0-ground;
12 semtech,combined-sensors = <3>;
14 semtech,startup-sensor = <0>;
15 semtech,proxraw-strength = <8>;
16 semtech,avg-pos-strength = <64>;
24 * Lazor is stuffed with a 47k NTC as charger thermistor which currently is
25 * not supported by the PM6150 ADC driver. Disable the charger thermal zone
34 clock-frequency = <400000>;
[all …]
Dmsm8916-samsung-fortuna-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include "msm8916-modem-qdsp6.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
19 stdout-path = "serial0";
22 reserved-memory {
24 tz-apps@85a00000 {
[all …]
/linux-6.12.1/drivers/regulator/
Dmax77693-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
3 // max77693.c - Regulator driver for the Maxim 77693 and 77843
5 // Copyright (C) 2013-2015 Samsung Electronics
19 #include <linux/mfd/max77693-common.h>
20 #include <linux/mfd/max77693-private.h>
21 #include <linux/mfd/max77843-private.h>
46 * MAX77693 CHARGER regulator - Min : 20mA, Max : 2580mA, step : 20mA
48 * 0x04 ~ 0x7E = (60 + (X - 3) * 20) mA
58 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit()
59 unsigned int chg_max_uA = rdev->constraints->max_uA; in max77693_chg_get_current_limit()
[all …]
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-power-ltc4162l1 What: /sys/class/power_supply/ltc4162-l/charge_status
18 What: /sys/class/power_supply/ltc4162-l/ibat
22 Battery input current as measured by the charger. Negative value
29 What: /sys/class/power_supply/ltc4162-l/vbat
33 Battery voltage as measured by the charger.
39 What: /sys/class/power_supply/ltc4162-l/vbat_avg
43 Battery voltage, averaged over time, as measured by the charger.
49 What: /sys/class/power_supply/ltc4162-l/force_telemetry
65 What: /sys/class/power_supply/ltc4162-l/arm_ship_mode
69 The charger will normally drain the battery while inactive,
[all …]

1234567