Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp664069ybl; Wed, 11 Dec 2019 05:40:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw738cfIUVqgJmhXJ0Z7Kd4ltL7c5UWoSTatN6Eue4YdO7PVnv4DHSk3kViwpydkaCPYZfr X-Received: by 2002:aca:d507:: with SMTP id m7mr2678145oig.48.1576071657879; Wed, 11 Dec 2019 05:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576071657; cv=none; d=google.com; s=arc-20160816; b=dv2LLEEMqLifTj2DO8hL92r1ea79KAQ6OuAEg6r/OMk30MlIw4n7eQOrbddx9m0dkZ YOUM7hJ5lJpgjVzSWyRq/mQyZaf8rJ1An7AmdChHAHAHrnVG15S2qzG9bYffmTyUmZHo BYjxjKKFCH9sy03z8p5utJeflvUSDi61UYn/deUMOzy5n00j6Wi095vFecWlpBrI9rfl i57Ro+/fKuQFHLeo0R61Sait0pj9Eus/0Kd/nyuDOt/zx+BLCnFGz9l5KDh54WdZfNOx HxvqOo8Tz6/ZiooqcF7tXz4pIcNgo61sNL7QymbibmPZhluIaxaQZN62SgPlhS5isEIJ UkTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2GIW7//kGFQtwdUaoVDrcmvKKi3HpYoKvSSp2ZhuBTg=; b=pI52DUvLtcX2wF0WyQhXcHozT3HHDpKLso1178jSWXwBhj7QPCjHkmmnvf6QKENYBm MG4TqS7uDgOaKTJbYAwZJcfGbJznf6FFFR5LSSLJcaS+UqSueN8QE1ApWSqn+jNBe91A GzFhtCrBpGM1AYTwy057eMSVzRUDXCHGqFEwOkNv0vu9lxsESr14PGlR8GIz1jtXP3cA BY9MkrfYSiOk98ThbZuo8UifAUORrUw5uzuOrOw/9Lguo+FklZSEMZlYrLQ5lHMmPMq9 hLquwTxCJwvkxy9RO2Nc98JkOf3s83QOs3Zooxs9GNDCJUQ6t5GbMIzF9gYm2sK9qiKd Cg2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si1076853oti.173.2019.12.11.05.40.45; Wed, 11 Dec 2019 05:40:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729590AbfLKNkP (ORCPT + 99 others); Wed, 11 Dec 2019 08:40:15 -0500 Received: from mail.manjaro.org ([176.9.38.148]:36224 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729438AbfLKNkP (ORCPT ); Wed, 11 Dec 2019 08:40:15 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 16D9636E237E; Wed, 11 Dec 2019 14:40:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z1cPnLJeGh3p; Wed, 11 Dec 2019 14:40:10 +0100 (CET) From: Tobias Schramm To: linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org, linux-i2c@vger.kernel.org Cc: anarsoul@gmail.com, sre@kernel.org, pali.rohar@gmail.com, david@lechnology.com, afd@ti.com, Tobias Schramm Subject: [PATCH 0/2] power: supply: add support for CW2015 Fuel Gauge Date: Wed, 11 Dec 2019 14:39:28 +0100 Message-Id: <20191211133930.7488-1-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for the CW2015 Fuel Gauge. The CW2015 fuel gauge is used in Pinebook Pro and some Raspberry Pi UPS HATs. Most of the code has been written by Rockchip. I've added devicetree support for power supplies as well as the alert level and done some general code cleanup. I'm submitting it now as part of an effort to get full mainline Linux support for the Pinebook Pro. CCing some maintainers of other fuel gauge drivers here to get feedback on this patch. Tobias Schramm (2): power: supply: add CW2015 Fuel Gauge driver dt-bindings: power: supply: cw2015_battery: add device tree binding documentation .../bindings/power/supply/cw2015_battery.txt | 37 + drivers/power/supply/Kconfig | 7 + drivers/power/supply/Makefile | 1 + drivers/power/supply/cw2015_battery.c | 962 ++++++++++++++++++ include/linux/power/cw2015_battery.h | 122 +++ 5 files changed, 1129 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/cw2015_battery.txt create mode 100644 drivers/power/supply/cw2015_battery.c create mode 100644 include/linux/power/cw2015_battery.h -- 2.24.0