Home
last modified time | relevance | path

Searched +full:mt6370 +full:- +full:usb +full:- +full:otg +full:- +full:vbus (Results 1 – 3 of 3) sorted by relevance

/linux/Documentation/devicetree/bindings/power/supply/
H A Dmediatek,mt6370-charger.yaml1 # 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>
13 This module is part of the MT6370 MFD device.
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.
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dmediatek,mt6370.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mfd/mediatek,mt6370.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediaTek MT6370 SubPMIC
10 - ChiYuan Huang <cy_huang@richtek.com>
13 MT6370 is a highly-integrated smart power management IC, which includes a
14 single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C &
21 const: mediatek,mt6370
26 wakeup-source: true
[all …]
/linux/drivers/power/supply/
H A Dmt6370-charger.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/devm-helpers.h>
184 ret = regmap_field_read(priv->rmap_fields[fd], &reg_val); in mt6370_chg_field_get()
210 val = r->max_sel; in mt6370_chg_field_set()
216 return regmap_field_write(priv->rmap_fields[fd], val); in mt6370_chg_field_set()
238 struct mt6370_priv *priv = rcfg->driver_data; in mt6370_chg_otg_of_parse_cb()
240 rcfg->ena_gpiod = fwnode_gpiod_get_index(of_fwnode_handle(of), in mt6370_chg_otg_of_parse_cb()
243 rdesc->name); in mt6370_chg_otg_of_parse_cb()
244 if (IS_ERR(rcfg->ena_gpiod)) { in mt6370_chg_otg_of_parse_cb()
245 rcfg->ena_gpiod = NULL; in mt6370_chg_otg_of_parse_cb()
[all …]