Home
last modified time | relevance | path

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

1234567891011

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dact8945a-charger.txt1 Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
4 - compatible: "active-semi,act8945a-charger".
5 - active-semi,chglev-gpios: charge current level phandle with args
7 - active-semi,lbo-gpios: specify the low battery voltage detect phandle
9 - interrupts: <a b> where a is the interrupt number and b is a
14 - active-semi,input-voltage-threshold-microvolt: unit: mV;
15 Specifies the charger's input over-voltage threshold value;
17 - active-semi,precondition-timeout: unit: minutes;
18 Specifies the charger's PRECONDITION safety timer setting value;
19 The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
[all …]
Dqcom_smbb.txt1 Qualcomm Switch-Mode Battery Charger and Boost
4 - compatible:
8 - "qcom,pm8941-charger"
10 - reg:
12 Value type: <prop-encoded-array>
15 - interrupts:
17 Value type: <prop-encoded-array>
21 - charge done
22 - charge fast mode
23 - charge trickle mode
[all …]
Dqcom,coincell-charger.txt1 Qualcomm Coincell Charger:
7 - compatible:
10 Definition: must be: "qcom,pm8941-coincell"
12 - reg:
15 Definition: base address of the coincell charger registers
17 - qcom,rset-ohms:
20 Definition: resistance (in ohms) for current-limiting resistor
23 - qcom,vset-millivolts:
29 - qcom,charger-disable:
34 This charger is a sub-node of one of the 8941 PMIC blocks, and is specified
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dpm2301_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Power supply driver for ST Ericsson pm2xxx_charger charger
21 #include <linux/mfd/abx500/ab8500-bm.h>
109 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) { in set_lpn_pin()
110 gpio_set_value(pm2->lpn_pin, 1); in set_lpn_pin()
117 if (!pm2->ac.charger_connected && gpio_is_valid(pm2->lpn_pin)) in clear_lpn_pin()
118 gpio_set_value(pm2->lpn_pin, 0); in clear_lpn_pin()
126 pm_runtime_get_sync(pm2->dev); in pm2xxx_reg_read()
128 ret = i2c_smbus_read_i2c_block_data(pm2->config.pm2xxx_i2c, reg, in pm2xxx_reg_read()
131 dev_err(pm2->dev, "Error reading register at 0x%x\n", reg); in pm2xxx_reg_read()
[all …]
Dab8500_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
5 * Charger driver for AB8500
31 #include <linux/mfd/abx500/ab8500-bm.h>
37 /* Charger constants */
92 /* Lowest charger voltage is 3.39V -> 0x4E */
105 /*External charger control*/
110 /* UsbLineStatus register - usb types */
172 * struct ab8500_charger_interrupts - ab8500 interupts
216 * struct ab8500_charger - ab8500 Charger device information
[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 …]
/kernel/linux/linux-6.6/drivers/power/supply/
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 …]
Drt5033_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery charger driver for RT5033
14 #include <linux/mfd/rt5033-private.h>
31 static int rt5033_get_charger_state(struct rt5033_charger *charger) in rt5033_get_charger_state() argument
33 struct regmap *regmap = charger->regmap; in rt5033_get_charger_state()
62 static int rt5033_get_charger_type(struct rt5033_charger *charger) in rt5033_get_charger_type() argument
64 struct regmap *regmap = charger->regmap; in rt5033_get_charger_type()
84 static int rt5033_get_charger_current_limit(struct rt5033_charger *charger) in rt5033_get_charger_current_limit() argument
86 struct regmap *regmap = charger->regmap; in rt5033_get_charger_current_limit()
100 static int rt5033_get_charger_const_voltage(struct rt5033_charger *charger) in rt5033_get_charger_const_voltage() argument
[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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/
Dti,bq32k.txt1 * TI BQ32000 I2C Serial Real-Time Clock
4 - compatible: Should contain "ti,bq32000".
5 - reg: I2C 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 = <1120>;
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-9a-f])*$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
32 The capacitive load of the quartz(x-tal), expressed in femto
36 start-year:
42 trickle-diode-disable:
[all …]
Drtc-ds1307.txt4 - compatible: should be one of:
23 - reg: I2C bus address of the device
26 - interrupts: rtc alarm interrupt.
27 - clock-output-names: From common clock binding to override the default output
29 - wakeup-source: Enables wake up of host system on alarm
30 - trickle-resistor-ohms : ds1339, ds1340 and ds 1388 only
31 Selected resistor for trickle charger
33 Should be given if trickle charger should be enabled
34 - aux-voltage-chargeable: ds1339, ds1340, ds1388 and rx8130 only
40 - trickle-diode-disable : ds1339, ds1340 and ds1388 only
[all …]
/kernel/linux/linux-6.6/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 …]

1234567891011