From patchwork Thu Oct 4 19:34:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Oskari_Lemmel=C3=A4?= X-Patchwork-Id: 10626543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 260A0174A for ; Thu, 4 Oct 2018 19:36:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1488129546 for ; Thu, 4 Oct 2018 19:36:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08B4E29638; Thu, 4 Oct 2018 19:36:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A6E6829546 for ; Thu, 4 Oct 2018 19:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=thkB/t780ylMWfWnaliAtJAknFnOfAIDupqVuVBpWVk=; b=qOO 8F0PHxuUD3XYL9ASTMpd8wqwO2/XLki+ehWBiRrt6r7giPOuQTr4BwS9g5CX0VyaB/vYvqERigdTb 6he7l/hCfijsRWDNtSx+kFJ0YSXZDbdm735esC3QDcqhKWqZuEKiXDpI88cz6ljQnNkrNFXvX+4yc XR75jMWFOYdgvQ4kRQ2gUcoefkSCFoGDaZ989FkSxet/S5n689pWfOu1m7zx/5DOFdMd/ihjpcojN J0QzUMZEjGSGc0ROSK0LHfm/ocdRZmFix/jE09fNoHKw7q99GdC1YtH2Qa4mJxkY8ibnoaOoEDnE6 Lo7lMQvXsEkF4dmQCBjR2gqxE/l1qnQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g89Q5-0005z6-6n; Thu, 04 Oct 2018 19:36:21 +0000 Received: from mail1.kuutio.org ([92.222.216.83]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g89Ol-00046K-Rd for linux-arm-kernel@lists.infradead.org; Thu, 04 Oct 2018 19:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 2941F1F939; Thu, 4 Oct 2018 21:34:42 +0200 (CEST) Authentication-Results: mail1.kuutio.org (amavisd-new); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=lemmela.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lemmela.net; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received; s=dkim; t=1538681681; x=1541273682; bh=2lmrm9ERgOon4b q8ddlI1H2P70tRgbnivAMHkXBG8E8=; b=RqWlLjhcOWmzQijZPVNzaYxZOHQO0q herQqev1TQE9wtOmJFuzA8SKbOapU8Pt0hDYJ/FP6iaa6KnTxv6Gt5VpgAK7dlS3 kwMbA3RUu1/WLMeoK9JuQmZZw+tydqztc5Tg/DqEv3DZlHwth2Vmd3wgfKebpZsW uc34nN1hVZ0j3S3i0lBxWVwhJRq33JbaQtHCFDAthopB2/XezZImIKmJWliczf4r 6HCBaz28tcD7mQp3kYG/qVXkSnWQb5jeNNDXA8EUZmSHfbgarJR6MKr+gZcr0bnk GRdkNlrWUtoJmf70dW8CwCkKYB6+hyij9dPsaOQbuark6RM/RqNLmshwP+89ianz mj0rgQNG8vjWwq9EqpTGWIrrokPv/Z4QqHJhH8hMrroP/OZVvSMmd2icKvPr6IVu pHyaw/zuIGJEa7PeyJgy/gDYoFTZHnCdi9ENWhcyPuqKszTbC0Xp6rI9llYDNI92 +RC8wMRvktgvbJJM8umxwptuvT1SLHfTYViyUVs3GN6OWhiNfX70T0EWF9NcdqAm sr7g1JFcX9wvUywb7eFZMCaCFdCn4THATIoIX9JeSXjVlUiGUq0liY3CaYQCkt3m dLry6ceIJEMtGTldXONDVluvo2t8UrDphzlq+uCCWoH/oe17jnd6/oxE8S7GnWD1 r/Ry36Odm8iJM= X-Virus-Scanned: amavisd-new at kuutio.org Received: from mail1.kuutio.org ([127.0.0.1]) by localhost (mail1.kuutio.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id r8n3SQyDBlpn; Thu, 4 Oct 2018 21:34:41 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id CEFE71F99C; Thu, 4 Oct 2018 21:34:40 +0200 (CEST) From: Oskari Lemmela To: Maxime Ripard , Sebastian Reichel , Jonathan Cameron , Chen-Yu Tsai , Mark Rutland , Rob Herring , Linus Walleij Subject: [PATCH 0/4] AXP8x3 AC and battery power supply support Date: Thu, 4 Oct 2018 22:34:06 +0300 Message-Id: <20181004193410.7265-1-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181004_123500_039184_361EE35C X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lars-Peter Clausen , linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Quentin Schulz , Oskari Lemmela , Peter Meerwald-Stadler , Hartmut Knaack , Lee Jones , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP AXP803 AC and battery power supply support. AXP803/AXP813 AC power supply support with input current and voltage limiting support. Oskari Lemmela (4): dt-bindings: add compatibles for AXP803 AC and battery power supplies ARM: dtsi: axp81x: add AC power supply subnode arm64: allwinner: a64: add battery and AC power supply support power: supply: add AXP803/AXP813 AC and battery power supply support .../devicetree/bindings/gpio/gpio-axp209.txt | 3 +- .../bindings/iio/adc/axp20x_adc.txt | 3 +- .../bindings/power/supply/axp20x_ac_power.txt | 4 + .../bindings/power/supply/axp20x_battery.txt | 1 + arch/arm/boot/dts/axp81x.dtsi | 5 + arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 8 + drivers/iio/adc/axp20x_adc.c | 1 + drivers/mfd/axp20x.c | 22 +- drivers/pinctrl/pinctrl-axp209.c | 1 + drivers/power/supply/axp20x_ac_power.c | 194 ++++++++++++++++++ drivers/power/supply/axp20x_battery.c | 3 + include/linux/mfd/axp20x.h | 1 + 13 files changed, 274 insertions(+), 3 deletions(-)