From c3503fd02558245ebbb0b48f3ae1d62416e3fd2a Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 10 Aug 2011 21:45:36 +0100 Subject: olpc_battery: Bind to device tree This is cleaner, and allows suspend/resume (wakeup) handlers to be added in an upcoming patch. Signed-off-by: Daniel Drake Acked-by: Andres Salomon Signed-off-by: Anton Vorontsov --- Documentation/devicetree/bindings/power_supply/olpc_battery.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/olpc_battery.txt (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/power_supply/olpc_battery.txt b/Documentation/devicetree/bindings/power_supply/olpc_battery.txt new file mode 100644 index 00000000000..c8901b3992d --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/olpc_battery.txt @@ -0,0 +1,5 @@ +OLPC battery +~~~~~~~~~~~~ + +Required properties: + - compatible : "olpc,xo1-battery" -- cgit v1.2.3 From 6c75ea1e582d12120072cae742a0d63ea8ac8c65 Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Wed, 14 Sep 2011 13:19:07 -0700 Subject: bq20z75: Devicetree init support Adding support to generate platform data when kernel is configured through device tree. Also adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein Acked-by: Grant Likely Signed-off-by: Anton Vorontsov --- .../bindings/power_supply/ti_bq20z75.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt b/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt new file mode 100644 index 00000000000..7571294f411 --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt @@ -0,0 +1,23 @@ +TI bq20z75 +~~~~~~~~~~ + +Required properties : + - compatible : "ti,bq20z75" + +Optional properties : + - ti,i2c-retry-count : The number of times to retry i2c transactions on i2c + IO failure. + - ti,poll-retry-count : The number of times to try looking for new status + after an external change notification. + - ti,battery-detect-gpios : The gpio which signals battery detection and + a flag specifying its polarity. + +Example: + + bq20z75@b { + compatible = "ti,bq20z75"; + reg = < 0xb >; + ti,i2c-retry-count = <2>; + ti,poll-retry-count = <10>; + ti,battery-detect-gpios = <&gpio-controller 122 1>; + } -- cgit v1.2.3 From 1c84b60b813cb10476618b2311a89e31018b2cc4 Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Mon, 5 Dec 2011 17:50:47 -0800 Subject: devicetree-bindings: Add vendor entry for Smart Battery Systems Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index e8552782b44..9f7bef601e0 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -32,6 +32,7 @@ powervr Imagination Technologies qcom Qualcomm, Inc. ramtron Ramtron International samsung Samsung Semiconductor +sbs Smart Battery System schindler Schindler simtek sirf SiRF Technology, Inc. -- cgit v1.2.3 From e57f1b68c4066459ed9e49177cdcefa6973ce9d2 Mon Sep 17 00:00:00 2001 From: Rhyland Klein Date: Mon, 5 Dec 2011 17:50:48 -0800 Subject: devicetree-bindings: Propagate bq20z75->sbs rename to dt bindings Signed-off-by: Rhyland Klein Signed-off-by: Anton Vorontsov --- .../bindings/power_supply/sbs_sbs-battery.txt | 23 ++++++++++++++++++++++ .../bindings/power_supply/ti_bq20z75.txt | 23 ---------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/power_supply/sbs_sbs-battery.txt delete mode 100644 Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/power_supply/sbs_sbs-battery.txt b/Documentation/devicetree/bindings/power_supply/sbs_sbs-battery.txt new file mode 100644 index 00000000000..c40e8926fac --- /dev/null +++ b/Documentation/devicetree/bindings/power_supply/sbs_sbs-battery.txt @@ -0,0 +1,23 @@ +SBS sbs-battery +~~~~~~~~~~ + +Required properties : + - compatible : "sbs,sbs-battery" + +Optional properties : + - sbs,i2c-retry-count : The number of times to retry i2c transactions on i2c + IO failure. + - sbs,poll-retry-count : The number of times to try looking for new status + after an external change notification. + - sbs,battery-detect-gpios : The gpio which signals battery detection and + a flag specifying its polarity. + +Example: + + bq20z75@b { + compatible = "sbs,sbs-battery"; + reg = < 0xb >; + sbs,i2c-retry-count = <2>; + sbs,poll-retry-count = <10>; + sbs,battery-detect-gpios = <&gpio-controller 122 1>; + } diff --git a/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt b/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt deleted file mode 100644 index 7571294f411..00000000000 --- a/Documentation/devicetree/bindings/power_supply/ti_bq20z75.txt +++ /dev/null @@ -1,23 +0,0 @@ -TI bq20z75 -~~~~~~~~~~ - -Required properties : - - compatible : "ti,bq20z75" - -Optional properties : - - ti,i2c-retry-count : The number of times to retry i2c transactions on i2c - IO failure. - - ti,poll-retry-count : The number of times to try looking for new status - after an external change notification. - - ti,battery-detect-gpios : The gpio which signals battery detection and - a flag specifying its polarity. - -Example: - - bq20z75@b { - compatible = "ti,bq20z75"; - reg = < 0xb >; - ti,i2c-retry-count = <2>; - ti,poll-retry-count = <10>; - ti,battery-detect-gpios = <&gpio-controller 122 1>; - } -- cgit v1.2.3