提交 d5284a67 编写于 作者: R Rhyland Klein 提交者: Stephen Warren

ARM: tegra: add power-supplies link between battery and charger

The power supply core now supports detecting linkages between batteries
and chargers through the use of the power-supplies property. Adding
this to the battery, the core will use the phandle list to find
the associated charger and pair them up. This facilitates notifications
from the charger to the battery when ac power is dissconnected
or connected for instance.
Signed-off-by: NRhyland Klein <rklein@nvidia.com>
Signed-off-by: NStephen Warren <swarren@nvidia.com>
上级 15e5c647
......@@ -727,6 +727,7 @@
battery-name = "battery";
sbs,i2c-retry-count = <2>;
sbs,poll-retry-count = <100>;
power-supplies = <&charger>;
};
};
......@@ -763,7 +764,7 @@
vsys-l1-supply = <&vdd_ac_bat_reg>;
vsys-l2-supply = <&vdd_ac_bat_reg>;
charger {
charger: charger {
compatible = "ti,tps65090-charger";
ti,enable-low-current-chrg;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册