TWL4030 BCI (Battery Charger Interface)
Schema identifier ($id): "http://devicetree.org/schemas/power/supply/twl4030-charger.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The battery charger needs to interact with the USB phy in order to know when charging is permissible, and when there is a connection or disconnection.
The choice of phy cannot be configured at a hardware level, so there is no value in explicit configuration in device-tree. Rather if there is a sibling of the BCI node which is compatible with "ti,twl4030-usb", then that is used to determine when and how use USB power for charging.
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):power-supply.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,twl4030-bci"
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
ti,bb-uvolt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
microvolts for charging the backup battery
ti,bb-uamp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
microamps for charging the backup battery
io-channels — not listed as required here #
Array item rules (items) #
Item 1
Accessory Charger Voltage Channel
io-channel-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"vac"
bci3v1-supply — not listed as required here #
3.1V USB regulator
Required in this object (required): "compatible", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pmic {
charger {
compatible = "ti,twl4030-bci";
interrupts = <9>, <2>;
ti,bb-uvolt = <3200000>;
ti,bb-uamp = <150>;
io-channels = <&twl_madc 11>;
io-channel-names = "vac";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0