From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E78E1C28CBC for ; Sun, 3 May 2020 15:21:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C37F720836 for ; Sun, 3 May 2020 15:21:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rere.qmqm.pl header.i=@rere.qmqm.pl header.b="lnIMfb03" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728765AbgECPVQ (ORCPT ); Sun, 3 May 2020 11:21:16 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:13571 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbgECPVM (ORCPT ); Sun, 3 May 2020 11:21:12 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 49FV7T5jmtzBc; Sun, 3 May 2020 17:21:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1588519270; bh=UjY8PzZ2ebkIWEK1WXKg4E1K2ulg0fn/7pKxOYcFaq8=; h=Date:From:Subject:To:Cc:From; b=lnIMfb03/Wy1nUudkFAxx0UXiVrRejRZY1depI/z9gcIwMCXPkFr7AX1FhTbV1qlw BJE/FgcpU0fc44DlsO+eWGL/pQDZ/q802TTd9V6eMq1e59mlPRHyM8LkyeJ+eaERA4 HBjRZKhbuhCfOsBtyJasb9/3rc0HkA/iF4whzxAcW7U6esgPx2dRMlf0i8rQ9VA7X8 c0wq0k2N7g/b442BkjtzzlZzSaPspWjOQw0rbEKpzBY8jXl68Gu00Y8LT7Bb19X9zi awzR0+jmkApiNJlAo3zXIcXiNQ2cf/p10+EU9YUBf0sc8VoE0VwDyLt9aU3UKiS8vE lWs0ITADTQAMw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sun, 03 May 2020 17:21:07 +0200 Message-Id: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v2 00/11] power: supply: bq25890: fix and extend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Rob Herring , Sebastian Reichel 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 are cleans up the code a bit, 4-6 fix property value reading, 7-9 add more information to be read from the chip, 10-11 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. Michał Mirosław (11): power: bq25890: remove redundant I2C bus check power: bq25890: simplify chip name property getter power: bq25890: make property table const power: bq25890: protect view of the chip's state 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 | 190 ++++++++++-------- 2 files changed, 113 insertions(+), 81 deletions(-) -- 2.20.1