Skip to contentSkip to conversation

ARM: tegra: Add sbs-battery node to Dalmore

PATCH New Rhyland Klein 2 participants 2 messages Mar 20, 2013 – Mar 22, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: tegra: Add sbs-battery node to Dalmore

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

---
 arch/arm/boot/dts/tegra114-dalmore.dts |   13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/tegra114-dalmore.dts +13 -0
index a61974e..6487188 100644
@@ -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;
 	};
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 ARM: tegra: Add sbs-battery node to Dalmore

Quoted 2 lines · Rhyland Klein

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.

arch/arm/boot/dts/tegra114-dalmore.dts line 725

Quoted 3 lines
arch/arm/boot/dts/tegra114-dalmore.dts +1 -0
 
+		battery: smart-battery at b {

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