diff mbox

ARM: tegra: Add sbs-battery node to Dalmore

Message ID 1363793492-2019-1-git-send-email-rklein@nvidia.com
State Accepted, archived
Headers show

Commit Message

Rhyland Klein March 20, 2013, 3:31 p.m. UTC
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(+)

Comments

Stephen Warren March 22, 2013, 5:35 p.m. UTC | #1
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.

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 	};