/linux-6.12.1/Documentation/devicetree/bindings/power/supply/ |
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 | 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 | richtek,rt9467.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 11 - ChiaEn Wu <chiaen_wu@richtek.com> 14 RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 16 MOSFETs, input current sensing and regulation, high-accuracy voltage 20 The RT9467 also features USB On-The-Go (OTG) support. It also integrates 21 D+/D- pin for USB host/charging port detection. 24 https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf [all …]
|
D | richtek,rt9471.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alina Yu <alina_yu@richtek.com> 11 - ChiYuan Huang <cy_huang@richtek.com> 14 RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for 15 portable applications. It supports USB BC1.2 port detection, current and 16 voltage regulations in both charging and boost mode. 19 https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf 28 charge-enable-gpios: [all …]
|
/linux-6.12.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 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 146 * @usb_vbus_enabled: is USB VBUS powered by SMB charger [all …]
|
D | ab8500_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 32 #include <linux/usb/otg.h> 36 #include "ab8500-bm.h" 37 #include "ab8500-chargalg.h" 94 /* Lowest charger voltage is 3.39V -> 0x4E */ 112 /* UsbLineStatus register - usb types */ 174 * struct ab8500_charger_interrupts - ab8500 interrupts 218 * struct ab8500_charger - ab8500 Charger device information 226 * @vddadc_en_usb: Indicate if VDD ADC supply is enabled because USB [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 Say Y here to enable power supply class support. This allows 6 power supply (batteries, AC, USB) monitoring by userspace 15 Say Y here to enable debugging messages for power supply class 35 Say Y here to enable support APM status emulation using 42 Say Y here to enable support for the generic battery driver 57 Say Y here to enable support for the battery charger in the Maxim 64 Say Y here to enable support for the backup battery charger 71 Say Y here to enable support for the power management unit 78 Say Y here to enable support for the power management unit [all …]
|
D | ab8500_chargalg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2012 6 * Charging algorithm driver for AB8500 34 #include "ab8500-bm.h" 35 #include "ab8500-chargalg.h" 40 /* End-of-charge criteria counter */ 51 * full charging cycle in the case where maintenance charging 169 * struct ab8500_charge_curr_maximization - Charger maximization parameters 171 * @current_iset_ua: the charging current used at this moment 178 * @level: tells in how many steps the charging current has been [all …]
|
D | ab8500-bm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 16 * USB/ULPI register offsets 61 * Charger / USB control register offsets 253 /* USB Power Path constants for ab8540 */ 267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds 275 * @accu_charging: FG accumulation time while charging 288 * @pcut_enable: Enable power cut feature in ab8505 317 * struct ab8500_charger_maximization - struct used by the board config. 318 * @use_maxi: Enable maximization for this battery type 331 * struct ab8500_bm_capacity_levels - ab8500 capacity level data [all …]
|
D | sc2731_charger.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/usb/phy.h> 62 bool charging; 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() 86 /* Start charging */ in sc2731_charger_start_charge() 87 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG0, in sc2731_charger_start_charge() 105 return regmap_update_bits(info->regmap, info->base + SC2731_CHG_CFG5, in sc2731_charger_set_current_limit() [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 | rt5033_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/devm-helpers.h> 18 #include <linux/mfd/rt5033-private.h> 45 struct regmap *regmap = charger->regmap; in rt5033_get_charger_state() 71 /* For OTG mode, RT5033 would still report "charging" */ in rt5033_get_charger_state() 72 if (charger->otg) in rt5033_get_charger_state() 80 struct regmap *regmap = charger->regmap; in rt5033_get_charger_type() 102 struct regmap *regmap = charger->regmap; in rt5033_get_charger_current_limit() 118 struct regmap *regmap = charger->regmap; in rt5033_get_charger_const_voltage() 134 struct rt5033_charger_data *chg = &charger->chg; in rt5033_init_const_charge() [all …]
|
D | twl4030_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include <linux/usb/otg.h> 73 #define TWL4030_ICHGEOC BIT(4) /* Battery current end-of-charge */ 110 MODULE_PARM_DESC(allow_usb, "Allow USB charge drawing default current"); 115 struct power_supply *usb; member 132 int usb_mode, ac_mode; /* charging mode requested */ 137 /* When setting the USB current we slowly increase the 207 * CGAIN == 0: ICHG = (BCIICHG * 1.7) / (2^10 - 1) - 0.85 208 * CGAIN == 1: ICHG = (BCIICHG * 3.4) / (2^10 - 1) - 1.7 210 * CGAIN == 0: val * 1.6618 - 0.85 * 1000 [all …]
|
D | max8925_power.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2009-2010 Marvell International Ltd. 69 struct power_supply *usb; member 85 static int __set_charger(struct max8925_power_info *info, int enable) in __set_charger() argument 87 struct max8925_chip *chip = info->chip; in __set_charger() 88 if (enable) { 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() [all …]
|
D | 88pm860x_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 69 /* bit definitions of Measurement Enable 1 Register */ 72 /* bit definitions of Measurement Enable 3 Register */ 86 /* over-temperature on PM8606 setting */ 90 /* over-voltage protect on vchg setting mv */ 102 struct power_supply *usb; member 107 unsigned online:1; /* usb charger */ 113 "battery-monitor", 121 ret = pm860x_bulk_read(info->i2c, PM8607_VCHG_MEAS1, 2, buf); in measure_vchg() 129 dev_dbg(info->dev, "%s, vchg: %d mv\n", __func__, *data); in measure_vchg() [all …]
|
D | charger-manager.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * during suspend-to-mem. 23 #include <linux/power/charger-manager.h> 34 { "USB", EXTCON_USB }, 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 }, 53 * Default temperature threshold for charging. 78 /* About in-suspend (suspend-again) monitoring */ [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 | tps65217_charger.c | 1 // SPDX-License-Identifier: GPL-2.0 54 * charging the battery, but all register values are reset to default in tps65217_config_charger() 66 ret = tps65217_clear_bits(charger->tps, TPS65217_REG_CHGCONFIG1, in tps65217_config_charger() 70 dev_err(charger->dev, in tps65217_config_charger() 83 if (charger->online) in tps65217_enable_charging() 86 dev_dbg(charger->dev, "%s: enable charging\n", __func__); in tps65217_enable_charging() 87 ret = tps65217_set_bits(charger->tps, TPS65217_REG_CHGCONFIG1, in tps65217_enable_charging() 92 dev_err(charger->dev, in tps65217_enable_charging() 98 charger->online = 1; in tps65217_enable_charging() 110 val->intval = charger->online; in tps65217_charger_get_property() [all …]
|
D | isp1704_charger.c | 1 // 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> 22 #include <linux/usb/otg.h> 23 #include <linux/usb/ulpi.h> 24 #include <linux/usb/ch9.h> 25 #include <linux/usb/gadget.h> 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() [all …]
|
/linux-6.12.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 52 USB: 61 used for discharging batteries, positive values for charging 62 batteries and for USB IBUS current. [all …]
|
D | sysfs-platform-asus-wmi | 6 Change CPU clock configuration (write-only). 9 * 0 -> Super Performance Mode 10 * 1 -> High Performance Mode 11 * 2 -> Power Saving Mode 47 * 0 - normal, 48 * 1 - overboost, 49 * 2 - silent 57 * 0 - default, 58 * 1 - overboost, 59 * 2 - silent [all …]
|
/linux-6.12.1/drivers/mfd/ |
D | tps65010.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * tps65010 - driver for tps6501x power management chips 6 * Copyright (C) 2004-2005 David Brownell 27 /*-------------------------------------------------------------------------*/ 37 /*-------------------------------------------------------------------------*/ 40 * voltage regulators, lithium ion/polymer battery charging, GPIOs, LEDs, 47 * battery-insert != device-on. 65 unsigned charging:1; member 84 /*-------------------------------------------------------------------------*/ 92 (chgstatus & TPS_CHG_USB) ? " USB" : "", in dbg_chgstat() [all …]
|
/linux-6.12.1/drivers/platform/x86/ |
D | lenovo-yoga-tab2-pro-1380-fastcharger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Support for the custom fast charging protocol found on the Lenovo Yoga 26 #define YT2_1380_FC_PDEV_NAME "lenovo-yoga-tab2-pro-1380-fastcharger" 28 #define YT2_1380_FC_SERDEV_NAME "serial0-0" 29 #define YT2_1380_FC_EXTCON_NAME "i2c-lc824206xa" 49 static int yt2_1380_fc_set_gpio_mode(struct yt2_1380_fc *fc, bool enable) in yt2_1380_fc_set_gpio_mode() argument 51 struct pinctrl_state *state = enable ? fc->gpio_state : fc->uart_state; in yt2_1380_fc_set_gpio_mode() 54 ret = pinctrl_select_state(fc->pinctrl, state); in yt2_1380_fc_set_gpio_mode() 56 dev_err(fc->dev, "Error %d setting pinctrl state\n", ret); in yt2_1380_fc_set_gpio_mode() 66 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_DCP) > 0; in yt2_1380_fc_dedicated_charger_connected() [all …]
|
/linux-6.12.1/drivers/platform/arm64/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # EC-like Drivers for aarch64 based devices. 7 bool "ARM64 Platform-Specific Device Drivers" 11 Say Y here to get to see options for platform-specific device drivers 12 for arm64 based devices, primarily EC-like device drivers. 27 Say Y here to enable the EC driver for the (Snapdragon-based) 28 Acer Aspire 1 laptop. The EC handles battery and charging 30 and USB Type-C DP HPD events. 42 Driver for the Embedded Controller in the Qualcomm Snapdragon-based
|
/linux-6.12.1/arch/arm/boot/dts/rockchip/ |
D | rk3188-bqedison2qc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/i2c/i2c.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 14 model = "BQ Edison2 Quad-Core"; 15 compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188"; 29 compatible = "pwm-backlight"; 30 power-supply = <&vsys>; 34 gpio-keys { [all …]
|