| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/ |
| D | bq2415x.txt | 1 Binding for TI bq2415x Li-Ion Charger 4 - compatible: Should contain one of the following: 17 - reg: integer, i2c address of the device. 18 - ti,current-limit: integer, initial maximum current charger can pull 20 - ti,weak-battery-voltage: integer, weak battery voltage threshold in mV. 23 - ti,battery-regulation-voltage: integer, maximum charging voltage in mV. 24 - ti,charge-current: integer, maximum charging current in mA. 25 - ti,termination-current: integer, charge will be terminated when current in 26 constant-voltage phase drops below this value (in mA). 27 - ti,resistor-sense: integer, value of sensing resistor in milliohm. [all …]
|
| D | bq24257.txt | 1 Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger 4 - compatible: Should contain one of the following: 8 - reg: integer, i2c address of the device. 9 - interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in 10 conjunction with "interrupt-parent". 11 - ti,battery-regulation-voltage: integer, maximum charging voltage in uV. 12 - ti,charge-current: integer, maximum charging current in uA. 13 - ti,termination-current: integer, charge will be terminated when current in 14 constant-voltage phase drops below this value (in uA). 17 - pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/ |
| D | mediatek,mt6370-charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek MT6370 Battery Charger 10 - ChiaEn Wu <chiaen_wu@richtek.com> 14 Provides Battery Charger, Boost for OTG devices and BC1.2 detection. 18 const: mediatek,mt6370-charger 22 Specify what irqs are needed to be handled by MT6370 Charger driver. 23 We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB [all …]
|
| D | bq2415x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: 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 | mt6360_charger.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Battery charger driver for MT6360 PMIC from MediaTek Integrated. 10 - Gene Chen <gene_chen@richtek.com> 14 Provides Battery Charger, Boost for OTG devices and BC1.2 detection. 18 const: mediatek,mt6360-chg 20 richtek,vinovp-microvolt: 25 usb-otg-vbus-regulator: 32 - compatible [all …]
|
| D | isp1704.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: NXP ISP1704 USB Charger Detection 11 - Sebastian Reichel <sre@kernel.org> 14 - $ref: power-supply.yaml# 20 nxp,enable-gpio: 24 usb-phy: 26 description: USB PHY the ISP1704 is connected to 29 - compatible [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# 7 title: Richtek RT9471 3A Single Cell Switching Battery charger 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 19 https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf 28 charge-enable-gpios: [all …]
|
| D | bq24257.yaml | 1 # SPDX-License-Identifier: GPL-2.0 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: 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 | 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# 7 title: Richtek RT9467 Switching Battery Charger with Power Path Management 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. [all …]
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 power supply (batteries, AC, USB) monitoring by userspace 51 which include a battery charger and a boost converter. 54 tristate "MAX8925 battery charger support" 57 Say Y here to enable support for the battery charger in the Maxim 61 tristate "WM831X backup battery charger support" 64 Say Y here to enable support for the backup battery charger 93 tristate "ADP5061 battery charger driver" 98 charger. 104 tristate "Active-semi ACT8945A charger driver" [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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/phy/ti/ |
| D | phy-tusb1210.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tusb1210.c - TUSB1210 USB ULPI PHY driver 42 /* TUSB1210 charger detection work states */ 68 struct power_supply *charger; member 76 ret = ulpi_write(tusb->ulpi, reg, val); in tusb1210_ulpi_write() 78 dev_err(&tusb->ulpi->dev, "error %d writing val 0x%02x to reg 0x%02x\n", in tusb1210_ulpi_write() 88 ret = ulpi_read(tusb->ulpi, reg); in tusb1210_ulpi_read() 93 dev_err(&tusb->ulpi->dev, "error %d reading reg 0x%02x\n", ret, reg); in tusb1210_ulpi_read() 103 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_power_on() 104 gpiod_set_value_cansleep(tusb->gpio_cs, 1); in tusb1210_power_on() [all …]
|
| /kernel/linux/linux-5.10/drivers/extcon/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 host USB ports. Many of 30-pin connectors including PDMI are 28 Say Y here to enable support for external accessory detection 30 advanced audio accessory detection support. 33 tristate "X-Power AXP288 EXTCON support" 37 Say Y here to enable support for USB peripheral detection 38 and USB MUX switching by X-Power AXP288 PMIC. 47 FSA9480 microUSB switch and accessory detector chip. The FSA9480 is a USB 49 I2C and enables USB data, stereo and mono audio, video, microphone 63 Say Y here to enable extcon support for USB OTG ports controlled by [all …]
|
| D | extcon-axp288.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver 5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com> 19 #include <linux/extcon-provider.h> 22 #include <linux/usb/role.h> 26 #include <asm/intel-family.h> 52 /* BC USB status register */ 117 "Last wake caused by a charger insertion", 136 ret = regmap_read(info->regmap, AXP288_PS_BOOT_REASON_REG, &val); in axp288_extcon_log_rsi() 138 dev_err(info->dev, "failed to read reset source indicator\n"); in axp288_extcon_log_rsi() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/extcon/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 11 host USB ports. Many of 30-pin connectors including PDMI are 25 tristate "X-Power AXP288 EXTCON support" 29 Say Y here to enable support for USB peripheral detection 30 and USB MUX switching by X-Power AXP288 PMIC. 39 FSA9480 microUSB switch and accessory detector chip. The FSA9480 is a USB 41 I2C and enables USB data, stereo and mono audio, video, microphone 55 Say Y here to enable extcon support for USB OTG ports controlled by 68 Say Y here to enable extcon support for charger detection / control 75 Say Y here to enable extcon support for charger detection / control [all …]
|
| D | extcon-axp288.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * extcon-axp288.c - X-Power AXP288 PMIC extcon cable detection driver 5 * Copyright (c) 2017-2018 Hans de Goede <hdegoede@redhat.com> 19 #include <linux/extcon-provider.h> 22 #include <linux/usb/role.h> 26 #include <asm/intel-family.h> 53 /* BC USB status register */ 118 "Last wake caused by a charger insertion", 137 ret = regmap_read(info->regmap, AXP288_PS_BOOT_REASON_REG, &val); in axp288_extcon_log_rsi() 139 dev_err(info->dev, "failed to read reset source indicator\n"); in axp288_extcon_log_rsi() [all …]
|
| 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> 22 #include <linux/usb/role.h> 24 #include "extcon-intel.h" 67 /* 0 - open drain, 1 - regular push-pull output */ 69 /* 0 - pin is controlled by SW, 1 - by HW */ 125 * According to the spec. we should read the USB-ID pin ADC value here in cht_wc_extcon_get_id() 126 * to determine the resistance of the used pull-down resister and then in cht_wc_extcon_get_id() [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| 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 …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 power supply (batteries, AC, USB) monitoring by userspace 37 one or two external power supplies (AC/USB) connected to main and 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. [all …]
|
| /kernel/linux/linux-5.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 22 #include <linux/usb/role.h> 44 struct power_supply *charger; member 55 * ------------------------------------ 62 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 63 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 75 id = info->id_gpiod ? in usb_conn_detect_cable() 76 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 bool "USB LED Triggers" 11 This option adds LED triggers for USB host and/or gadget activity. 13 Say Y here if you are working on a system with led-class supported 14 LEDs and you want to use them as activity indicators for USB host or 18 tristate "USB ULPI PHY interface support" 22 USB 2.0 PHY interface. The ULPI specification defines a standard set 27 The ULPI interfaces (the buses) are registered by the drivers for USB 33 protocol) and USB charger detection. 39 tristate "USB GPIO Based Connection Detection Driver" [all …]
|
| /kernel/linux/linux-6.6/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 22 #include <linux/usb/role.h> 44 struct power_supply *charger; member 55 * ------------------------------------ 62 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 63 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 75 id = info->id_gpiod ? in usb_conn_detect_cable() 76 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() [all …]
|
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 8 bool "USB LED Triggers" 11 This option adds LED triggers for USB host and/or gadget activity. 13 Say Y here if you are working on a system with led-class supported 14 LEDs and you want to use them as activity indicators for USB host or 18 tristate "USB ULPI PHY interface support" 22 USB 2.0 PHY interface. The ULPI specification defines a standard set 27 The ULPI interfaces (the buses) are registered by the drivers for USB 33 protocol) and USB charger detection. 39 tristate "USB GPIO Based Connection Detection Driver" [all …]
|