Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751850AbdIJUua (ORCPT ); Sun, 10 Sep 2017 16:50:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54792 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbdIJUu3 (ORCPT ); Sun, 10 Sep 2017 16:50:29 -0400 Date: Sun, 10 Sep 2017 22:50:26 +0200 From: Pavel Machek To: Liam Breck Cc: "H. Nikolaus Schaller" , Sebastian Reichel , LKML , Discussions about the Letux Kernel , kernel@pyra-handheld.com Subject: Re: dt-bindings: power: supply: bq27xxx: Add monitored-battery documentation Message-ID: <20170910204822.GA14100@xo-6d-61-c0.localdomain> References: <38AF5486-7D86-4D98-AD74-AB2FFC81E8D0@goldelico.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 34 Hi! > > Values match the 6000mAh specified by DT: > > > > bat: battery { > > compatible = "simple-battery", "pyra-battery"; > > voltage-min-design-microvolt = <3200000>; > > energy-full-design-microwatt-hours = <22200000>; > > charge-full-design-microamp-hours = <6000000>; > > }; > > > > root@letux:~# cat /sys/class/power_supply/bq27421-0/uevent > > POWER_SUPPLY_NAME=bq27421-0 > > POWER_SUPPLY_STATUS=Discharging > > POWER_SUPPLY_PRESENT=1 > > POWER_SUPPLY_VOLTAGE_NOW=3943000 > > POWER_SUPPLY_CURRENT_NOW=-634000 > > POWER_SUPPLY_CAPACITY=82 > > POWER_SUPPLY_CAPACITY_LEVEL=Normal > > POWER_SUPPLY_TEMP=319 > > POWER_SUPPLY_TECHNOLOGY=Li-ion > > POWER_SUPPLY_CHARGE_FULL=5467000 > > POWER_SUPPLY_CHARGE_NOW=4611000 > > POWER_SUPPLY_CHARGE_FULL_DESIGN=6000000 > > POWER_SUPPLY_MANUFACTURER=Texas Instruments > > root@letux:~# > > > > Anything else I should test? > > Could you also test voltage-min-design-microvolt at 3177 to make sure > that's configurable too? That should be 3177000 microvolts, no? Pavel