Home
last modified time | relevance | path

Searched +full:enable +full:- +full:otg +full:- +full:charging (Results 1 – 22 of 22) sorted by relevance

/linux/Documentation/devicetree/bindings/power/supply/
H A Dsummit,smb347-charger.yaml1 # 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: true
[all …]
H A Drichtek,rt9467.yaml1 # 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 …]
H A 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 …]
H A Drichtek,rt9471.yaml1 # 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
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:
29 description: GPIO used to turn on and off charging.
[all …]
/linux/drivers/power/supply/
H A Daxp288_charger.c1 // 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>
126 /* OTG/Host mode */
132 } otg; member
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()
[all …]
H A Disp1704_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2012 - 2013 Pali Rohár <pali@kernel.org>
22 #include <linux/usb/otg.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()
77 * Determine is the charging port DCP (dedicated charger) or CDP (Host/HUB
80 * REVISIT: The method is defined in Battery Charging Specification and is
103 /* Enable strong pull-up on DP (1.5K) and reset */ in isp1704_charger_type()
138 /* Clear the DP and DM pull-down bits */ in isp1704_charger_verify()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 Say Y here to enable power supply class support. This allows
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
90 Say Y here to enable battery monitor for Marvell 88PM860x chip.
[all …]
H A Dtwl4030_charger.c1 // 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 */
132 int usb_mode, ac_mode; /* charging mode requested */
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
211 * CGAIN == 1: (val * 1.6618 - 0.85 * 1000) * 2
219 return (regval * 16618 - 8500 * 1000) / 5; in regval2ua()
221 return (regval * 16618 - 8500 * 1000) / 10; in regval2ua()
[all …]
H A Drk817_charger.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/devm-helpers.h>
20 /* Charging statuses reported by hardware register */
33 * Max charging current read to/written from hardware register.
68 * soc - state of charge - like the BSP this is stored as a percentage,
143 return -EINVAL; in rk817_chg_cur_to_reg()
166 return -EINVAL; in rk817_chg_cur_from_reg()
177 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB0_H, in rk817_bat_calib_vol()
181 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB1_H, in rk817_bat_calib_vol()
186 charger->voltage_k = (4025 - 2300) * 1000 / in rk817_bat_calib_vol()
[all …]
H A Dcpcap-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Copyright (C) 2009-2010 Motorola, Inc.
29 #include <linux/usb/otg.h>
31 #include <linux/mfd/motorola-cpcap.h>
38 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1
44 #define CPCAP_REG_CRM_RVRSMODE BIT(12) /* USB VBUS output enable */
90 * values in "Table 8-3. Charge Path Regulator Current Limit
181 channel = ddata->channels[CPCAP_CHARGER_IIO_VOLTAGE]; in cpcap_charger_get_charge_voltage()
184 dev_warn(ddata->dev, "%s failed: %i\n", __func__, error); in cpcap_charger_get_charge_voltage()
197 channel = ddata->channels[CPCAP_CHARGER_IIO_CHRG_CURRENT]; in cpcap_charger_get_charge_current()
[all …]
H A Dbq24190_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/extcon-provider.h>
32 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */
63 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */
162 * The tables below provide a 2-way mapping for the value that goes in
163 * the register field and the real-world value that it represents.
165 * number at that index in the array is the real-world value that it
256 int (*set_otg_vbus)(struct bq24190_dev_info *bdi, bool enable);
272 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
284 return i - 1; in bq24190_find_idx()
[all …]
/linux/drivers/mfd/
H A Dtps65010.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * tps65010 - driver for tps6501x power management chips
6 * Copyright (C) 2004-2005 David Brownell
28 /*-------------------------------------------------------------------------*/
38 /*-------------------------------------------------------------------------*/
41 * voltage regulators, lithium ion/polymer battery charging, GPIOs, LEDs,
48 * battery-insert != device-on.
66 unsigned charging:1; member
85 /*-------------------------------------------------------------------------*/
98 ? " (charging)" : ""), in dbg_chgstat()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
57 tristate "Active-semi ACT8945A"
62 Support for the ACT8945A PMIC from Active-semi. This device
63 features three step-down DC/DC converters and four low-dropout
79 sun4i-gpadc-iio and the hwmon driver iio_hwmon.
82 called sun4i-gpadc.
99 Say yes here to enable SMpro driver support for Ampere's Altra
113 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down
144 over at91-usart-serial driver and usart-spi-driver. Only one function
160 tristate "Atmel HLCDC (High-end LCD Controller)"
[all …]
/linux/drivers/phy/ti/
H A Dphy-twl4030-usb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl4030_usb - TWL4030 USB transceiver, talking to OMAP OTG controller
5 * Copyright (C) 2004-2007 Texas Instruments
10 * - HS USB ULPI mode works.
11 * - 3-pin mode support may be added in future.
22 #include <linux/usb/otg.h>
138 * cable is present and we need to be runtime-enabled
175 /*-------------------------------------------------------------------------*/
186 dev_dbg(twl->dev, "Write%d[%d,0x%x] wrote %02x but read %02x\n", in twl4030_i2c_write_u8_verify()
194 dev_dbg(twl->dev, "Write%d[%d,0x%x] wrote %02x but read %02x\n", in twl4030_i2c_write_u8_verify()
[all …]
/linux/drivers/usb/musb/
H A Dtusb6010.c1 // SPDX-License-Identifier: GPL-2.0
3 * TUSB6010 USB 2.0 OTG Dual Role controller
9 * - Driver assumes that interface to external host (main CPU) is
27 #include <linux/dma-mapping.h>
36 struct gpio_desc *enable; member
51 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision()
68 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision()
71 rev = musb->tusb_revision; in tusb_print_revision()
96 * Workaround for spontaneous WBUS wake-up issue #2 for tusb3.0.
101 void __iomem *tbase = musb->ctrl_base; in tusb_wbus_quirk()
[all …]
/linux/drivers/extcon/
H A Dextcon-lc824206xa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * (ENA2222-D.PDF), but no full datasheet. So there is no documentation
11 * This driver is based on the register info from the extcon-fsa9285.c driver,
22 #include <linux/extcon-provider.h>
57 /* 5 bits? ADC 0x10 GND, 0x1a-0x1f ACA, 0x1f float */
82 * auto-reset to 0, so these must be set to 0 manually after clearing.
139 ret = i2c_smbus_read_byte_data(data->client, reg); in lc824206xa_read_reg()
141 dev_err(&data->client->dev, "Error %d reading reg 0x%02x\n", ret, reg); in lc824206xa_read_reg()
150 ret = i2c_smbus_write_byte_data(data->client, reg, val); in lc824206xa_write_reg()
152 dev_err(&data->client->dev, "Error %d writing reg 0x%02x\n", ret, reg); in lc824206xa_write_reg()
[all …]
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-inno-usb2.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 #include <linux/clk-provider.h>
11 #include <linux/extcon-provider.h>
28 #include <linux/usb/otg.h>
50 * enum usb_chg_state - Different states involved in USB charger detection.
85 unsigned int enable; member
89 * struct rockchip_chg_det_reg - usb charger detect registers
90 * @cp_det: charging port detected successfully.
91 * @dcp_det: dedicated charging port detected successfully.
115 * struct rockchip_usb2phy_port_cfg - usb-phy port configuration.
[all …]
/linux/drivers/usb/chipidea/
H A Dusbmisc_imx.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <linux/usb/otg.h>
82 /* HSIC enable */
88 /* For imx6dql, it is host-only controller, for later imx6, it is otg's */
106 /* The default DM/DP value is pull-down */
176 /* It's called when we need to enable/disable usb wakeup */
203 struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev); in usbmisc_imx25_init()
207 if (data->index > 1) in usbmisc_imx25_init()
208 return -EINVAL; in usbmisc_imx25_init()
210 spin_lock_irqsave(&usbmisc->lock, flags); in usbmisc_imx25_init()
[all …]
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mp-msc-sm2s.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
9 #include <dt-bindings/net/ti-dp83867.h>
18 stdout-path = &uart2;
21 reg_usb0_host_vbus: regulator-usb0-vbus {
22 compatible = "regulator-fixed";
23 regulator-name = "usb0_host_vbus";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_usb0_vbus>;
26 regulator-min-microvolt = <5000000>;
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-asus-nexus7-grouper-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/input/gpio-keys.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/power/summit,smb347-charger.h>
6 #include <dt-bindings/thermal/thermal.h>
9 #include "tegra30-cpu-opp.dtsi"
10 #include "tegra30-cpu-opp-microvolt.dtsi"
11 #include "tegra30-asus-lvds-display.dtsi"
27 * pre-existing /chosen node to be available to insert the
33 trusted-foundations {
[all …]
/linux/include/linux/platform_data/
H A Dcros_ec_commands.h1 /* SPDX-License-Identifier: GPL-2.0-only */
7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from
52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff
77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */
78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */
79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */
81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */
82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */
83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */
84 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */
[all …]
/linux/arch/arm/boot/dts/samsung/
H A Dexynos4412-p4note.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 * Based on exynos4412-midas.dtsi.
10 /dts-v1/;
12 #include "exynos4412-ppmu-common.dtsi"
14 #include <dt-bindings/clock/maxim,max77686.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/linux-event-codes.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
18 #include <dt-bindings/power/summit,smb347-charger.h>
19 #include "exynos-pinctrl.h"
[all …]