Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3952275ybz; Mon, 4 May 2020 12:49:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLDew/kbC5z9ej2wRgK3vb/BRpBBBavtONJcGgktAI2i7b0jzUWBcqE8w70zUTWo3Csl4Lf X-Received: by 2002:a17:906:c82b:: with SMTP id dd11mr15576644ejb.216.1588621774418; Mon, 04 May 2020 12:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588621774; cv=none; d=google.com; s=arc-20160816; b=YZCS/hTiXuCDLOPLCB/cm+TIlsZcL3BiQaaCftplJgo+B6XUl0bhh7a0vUk3rsL852 9YrBZlYhv4H7JBznvmkWh+2mxHaV4EwjHiTTKY0/fwFx0F8unegldAlZqxPsiIKSbP1q Hxg/TXIyB1ejCGKZfa/6srthVf4xg5o1ZpJyAHoOVoW1OkxRU5VLwUQCWUqqtghBgdVG tIOmVlOC5CNeuuZbSWfCj8meMgr+xL1WmdyJuat1RnSWwBwjJ4JFmsTnkkM+lcAZWXF1 53c3072CXZ9xmC5+ARseJbqw35rMM0PdKmab0i1FgcXlF/jIE7MW0C1E+obg2LCXHXwZ vRGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:content-transfer-encoding :mime-version:subject:from:message-id:date:dkim-signature; bh=jfUQQhR2BmkJ2SiW8wZ+6jZuCO49cMPRYzprhFLr214=; b=D6aNkknvfrnTvnm0wqrMH+2NffrXvHOTKsCFNMstmHl1GjbAKP6qZNr6P2oG3gce0o gkYxqD2b4jmcD15kIwTaThLulDG4vRz9stGgbCm8M5A3J97SnUn7CW8ZZ+ejt8yeT231 vTix7K2xUXhVPcR8kzVgT0jKt63I+B5R925eCjzKDl/13xr2RSVsZ0+DM3p90iBrlEcT C3w7OlyI1fiomTgMNYqkU6oN3UBVyi2E9UTSEc0LL7afOeC4YlIydd7HUgmpgAFgIBCC nVL69tn3uk3bHUPjfKgjI//JWEluXMPC8Z6YJugXlE8SwX85u9pNEq7hseq5Mu137+vW 8r9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=d4bFSvGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si7355392edn.415.2020.05.04.12.49.11; Mon, 04 May 2020 12:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=d4bFSvGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbgEDTrc (ORCPT + 99 others); Mon, 4 May 2020 15:47:32 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:10499 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727777AbgEDTrc (ORCPT ); Mon, 4 May 2020 15:47:32 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49GD0K42qCz9Y; Mon, 4 May 2020 21:47:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1588621650; bh=25E4+7GJWRVGLEPBw92wrN02s487IK+3yN9N7dS+Zts=; h=Date:From:Subject:To:Cc:From; b=d4bFSvGenemYIbtwAVLvG1Uw29bejoY4D7PBYLz34HyUrmKW/NvbrG6pzgJn7vkn5 RRjcUgEqVOHOi546OSCekC4mXTeQkLvyvzJGVjhrTpWITSmbmUPDuDB6zqciNQIG77 dvoAAcw1NEJFECIoLm5e7JnujE97DLH6nOL1M54mJ4+HPXXgihm08+h9FKAzvFne4o xmmpuHTGXbmJDRlNIQI4bwRxjMvzjUm7Sh4aphUHyuUDLLMFG0geZMBYVN7qXpMd0B 2+wNu2C+fiFObUUz+t89AlGsXCLWLSfaG/I0sLOgC/UYBywBMLRFm1aInr1j9HxEP8 gioyX7v4xP0fQ== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Mon, 04 May 2020 21:47:09 +0200 Message-Id: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v3 0/8] power: supply: bq25890: fix and extend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Angus Ainslie , Rob Herring , Sebastian Reichel , Yauhen Kharuzhy Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series consists of a set of fixes and enchancements to bq25890 driver. This is tested on a board using bq25896 as battery controller. Patches 1-3 fix property value reading, 4-6 add more information to be read from the chip, 7-8 add IBAT compensation support. --- v2 removes VBUS and VSYS additions (they need more intrusive changes to properly fit into power supply class ABI) and adds binding description to IBAT compensation devicetree properties. v3 drops cleanup patches already applied and reintroduces a patch to fix IBAT reading property ID (patch 1) Michał Mirosław (8): power: bq25890: use proper CURRENT_NOW property for I_BAT power: bq25890: fix ADC mode configuration power: bq25890: update state on property read power: bq25890: implement CHARGE_TYPE property power: bq25890: implement PRECHARGE_CURRENT property power: bq25890: implement INPUT_CURRENT_LIMIT property power: bq25890: support IBAT compensation power: bq25890: document IBAT compensation DT properties .../bindings/power/supply/bq25890.txt | 4 + drivers/power/supply/bq25890_charger.c | 99 +++++++++++++++---- 2 files changed, 86 insertions(+), 17 deletions(-) -- 2.20.1