From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Ranostay Subject: [PATCH v3 1/7] devicetree: power: add battery state machine documentation Date: Tue, 10 Jan 2017 22:19:57 -0800 Message-ID: <20170111062003.10110-2-matt@ranostay.consulting> References: <20170111062003.10110-1-matt@ranostay.consulting> Return-path: In-Reply-To: <20170111062003.10110-1-matt-sk+viVC6FLCDq+mSdOJa79kegs52MxvZ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org, Matt Ranostay , Rob Herring List-Id: devicetree@vger.kernel.org Documentation on battery properties that can be defined for fine tuning fuel gauge state machines. Cc: Rob Herring Signed-off-by: Matt Ranostay --- .../devicetree/bindings/power/supply/battery.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/battery.txt diff --git a/Documentation/devicetree/bindings/power/supply/battery.txt b/Documentation/devicetree/bindings/power/supply/battery.txt new file mode 100644 index 000000000000..a6ca761e0a29 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/battery.txt @@ -0,0 +1,20 @@ +Battery State Machine Support + +Optional Properties + - nominal-microvolt: dead battery voltage in microvolts + - design-microwatt-hours: battery design mWh in microwatts + - design-microamp-hours: battery design mAh in microamps + +Example: + + bat: battery@0 { + nominal-microvolt = <3700000>; + design-microwatt-hours = <5290000>; + design-microamp-hours = <1430000>; + }; + + charger: charger@0 { + .... + monitored-battery = <&bat>; + ... + }; -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html