/Linux-v5.10/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 | act8945a-charger.txt | 1 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 6 as described in ../gpio/gpio.txt. 7 - active-semi,lbo-gpios: specify the low battery voltage detect phandle 8 with args as as described in ../gpio/gpio.txt. 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; [all …]
|
D | lt3651-charger.txt | 1 Analog Devices LT3651 Charger Power Supply bindings: lt3651-charger 4 - compatible: Should contain one of the following: 5 * "lltc,ltc3651-charger", (DEPRECATED: Use "lltc,lt3651-charger") 6 * "lltc,lt3651-charger" 7 - lltc,acpr-gpios: Connect to ACPR output. See remark below. 10 - lltc,fault-gpios: Connect to FAULT output. See remark below. 11 - lltc,chrg-gpios: Connect to CHRG output. See remark below. 13 The lt3651 outputs are open-drain type and active low. The driver assumes the 14 GPIO reports "active" when the output is asserted, so if the pins have been 15 connected directly, the GPIO flags should be set to active low also. [all …]
|
D | bq2515x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 8 title: TI bq2515x 500-mA Linear charger family 11 - Dan Murphy <dmurphy@ti.com> 12 - Ricardo Rivera-Matos <r-rivera-matos@ti.com> 16 integrates the most common functions for wearable devices, namely a charger, 18 push-button controller. 20 Specifications about the charger can be found at: 27 - ti,bq25150 [all …]
|
D | bq24190.txt | 1 TI BQ24190 Li-Ion Battery Charger 4 - compatible: contains one of the following: 9 - reg: integer, I2C address of the charger. 10 - interrupts[-extended]: configuration for charger INT pin. 13 - monitored-battery: phandle of battery characteristics devicetree node 14 The charger uses the following battery properties: 15 + precharge-current-microamp: maximum charge current during precharge 17 + charge-term-current-microamp: a charge cycle terminates when the 21 - ti,system-minimum-microvolt: when power is connected and the battery is below 25 - usb-otg-vbus: [all …]
|
D | sbs,sbs-battery.yaml | 1 # 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> 19 - items: 20 - enum: 21 - ti,bq20z65 22 - ti,bq20z75 23 - enum: [all …]
|
D | lp8727_charger.txt | 1 Binding for TI/National Semiconductor LP8727 Charger 4 - compatible: "ti,lp8727" 5 - reg: I2C slave address 27h 8 - interrupts: interrupt specifier (see interrupt binding[0]) 9 - debounce-ms: interrupt debounce time. (u32) 12 - charger-type: "ac" or "usb" (string) 13 - eoc-level: value of 'enum lp8727_eoc_level' (u8) 14 - charging-current: value of 'enum lp8727_ichg' (u8) 16 [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 24 /* GPIO 134 is used for LP8728 interrupt pin */ [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/w1/ |
D | w1.txt | 5 Slave devices are listed as sub-nodes of such master devices. For now, only 11 charger: charger { 12 compatible = "gpio-charger"; 13 charger-type = "mains"; 14 gpios = <&gpio 1 GPIO_ACTIVE_LOW>; 18 compatible = "w1-gpio"; 19 gpios = <&gpio 100 0>, <&gpio 101 0>; 23 power-supplies = <&charger>;
|
/Linux-v5.10/drivers/power/supply/ |
D | gpio-charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de> 4 * Driver for chargers which report their online status through a GPIO pin 16 #include <linux/gpio/consumer.h> 18 #include <linux/power/gpio-charger.h> 31 struct power_supply *charger; member 44 struct power_supply *charger = devid; in gpio_charger_irq() local 46 power_supply_changed(charger); in gpio_charger_irq() 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() [all …]
|
D | lt3651-charger.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Driver for Analog Devices (Linear Technology) LT3651 charger IC. 8 #include <linux/gpio/consumer.h> 19 struct power_supply *charger; member 28 struct power_supply *charger = devid; in lt3651_charger_irq() local 30 power_supply_changed(charger); in lt3651_charger_irq() 48 if (!lt3651_charger->chrg_gpio) { in lt3651_charger_get_property() 49 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in lt3651_charger_get_property() 52 if (gpiod_get_value(lt3651_charger->chrg_gpio)) in lt3651_charger_get_property() 53 val->intval = POWER_SUPPLY_STATUS_CHARGING; in lt3651_charger_get_property() [all …]
|
D | max8903_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver 9 #include <linux/gpio.h> 31 POWER_SUPPLY_PROP_STATUS, /* Charger status output */ 44 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property() 45 if (gpio_is_valid(data->pdata->chg)) { in max8903_get_property() 46 if (gpio_get_value(data->pdata->chg) == 0) in max8903_get_property() 47 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property() 48 else if (data->usb_in || data->ta_in) in max8903_get_property() 49 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property() [all …]
|
D | act8945a_charger.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Power supply driver for the Active-semi ACT8945A PMIC 16 #include <linux/gpio/consumer.h> 19 static const char *act8945a_charger_manufacturer = "Active-semi"; 22 * ACT8945A Charger Register Map 209 static int act8945a_get_capacity_level(struct act8945a_charger *charger, in act8945a_get_capacity_level() argument 214 int lbo_level = gpiod_get_value(charger->lbo_gpio); in act8945a_get_capacity_level() 268 * Riset(K) = 2336 * (1V/Ichg(mA)) - 0.205 276 static int act8945a_get_current_max(struct act8945a_charger *charger, in act8945a_get_current_max() argument 282 int chgin_level = gpiod_get_value(charger->chglev_gpio); in act8945a_get_current_max() [all …]
|
D | bq24735-charger.c | 2 * Battery charger driver for TI BQ24735 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 #include <linux/gpio.h> 28 #include <linux/gpio/consumer.h> 32 #include <linux/power/bq24735-charger.h> 47 struct power_supply *charger; member 108 static int bq24735_config_charger(struct bq24735 *charger) in bq24735_config_charger() argument 110 struct bq24735_platform *pdata = charger->pdata; in bq24735_config_charger() 114 if (pdata->ext_control) in bq24735_config_charger() 117 if (pdata->charge_current) { in bq24735_config_charger() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 38 backup batteries, and optional builtin charger. 55 tristate "MAX8925 battery charger support" 58 Say Y here to enable support for the battery charger in the Maxim 62 tristate "WM831X backup battery charger support" 65 Say Y here to enable support for the backup battery charger 94 tristate "ADP5061 battery charger driver" 99 charger. 105 tristate "Active-semi ACT8945A charger driver" 109 Active-semi ActivePath ACT8945A charger. [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/mfd/ |
D | max77650.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MAX77650 ultra low-power PMIC from Maxim Integrated. 10 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 13 MAX77650 is an ultra-low power PMIC providing battery charging and power 14 supply for low-power IoT and wearable applications. 16 The GPIO-controller module is represented as part of the top-level PMIC 17 node. The device exposes a single GPIO line. 19 For device-tree bindings of other sub-modules (regulator, power supply, [all …]
|
D | ab8500.txt | 1 * AB8500 Multi-Functional Device (MFD) 4 - compatible : contains "stericsson,ab8500" or "stericsson,ab8505"; 5 - interrupts : contains the IRQ line for the AB8500 6 - interrupt-controller : describes the AB8500 as an Interrupt Controller (has its own domain) 7 - #interrupt-cells : should be 2, for 2-cell format 8 - The first cell is the AB8500 local IRQ number 9 - The second cell is used to specify optional parameters 10 - bits[3:0] trigger type and level flags: 11 1 = low-to-high edge triggered 12 2 = high-to-low edge triggered [all …]
|
D | max8998.txt | 1 * Maxim MAX8998, National/TI LP3974 multi-function device 3 The Maxim MAX8998 is a multi-function device which includes voltage/current 5 other sub-blocks. It is interfaced using an I2C interface. Each sub-block 8 PMIC sub-block 9 -------------- 11 The PMIC sub-block contains a number of voltage and current regulators, 17 - compatible: Should be one of the following: 18 - "maxim,max8998" for Maxim MAX8998 19 - "national,lp3974" or "ti,lp3974" for National/TI LP3974. 20 - reg: Specifies the i2c slave address of the pmic block. It should be 0x66. [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/regulator/ |
D | max8997-regulator.txt | 3 The Maxim MAX8997 is a multi-function device which includes voltage and 4 current regulators, rtc, charger controller and other sub-blocks. It is 5 interfaced to the host controller using a i2c interface. Each sub-block is 7 describes the bindings for 'pmic' sub-block of max8997. 10 - compatible: Should be "maxim,max8997-pmic". 11 - reg: Specifies the i2c slave address of the pmic block. It should be 0x66. 13 - max8997,pmic-buck1-dvs-voltage: A set of 8 voltage values in micro-volt (uV) 14 units for buck1 when changing voltage using gpio dvs. Refer to [1] below 17 - max8997,pmic-buck2-dvs-voltage: A set of 8 voltage values in micro-volt (uV) 18 units for buck2 when changing voltage using gpio dvs. Refer to [1] below [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | at91-natte.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * at91-natte.dts - Device Tree include file for the Natte board 11 mux: mux-controller { 12 compatible = "gpio-mux"; 13 #mux-control-cells = <0>; 15 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>, 20 batntc-mux { 21 compatible = "io-channel-mux"; 22 io-channels = <&adc 5>; 23 io-channel-names = "parent"; [all …]
|
D | pxa300-raumfeld-controller.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "pxa300-raumfeld-common.dtsi" 9 compatible = "raumfeld,raumfeld-controller-pxa303", "marvell,pxa300"; 11 reg_vbatt: regulator-vbatt { 12 compatible = "regulator-fixed"; 13 regulator-name = "vbatt-fixed-supply"; 14 regulator-min-microvolt = <3700000>; 15 regulator-max-microvolt = <3700000>; 16 regulator-always-on; [all …]
|
D | rk3288-veyron-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 #include <dt-bindings/clock/rockchip,rk808.h> 10 #include <dt-bindings/input/input.h> 11 #include "rk3288-veyron.dtsi" 12 #include "rk3288-veyron-analog-audio.dtsi" 13 #include "rk3288-veyron-edp.dtsi" 14 #include "rk3288-veyron-sdmmc.dtsi" 22 gpio-charger { 23 compatible = "gpio-charger"; 24 charger-type = "mains"; [all …]
|
/Linux-v5.10/drivers/mfd/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 necessary for using the board's GPIO and MFGPT functionality. 30 accessing the external gpio extender (LEDs & buttons) and 44 tristate "Active-semi ACT8945A" 49 Support for the ACT8945A PMIC from Active-semi. This device 50 features three step-down DC/DC converters and four low-dropout 52 charger. 66 sun4i-gpadc-iio and the hwmon driver iio_hwmon. 69 called sun4i-gpadc. 88 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down [all …]
|
/Linux-v5.10/drivers/usb/common/ |
D | usb-conn-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB GPIO Based Connection Detection Driver 9 * Some code borrowed from drivers/extcon/extcon-usb-gpio.c 13 #include <linux/gpio/consumer.h> 44 struct power_supply *charger; member 54 * ------------------------------------ 61 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 62 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 74 id = info->id_gpiod ? in usb_conn_detect_cable() 75 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() [all …]
|
/Linux-v5.10/include/linux/mfd/ |
D | lp8788.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 #include <linux/gpio.h> 18 #define LP8788_DEV_BUCK "lp8788-buck" 19 #define LP8788_DEV_DLDO "lp8788-dldo" 20 #define LP8788_DEV_ALDO "lp8788-aldo" 21 #define LP8788_DEV_CHARGER "lp8788-charger" 22 #define LP8788_DEV_RTC "lp8788-rtc" 23 #define LP8788_DEV_BACKLIGHT "lp8788-backlight" 24 #define LP8788_DEV_VIBRATOR "lp8788-vibrator" 25 #define LP8788_DEV_KEYLED "lp8788-keyled" [all …]
|
/Linux-v5.10/drivers/extcon/ |
D | extcon-intel-cht-wc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Extcon charger detection driver for Intel Cherrytrail Whiskey Cove PMIC 7 * Copyright (C) 2013-2015 Intel Corporation. All rights reserved. 10 #include <linux/extcon-provider.h> 20 #include "extcon-intel.h" 63 /* 0 - open drain, 1 - regular push-pull output */ 65 /* 0 - pin is controlled by SW, 1 - by HW */ 132 /* Charger detection can take upto 600ms, wait 800ms max. */ in cht_wc_extcon_get_charger() 135 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger() 137 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger() [all …]
|