ARM: dtsi: axp22x: add battery power supply subnode
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Tue, 18 Apr 2017 07:34:19 +0000 (09:34 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:32:32 +0000 (08:32 +0200)
The X-Powers AXP22X PMIC exposes battery supply various data such as
the battery status (charging, discharging, full, dead), current max
limit, current current, battery capacity (in percentage), voltage max
limit, current voltage, and battery capacity (in Ah).

This adds the battery power supply subnode for AXP22X PMIC.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/axp22x.dtsi

index 67331c5f171478056b9f7d937c2d22200af8296c..87fb08e812ecccfb21f5a2a47af751c889e1f7a3 100644 (file)
                status = "disabled";
        };
 
+       battery_power_supply: battery-power-supply {
+               compatible = "x-powers,axp221-battery-power-supply";
+               status = "disabled";
+       };
+
        regulators {
                /* Default work frequency for buck regulators */
                x-powers,dcdc-freq = <3000>;