1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
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.
23 We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB
24 is plugged in, and then the driver will enable BC1.2 detection.
25 After the hardware of MT6370 completes the BC1.2 detection,
26 IRQ "MT6370_IRQ_ATTACH" will be triggered, and the driver will know
27 the result of BC1.2 detection.
28 When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that the
29 hardware enters the "Minimum Input Voltage Regulation loop" and
30 a workaround needs to be applied at this time.
31 In summary, "MT6370_IRQ_OVPCTRL_UVP_D", "MT6370_IRQ_ATTACH" and
32 "MT6370_IRQ_CHG_MIVR" are required in this charger driver.
34 - description: irq of "USB is plugged in"
35 - description: irq of "BC1.2 is done"
36 - description: irq of "Minimum Input Voltage Regulation loop is active"
46 Use ADC channel to read VBUS, IBUS, IBAT, etc., info.
50 VBUS voltage with lower accuracy (+-75mV) but higher measure
53 VBUS voltage with higher accuracy (+-30mV) but lower measure
55 - description: the main system input voltage
56 - description: battery voltage
57 - description: battery temperature-sense input voltage
58 - description: IBUS current (required)
59 - description: battery current
61 regulated output voltage to supply for the PWM low-side gate driver
62 and the bootstrap capacitor
63 - description: IC junction temperature
78 usb-otg-vbus-regulator:
80 description: OTG boost regulator.
81 unevaluatedProperties: false
82 $ref: /schemas/regulator/regulator.yaml#
94 additionalProperties: false