ARM: dts: Add sbs-battery dts fragment used by chromebooks

A patch from ťARM: dts: rockchip: add initial support for rk3288 Chrome-devicesŤ in state Mainline for linux-kernel

From: Chris Zhong <zyw@...> Date: Thu, 15 Jan 2015 22:58:34 -0800

Commit-Message

This patch creates a sbs-battery fragment for batteries connected to the i2c tunnel of the cros-ec embedded controller. Signed-off-by: Chris Zhong <zyw@...> Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

arch/arm/boot/dts/cros-ec-sbs.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 arch/arm/boot/dts/cros-ec-sbs.dtsi

Statistics

  • 18 lines added
  • 0 lines removed

Changes

---------------------- arch/arm/boot/dts/cros-ec-sbs.dtsi ----------------------
new file mode 100644
index 0000000..b76afe2
@@ -0,0 +1,18 @@
+/*
+ * Smart battery dts fragment for devices that use cros-ec-sbs
+ *
+ * Copyright (c) 2015 Google, Inc
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+&i2c_tunnel {
+ battery: sbs-battery@b {
+ compatible = "sbs,sbs-battery";
+ reg = <0xb>;
+ sbs,i2c-retry-count = <2>;
+ sbs,poll-retry-count = <1>;
+ };
+};
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...