Home
last modified time | relevance | path

Searched +full:mt6370 +full:- +full:tcpc (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/
Dmediatek,mt6370-tcpc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/usb/mediatek,mt6370-tcpc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: MediatTek MT6370 Type-C Port Switch and Power Delivery controller
10 - ChiYuan Huang <cy_huang@richtek.com>
13 MediaTek MT6370 is a multi-functional device.
16 This document only describes MT6370 Type-C Port Switch and
22 - mediatek,mt6370-tcpc
29 $ref: /schemas/connector/usb-connector.yaml#
[all …]
/kernel/linux/linux-6.6/drivers/mfd/
Dmt6370.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include "mt6370.h"
116 .name = "mt6370-irqs",
134 MFD_CELL_OF("mt6370-adc",
135 NULL, NULL, 0, 0, "mediatek,mt6370-adc"),
136 MFD_CELL_OF("mt6370-charger",
137 NULL, NULL, 0, 0, "mediatek,mt6370-charger"),
138 MFD_CELL_OF("mt6370-flashlight",
139 NULL, NULL, 0, 0, "mediatek,mt6370-flashlight"),
140 MFD_CELL_OF("mt6370-indicator",
[all …]
/kernel/linux/linux-6.6/drivers/usb/typec/tcpm/
Dtcpci_mt6370.c1 // SPDX-License-Identifier: GPL-2.0-only
56 ret = regmap_register_patch(data->regmap, mt6370_reg_init, in mt6370_tcpc_init()
61 ret = regmap_raw_read(data->regmap, TCPC_BCD_DEV, &did, sizeof(u16)); in mt6370_tcpc_init()
66 return regmap_write(data->regmap, TCPC_FAULT_CTRL, 0x80); in mt6370_tcpc_init()
74 return regmap_update_bits(data->regmap, MT6370_REG_SYSCTRL8, in mt6370_tcpc_set_vconn()
86 ret = regulator_is_enabled(priv->vbus); in mt6370_tcpc_set_vbus()
91 return regulator_disable(priv->vbus); in mt6370_tcpc_set_vbus()
94 return regulator_enable(priv->vbus); in mt6370_tcpc_set_vbus()
103 return tcpci_irq(priv->tcpci); in mt6370_irq_handler()
108 struct regmap *regmap = priv->tcpci_data.regmap; in mt6370_check_vendor_info()
[all …]