Received: by 10.223.176.46 with SMTP id f43csp4334572wra; Tue, 23 Jan 2018 07:56:33 -0800 (PST) X-Google-Smtp-Source: AH8x22505eRdBps8iZu9sbfaI/p8gOHNiSMYXj8Eg06Cl59Peod+Sze3j990jiG0e6+RHkhfphyD X-Received: by 10.36.86.20 with SMTP id o20mr4263657itb.53.1516722993304; Tue, 23 Jan 2018 07:56:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516722993; cv=none; d=google.com; s=arc-20160816; b=0gyy2rH9nTGr0ORtGLop7AIJd/eBuIDPDmBe/zBGSOs8RMH/dcwvXThKG9D09Pk31Q wfgVLEdf6KJRk6ygq5Nuk1d+qZMD4YkY3hrcCNWuXfA/pa0bE4rA7xzHauGTZjcJD9Hf ao6vvQN2hPJh6zcYugT2QHimuVoFWLlDYWpYECnQn3iFfJG0A40SVVH67C8z+SkPHhVa 9VYSyTxhyHIydomL+REfJCd3ZmmVAsc4y7g5UnUhwChG+0cZSld1LSbytgQqbFYcjGpV 3W5am9RIu7Hw3NTnvhYDVcIDUDbQjeUkfXCgxUW4Y5+4aLwzkq4UnPRjE8SsbU2Xy0r9 s0Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=hcsHCZvqxN5kpkRR8AALI/zDKyEQsKXkjiBazw9b0+o=; b=P0l4+aPHJGa5Hf2JeR8K0x1mrkfvL60bU7uxnAYmVyByMHZlB8eSSgHhGYyOLBardZ jHasAg/TyQtNqeaRTrdmofz0NM0ZpcDIa3NJEgw63L136ar8aSt85zOH7uHQhZTdjjFO fSoSB7Nc+/Rrnyrmz57IeFRdXxO1vdgwTCaEE+8Psp4TClslh/lnHV/0z9bp9XWWm1Dx bk6LtDHe3KXbAZIQZtZBCqEzC+52yY3PPvk6/jVWPJBoZBSFvsqLaalWZj4GkT+OYqSm 3P+G+ppGVQhGEAeKOR0YvXerO2lXKgpuQqz3UTwdhgfUHUACdiW7cw9riSV0SKiuP4QU 2P/A== 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 e22si15864355iod.334.2018.01.23.07.56.20; Tue, 23 Jan 2018 07:56:33 -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 S1751412AbeAWPz5 (ORCPT + 99 others); Tue, 23 Jan 2018 10:55:57 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:45438 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbeAWPzz (ORCPT ); Tue, 23 Jan 2018 10:55:55 -0500 Received: by mail-wm0-f53.google.com with SMTP id i186so2765747wmi.4; Tue, 23 Jan 2018 07:55:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hcsHCZvqxN5kpkRR8AALI/zDKyEQsKXkjiBazw9b0+o=; b=i/cGUpsyi2klShAcfQuOrXmkD5gDxk5IemRqUr8anmuTJrkKc0QZtyLG8MCD/pbDuS V9N2qMW+V/+Lw79sEw/MxIQp1s1wml59yX+khqBpPZ2rh4Z700OMmCQRcEbaheHyyjzc zS4CuZ7YxmnoPB8BPTtiIpSmjU/fc/OH0aQ3s1SohnHQW11nlbs809pf1fkNH/J4Dee6 O7xzzyaudXUFFzn/0atsu8eoVNw05yUsGg/t9CkMk4H2Fg5pdFGwXUha5liP1x6RmYnx TzSPj/ZnHkRoIrW9/HqLTnJ10jPFXgKYVoxPu4yLAK1wwOeWBys3cBEwij+p3MOGxI8F Fv+Q== X-Gm-Message-State: AKwxytcIw6ug1spab+RUc3HBFPWKGgC0DdHAw4XnCw4PSoWWFzPj+fOw KEX08mNBO+7ThLuvjGwbp1UuHe2g X-Received: by 10.80.177.178 with SMTP id m47mr20158736edd.45.1516722953689; Tue, 23 Jan 2018 07:55:53 -0800 (PST) Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id x7sm5065649edi.27.2018.01.23.07.55.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 07:55:53 -0800 (PST) Received: by mail-wr0-f174.google.com with SMTP id v15so1087691wrb.8; Tue, 23 Jan 2018 07:55:52 -0800 (PST) X-Received: by 10.223.168.21 with SMTP id l21mr2915117wrc.118.1516722952463; Tue, 23 Jan 2018 07:55:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.175.80 with HTTP; Tue, 23 Jan 2018 07:55:31 -0800 (PST) In-Reply-To: References: From: Chen-Yu Tsai Date: Tue, 23 Jan 2018 23:55:31 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 00/16] add support for AXP813 ADC and battery power supply To: Quentin Schulz , Sebastian Reichel , Lee Jones , Maxime Ripard Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Jonathan Cameron , Russell King , linux-iio@vger.kernel.org, "open list:THERMAL" , devicetree , linux-kernel , linux-arm-kernel , Thomas Petazzoni , linux-sunxi , Julian Calaby Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 15, 2018 at 6:33 PM, Quentin Schulz wrote: > The AXP813 PMIC is relatively close to the already supported AXP20X and > AXP22X. It provides three different power outputs: battery, AC and USB, and > measures a few different things: temperature, power supply status, current > current and voltage supplied, maximum current limit, battery capacity, min > and max voltage limits. > > One of its two GPIOs can be used as an ADC. > > There are a few differences with AXP20X/AXP22X PMICs though: > - a different constant charge current formula, > - battery temperature, GPIO0 and battery voltages are the only voltages > measurable, > - all data are stored on 12 bits (AXP20X/AXP22X had one type of data that > was stored on 13 bits), > - different scales and offsets, > - a different ADC rate formula and register, > > This patch series adds support for the PMIC's ADC and battery power supply > in the existing drivers. > > Make the axp20x MFD automatically probe the ADC driver, add the battery > power supply node in axp81x node and enable it for the TBS A711 since it > has a soldered battery. > > I suggest patches: > - 4,5,8,14,15,16 go through Maxime and Chen-Yu's tree, > - 1,2,3,7 go through Jonathan's tree, > - 6,9,13 go through Lee's tree, > - 10,11,12 go through Sebastian's tree, I think I've reviewed or acked all the patches that haven't been merged. The different drivers are bound together through the device tree, so the various patches are safe to go through their respective trees, as Quentin suggested. Thanks! ChenYu