All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: Add sbs-battery node to Dalmore
@ 2013-03-20 15:31 ` Rhyland Klein
  0 siblings, 0 replies; 4+ messages in thread
From: Rhyland Klein @ 2013-03-20 15:31 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Pritesh Raithatha,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA, Rhyland Klein

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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 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@7000c000 {
+		status = "okay";
+		clock-frequency = <100000>;
+
+		battery: smart-battery@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] 4+ messages in thread

* [PATCH] ARM: tegra: Add sbs-battery node to Dalmore
@ 2013-03-20 15:31 ` Rhyland Klein
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

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

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@b {

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

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

* [PATCH] ARM: tegra: Add sbs-battery node to Dalmore
@ 2013-03-22 17:35     ` Stephen Warren
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

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

Thread overview: 4+ 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-20 15:31 ` Rhyland Klein
     [not found] ` <1363793492-2019-1-git-send-email-rklein-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-03-22 17:35   ` Stephen Warren
2013-03-22 17:35     ` Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.