ARM: dtsi: axp209: add battery power supply subnode
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Tue, 18 Apr 2017 07:34:18 +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 AXP209 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
and min limits, current voltage, and battery capacity (in Ah).

This adds the battery power supply subnode for AXP20X 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/axp209.dtsi

index 9677dd5cf6b659a4eeb60b27ecfad2ff6305ec5f..3c8fa26e87b70c71d0bdb3e10d8b9f3219c1f130 100644 (file)
                #gpio-cells = <2>;
        };
 
+       battery_power_supply: battery-power-supply {
+               compatible = "x-powers,axp209-battery-power-supply";
+               status = "disabled";
+       };
+
        regulators {
                /* Default work frequency for buck regulators */
                x-powers,dcdc-freq = <1500>;