linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: Add sbs-battery node to Dalmore
@ 2013-03-20 15:31 Rhyland Klein
  2013-03-22 17:35 ` Stephen Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Rhyland Klein @ 2013-03-20 15:31 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds the node for the bq20z45 I2C gas gauge which is
compatible with the sbs-battery power supply driver.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
---
 arch/arm/boot/dts/tegra114-dalmore.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts
index a61974e..6487188 100644
--- a/arch/arm/boot/dts/tegra114-dalmore.dts
+++ b/arch/arm/boot/dts/tegra114-dalmore.dts
@@ -718,6 +718,19 @@
 		clock-frequency = <408000000>;
 	};
 
+	i2c at 7000c000 {
+		status = "okay";
+		clock-frequency = <100000>;
+
+		battery: smart-battery at b {
+			compatible = "ti,bq20z45", "sbs,sbs-battery";
+			reg = <0xb>;
+			battery-name = "battery";
+			sbs,i2c-retry-count = <2>;
+			sbs,poll-retry-count = <100>;
+		};
+	};
+
 	pmc {
 		nvidia,invert-interrupt;
 	};
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: tegra: Add sbs-battery node to Dalmore
  2013-03-20 15:31 [PATCH] ARM: tegra: Add sbs-battery node to Dalmore Rhyland Klein
@ 2013-03-22 17:35 ` Stephen Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Warren @ 2013-03-22 17:35 UTC (permalink / raw)
  To: linux-arm-kernel

On 03/20/2013 09:31 AM, Rhyland Klein wrote:
> This patch adds the node for the bq20z45 I2C gas gauge which is
> compatible with the sbs-battery power supply driver.

Applied to Tegra's for-3.10/dt branch.

> diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts

> +		battery: smart-battery at b {

I removed "@b" here, since the unit-address isn't necessary to make the
node name unique.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-22 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20 15:31 [PATCH] ARM: tegra: Add sbs-battery node to Dalmore Rhyland Klein
2013-03-22 17:35 ` Stephen Warren

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).