ARM: dtsi: axp81x: add battery power supply subnode
authorQuentin Schulz <quentin.schulz@bootlin.com>
Mon, 19 Feb 2018 12:47:33 +0000 (13:47 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 21 Feb 2018 09:50:44 +0000 (10:50 +0100)
The X-Powers AXP81X 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 AXP81X PMIC.

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

index 6b5e7bcbc69a069e66fec6fa178eb39ed22a0f62..1b05c7fe351e5740e86f31eb8586737c224f0f88 100644 (file)
                };
        };
 
+       battery_power_supply: battery-power-supply {
+               compatible = "x-powers,axp813-battery-power-supply";
+               status = "disabled";
+       };
+
        regulators {
                /* Default work frequency for buck regulators */
                x-powers,dcdc-freq = <3000>;