MediaTek MT6370 Battery Charger
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiaEn Wu <chiaen_wu@richtek.com>"
This module is part of the MT6370 MFD device. Provides Battery Charger, Boost for OTG devices and BC1.2 detection.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6370-charger"
interrupts — required here #
Specify what irqs are needed to be handled by MT6370 Charger driver. We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB is plugged in, and then the driver will enable BC1.2 detection. After the hardware of MT6370 completes the BC1.2 detection, IRQ "MT6370_IRQ_ATTACH" will be triggered, and the driver will know the result of BC1.2 detection. When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that the hardware enters the "Minimum Input Voltage Regulation loop" and a workaround needs to be applied at this time. In summary, "MT6370_IRQ_OVPCTRL_UVP_D", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_CHG_MIVR" are required in this charger driver.
Array item rules (items) #
Item 1
irq of "USB is plugged in"
Item 2
irq of "BC1.2 is done"
Item 3
irq of "Minimum Input Voltage Regulation loop is active"
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"uvp_d_evt"
Item 2
Exact value (
const):"attach_i"
Item 3
Exact value (
const):"mivr"
io-channels — required here #
Use ADC channel to read VBUS, IBUS, IBAT, etc., info.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
VBUS voltage with lower accuracy (+-75mV) but higher measure range (1~22V)
Item 2
VBUS voltage with higher accuracy (+-30mV) but lower measure range (1~9.76V)
Item 3
the main system input voltage
Item 4
battery voltage
Item 5
battery temperature-sense input voltage
Item 6
IBUS current (required)
Item 7
battery current
Item 8
regulated output voltage to supply for the PWM low-side gate driver and the bootstrap capacitor
Item 9
IC junction temperature
io-channel-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"vbusdiv5"
Item 2
Exact value (
const):"vbusdiv2"
Item 3
Exact value (
const):"vsys"
Item 4
Exact value (
const):"vbat"
Item 5
Exact value (
const):"ts_bat"
Item 6
Exact value (
const):"ibus"
Item 7
Exact value (
const):"ibat"
Item 8
Exact value (
const):"chg_vddp"
Item 9
Exact value (
const):"temp_jc"
usb-otg-vbus-regulator — not listed as required here #
Value type (type): "object"
OTG boost regulator.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Properties and child nodes (properties) #
enable-gpios — not listed as required here
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "interrupts", "interrupt-names", "io-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)