From: rklein@nvidia.com (Rhyland Klein)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] arm: tegra: Add power-supplies link between battery and charger
Date: Mon, 10 Jun 2013 17:26:42 -0400 [thread overview]
Message-ID: <1370899602-22123-5-git-send-email-rklein@nvidia.com> (raw)
In-Reply-To: <1370899602-22123-1-git-send-email-rklein@nvidia.com>
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: Rhyland Klein <rklein@nvidia.com>
---
arch/arm/boot/dts/tegra114-dalmore.dts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index cfeb0f5..b92922f 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -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;
};
--
1.7.9.5
next prev parent reply other threads:[~2013-06-10 21:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 21:26 [PATCH 0/4] Fix and start using supplied_from logic Rhyland Klein
2013-06-10 21:26 ` [PATCH 1/4] power_supply: Add of_node_put to fix refcount Rhyland Klein
2013-06-29 1:22 ` Anton Vorontsov
2013-07-01 16:13 ` Rhyland Klein
2013-06-10 21:26 ` [PATCH 2/4] power: sbs-battery: Add dt to power_supply struct Rhyland Klein
2013-06-10 21:26 ` [PATCH 3/4] power: tps65090-charger: Add dt node to power_supply Rhyland Klein
2013-06-10 21:26 ` Rhyland Klein [this message]
2013-06-12 17:44 ` [PATCH 4/4] arm: tegra: Add power-supplies link between battery and charger Stephen Warren
2013-06-12 17:46 ` Rhyland Klein
2013-06-12 21:32 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370899602-22123-5-git-send-email-rklein@nvidia.com \
--to=rklein@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).