/Linux-v6.1/Documentation/devicetree/bindings/power/supply/ |
D | gpio-charger.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/power/supply/gpio-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 19 const: gpio-charger 21 charger-type: 23 - unknown 24 - battery 25 - ups [all …]
|
D | qcom,pm8941-charger.yaml | 1 # 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 …]
|
D | summit,smb347-charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Heidelberg <david@ixit.cz> 11 - Dmitry Osipenko <digetx@gmail.com> 16 - summit,smb345 17 - summit,smb347 18 - summit,smb358 26 monitored-battery: [all …]
|
D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Binding for TI bq2415x Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24150 20 - ti,bq24150a 21 - ti,bq24151 22 - ti,bq24151a [all …]
|
D | bq24257.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Binding for bq24250, bq24251 and bq24257 Li-Ion Charger 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 19 - ti,bq24250 20 - ti,bq24251 21 - ti,bq24257 29 ti,battery-regulation-voltage: [all …]
|
D | maxim,max8903.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sebastian Reichel <sre@kernel.org> 13 - $ref: power-supply.yaml# 19 dok-gpios: 23 uok-gpios: 25 description: Valid USB power has been detected (active low, input) 27 cen-gpios: 29 description: Charge enable pin (active low, output) [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | sysfs-class-power | 5 Contact: linux-pm@vger.kernel.org 14 Contact: linux-pm@vger.kernel.org 23 Contact: linux-pm@vger.kernel.org 32 Contact: linux-pm@vger.kernel.org 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 39 **Battery and USB properties** 43 Contact: linux-pm@vger.kernel.org 47 Reports an average IBAT current reading for the battery, over 52 USB: 54 Reports an average IBUS current reading over a fixed period. [all …]
|
/Linux-v6.1/drivers/power/supply/ |
D | smb347-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <dt-bindings/power/summit,smb347-charger.h> 26 #define SMB3XX_SOFT_TEMP_COMPENSATE_DEFAULT -1 28 /* Use default factory programmed value for hard/soft temperature limit */ 29 #define SMB3XX_TEMP_USE_DEFAULT -273 34 * reloaded from non-volatile registers after POR. 136 * struct smb347_charger - smb347 charger instance 140 * @usb: power_supply instance for USB power 141 * @usb_rdev: USB VBUS regulator device 144 * @usb_online: is USB input connected [all …]
|
D | sc2731_charger.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/usb/phy.h> 46 /* Default current definition (unit is mA) */ 64 u32 limit; member 69 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge() 72 regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_stop_charge() 80 /* Enable charger constant current mode */ in sc2731_charger_start_charge() 81 ret = regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge() 87 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge() 92 u32 limit) in sc2731_charger_set_current_limit() argument [all …]
|
D | gpio-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 18 #include <linux/power/gpio-charger.h> 59 int ndescs = gpio_charger->current_limit_gpios->ndescs; in set_charge_current_limit() 60 struct gpio_desc **gpios = gpio_charger->current_limit_gpios->desc; in set_charge_current_limit() 63 if (!gpio_charger->current_limit_map_size) in set_charge_current_limit() 64 return -EINVAL; in set_charge_current_limit() 66 for (i = 0; i < gpio_charger->current_limit_map_size; i++) { in set_charge_current_limit() 67 if (gpio_charger->current_limit_map[i].limit_ua <= val) in set_charge_current_limit() 70 mapping = gpio_charger->current_limit_map[i]; in set_charge_current_limit() [all …]
|
D | rk817_charger.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <linux/devm-helpers.h> 33 * Max charging current read to/written from hardware register. 35 * current, this is per the datasheet. 68 * soc - state of charge - like the BSP this is stored as a percentage, 69 * to the thousandth. BSP has a display state of charge (dsoc) and a 70 * remaining state of charge (rsoc). This value will be used for both 72 * charge and just report it as it is. Note for example an soc of 100 115 #define CURRENT_TO_ADC(current, samp_res) \ argument 116 (current * samp_res / 172) [all …]
|
D | ab8500_chargalg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 34 #include "ab8500-bm.h" 35 #include "ab8500-chargalg.h" 40 /* End-of-charge criteria counter */ 50 * This is the battery capacity limit that will trigger a new 169 * struct ab8500_charge_curr_maximization - Charger maximization parameters 170 * @original_iset_ua: the non optimized/maximised charger current 171 * @current_iset_ua: the charging current used at this moment 172 * @condition_cnt: number of iterations needed before a new charger current [all …]
|
D | ab8500-bm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * USB/ULPI register offsets 61 * Charger / USB control register offsets 124 /* Main charge i/p current */ 233 /* BatCtrl Current Source Constants */ 253 /* USB Power Path constants for ab8540 */ 267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds 274 * @high_curr_time: Time current has to be high to go to recovery 276 * @accu_high_curr_ua: FG accumulation time in high current mode 277 * @high_curr_threshold_ua: High current threshold, in uA [all …]
|
D | axp288_charger.c | 1 // 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> 18 #include <linux/usb/otg.h> 134 /* SDP/CDP/DCP USB charging cable notifications */ 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() [all …]
|
D | wm831x_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/usb/phy.h> 23 struct power_supply *usb; member 46 val->intval = 1; in wm831x_power_check_online() 48 val->intval = 0; in wm831x_power_check_online() 61 val->intval = ret; in wm831x_power_read_voltage() 73 struct wm831x_power *wm831x_power = dev_get_drvdata(psy->dev.parent); in wm831x_wall_get_prop() 74 struct wm831x *wm831x = wm831x_power->wm831x; in wm831x_wall_get_prop() 85 ret = -EINVAL; in wm831x_wall_get_prop() 98 * USB Power [all …]
|
D | ucs1002_power.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for UCS1002 Programmable USB Port Power Controller 27 * The Total Accumulated Charge registers store the total accumulated 28 * charge delivered from the VS source to a portable device. The total 88 /* Current Limit Register */ 129 ret = regmap_read(info->regmap, UCS1002_REG_OTHER_STATUS, ®); in ucs1002_get_online() 133 val->intval = !!(reg & F_CHG_ACT); in ucs1002_get_online() 144 * For Total Accumulated Charge Middle Low Byte register, addr in ucs1002_get_charge() 153 * For Total Accumulated Charge Low Byte register, addr 04h, in ucs1002_get_charge() 186 ret = regmap_bulk_read(info->regmap, UCS1002_REG_TOTAL_ACC_CHARGE, in ucs1002_get_charge() [all …]
|
D | qcom_smbb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * This driver is for the multi-block Switch-Mode Battery Charger and Boost 6 * integrated, single-cell lithium-ion battery charger. 8 * Sub-components: 9 * - Charger core 10 * - Buck 11 * - DC charge-path 12 * - USB charge-path 13 * - Battery interface 14 * - Boost (not implemented) [all …]
|
D | bd99954-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * Curve (1) represents charging current. 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 24 * voltage phase until charging current has dropped to termination 30 *(4)` `.` ` ` ` ` ` ` ` ` ` ` ` ` ` ----------------------------. 32 * . o----+/:/ ` ` ` ` ` ` ` ` ` ` ` ` `.` ` (5) 34 * . + /- -- . 35 * . +`/- + . [all …]
|
D | cros_usbpd-charger.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Power supply driver for ChromeOS EC based USB PD Charger. 5 * Copyright (c) 2014 - 2018 Google, Inc 25 #define DRV_NAME "cros-usbpd-charger" 86 /* Input voltage/current limit in mV/mA. Default to none. */ 92 return port->port_number >= port->charger->num_usbpd_ports; in cros_usbpd_charger_port_is_dedicated() 103 struct cros_ec_dev *ec_dev = charger->ec_dev; in cros_usbpd_charger_ec_command() 109 return -ENOMEM; in cros_usbpd_charger_ec_command() 111 msg->version = version; in cros_usbpd_charger_ec_command() 112 msg->command = ec_dev->cmd_offset + command; in cros_usbpd_charger_ec_command() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 power supply (batteries, AC, USB) monitoring by userspace 25 power supply device (current, voltage, temperature) to be 37 one or two external power supplies (AC/USB) connected to main and 113 tristate "Active-semi ACT8945A charger driver" 117 Active-semi ActivePath ACT8945A charger. 167 tristate "DS2782/DS2786 standalone gas-gauge" 171 gas-gauge. 199 tristate "Sharp SL-6000 (tosa) battery" 203 SL-6000 (tosa) models. [all …]
|
/Linux-v6.1/include/linux/mfd/wm8350/ |
D | supply.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * supply.h -- Power Supply Driver for Wolfson WM8350 PMIC 22 * R168 (0xA8) - Battery Charger Control 1 39 * R169 (0xA9) - Battery Charger Control 2 54 * R170 (0xAA) - Battery Charger Control 3 84 #define WM8350_CHG_EOC_mA(x) (((x - 10) & 0x7) << 10) 108 /* charger state machine policy - set in machine driver */ 109 int eoc_mA; /* end of charge current (mA) */ 110 int charge_mV; /* charge voltage */ 111 int fast_limit_mA; /* fast charge current limit */ [all …]
|
/Linux-v6.1/Documentation/power/ |
D | power_supply_class.rst | 8 properties to user-space. 26 AC/USB power supply online status. (Note that specific details of the 60 +--------------------------------------------------------------------------+ 61 | **Charge/Energy/Capacity - how to not confuse** | 62 +--------------------------------------------------------------------------+ 63 | **Because both "charge" (µAh) and "energy" (µWh) represents "capacity" | 66 | - `CHARGE_*` | 68 | - `ENERGY_*` | 70 | - `CAPACITY` | 72 +--------------------------------------------------------------------------+ [all …]
|
/Linux-v6.1/include/linux/power/ |
D | bq2415x_charger.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (C) 2011-2013 Pali Rohár <pali@kernel.org> 14 * value is -1 then default chip value (specified in datasheet) will be 17 * Value resistor_sense is needed for configuring charge and 18 * termination current. If it is less or equal to zero, configuring charge 19 * and termination current will not be possible. 23 * POWER_SUPPLY_PROP_CURRENT_MAX when current changed. 26 /* Supported modes with maximal current limit */ 30 BQ2415X_MODE_HOST_CHARGER, /* usb host/hub charger (500mA) */
|
/Linux-v6.1/include/linux/usb/ |
D | tcpm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright 2015-2017 Google, Inc 10 #include <linux/usb/typec.h> 54 #define TCPC_MUX_USB_ENABLED BIT(0) /* USB enabled */ 59 * struct tcpc_dev - Port configuration and callback functions 61 * @get_vbus: Called to read current VBUS state 64 * and cc=Rp-def. This allows the tcpm to provide a fallback 65 * current-limit detection method for the cc=Rp-def case. 71 * @get_cc: Called to read current CC pin values 77 * Optional; called to set current limit as negotiated [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | imx6dl-b1x5pv2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 or MIT 6 // Copyright 2018-2021 General Electric Company 7 // Copyright 2018-2021 Collabora 9 #include <dt-bindings/input/input.h> 10 #include "imx6dl-qmx6.dtsi" 14 stdout-path = &uart3; 20 operating-points = < 25 fsl,soc-operating-points = < 26 /* ARM kHz SOC-PU uV */ 33 operating-points = < [all …]
|