Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1961114ybl; Thu, 9 Jan 2020 04:40:39 -0800 (PST) X-Google-Smtp-Source: APXvYqy/NK8uwJMD7L/W66JM5xGRe5ggLNGkYdcbMhTmiE/lE+wT07jz37Nax7ro/8qe+iqcNkjJ X-Received: by 2002:a05:6830:2110:: with SMTP id i16mr7971126otc.337.1578573639223; Thu, 09 Jan 2020 04:40:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578573639; cv=none; d=google.com; s=arc-20160816; b=b5yzRF4wKigWl6Rql5aaXG9hiPQTNbr+/P8zm+uCENZGL5uiEU2k4KsSytSIgGnoCW R+peP6vYK4Z/XVxI10v/3p3pYLLebrMrFTye7B2MkC5kSLGMnOWrXF4hWQTmB5XqpKoB Kq4s2r+LGK1hhZQih+bTg0eFpmQYPJtALZovvwGEkVptkuc3nWDMfgN2JHRTM97jdaO7 FhaNTp/CCq3HM4PT3ZHocxkxigZOlLLyWB00ATcfQeg7R5YMk9ehswil75+oZxHCkzIS urmVubj5LHXMFWM0Iu6o7YHexTN9kFdwOYCdT5EaXLd6Re+Ntj5b0pt2aLXreF2GRTX5 9dNw== 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=L8BZAveGiu3pdIgGWbx7MADvGZu/yG/0zEmg85AK6/w=; b=sCE/jf4Yu/9aEOfOD0MSa5gWCf8fTqXdqebLzOI6Tv6/eWemZOuIojurS79HFaiWi4 DcYzXd+R66rYKDwomR2YTxjX5dv4ZBdk5NvhD5Y9dgXDPkqOGGAgaE0YIJnf3987QeNA otWOhO6yacMProHQbB/x3ODW6znF8Jk3j+1DZ0fthzKRVfdU0aDiKD6i2BbDnyTbP9o2 FcJAGjKDf7HzOBZIryoD/ot5TeFhfuOdoe5XeynJvkIH+PjI73MOWdMIE6WLGTChQmsl mJ4kWxFN/dYS0Bn2GE6z2ctrsgZPY460YMjMyZ4yWesAygz0hApLEeIUNbvIYWG+a4Ed ZWeA== 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 g16si3780132otj.79.2020.01.09.04.40.26; Thu, 09 Jan 2020 04:40:39 -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 S1728257AbgAILkp (ORCPT + 99 others); Thu, 9 Jan 2020 06:40:45 -0500 Received: from mail.manjaro.org ([176.9.38.148]:37770 "EHLO manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgAILko (ORCPT ); Thu, 9 Jan 2020 06:40:44 -0500 Received: from localhost (localhost [127.0.0.1]) by manjaro.org (Postfix) with ESMTP id 654F136E4E5F; Thu, 9 Jan 2020 12:40:43 +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 IuGOKE8CgWh1; Thu, 9 Jan 2020 12:40:41 +0100 (CET) From: Tobias Schramm To: Sebastian Reichel , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [RESEND 0/2] power: supply: add support for CW2015 fuel gauge Date: Thu, 9 Jan 2020 12:39:53 +0100 Message-Id: <20200109113955.2882-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 series 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. This is just a resend to the relevant maintainers due to lack of feedback. 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.1