From patchwork Tue Oct 23 18:53:19 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: 10653585 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 19A8714BD for ; Tue, 23 Oct 2018 19:50:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01C712A2FF for ; Tue, 23 Oct 2018 19:50:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E8B222A385; Tue, 23 Oct 2018 19:50:43 +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 7E6D32A3A5 for ; Tue, 23 Oct 2018 19:50:43 +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=MSoVrnq6J3l5AIkSDS+veXGkMjneyKaFRaq1Vo8vUyU=; b=iCf EaUvEQOml/y6FGsjnjzGtzBbwuupKe/T/A4VwayIJtHcWJTprWoJ/QJ9vGdgrgcLgoKC4zNqyvFmO TG5dn7jfgYxCeLUQGPIRVcD5qn8kFrO8x10M9qG16SiLGxvQ1Fg1TrSVfnOFMwpxHoF9ok2nIiKlJ JppIHAtmzVJzztJ88boeaThc77scLlVnIgWwRrwvSDrGfdMQo/kZfYZChEw4OJx47lWM1Z2bBSpQO TGiKiaQxx01SrFVOwYyDfzVCkzqxpqvfRuhHYKZViqL7xW/EtG4Pl7NYHWpvcD0dfev++3UnflMVd mGQz+/2T2pxyxaNMGWT+Lf49OgGtJrA==; 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 1gF2hL-0000aC-BT; Tue, 23 Oct 2018 19:50:39 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF2dp-0006HC-V3 for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 19:47:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3WtXb+M3j3UJqfEYPC2AsaxrQFvA3cSBWemD4kJ3C0I=; b=MTb0YUa6Njsu5hmsvroGzB71x /7E41qvIBBsO4XVN/llcviAsgbndd47YhxgG6wg1B9MyxNmv5EKnr/D3sTOnAhefUWis7qOwS0kX6 K1809VOfFmvTC3G2nNMwqflOl7rhaiZzZSaZhElNzCP6Yw4gRA7Ciiafvh4429XPtAcm9R3YOp1bQ sHEmhX/oN5sDMIJKiANWto0GKBTGx8Rx3vIN+uvcPjTyJLRDeINBtF0/QODSHHwzEJodkC17+EuYZ y6qBiX+WelzH+qcUbcAgnUm+S3e13XlolGHKRU6wNY38ohN/6AQYx8JYsR0frYxMqd2Jm4k7xIyEj PpqgRmPfQ==; Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF1op-0003nH-Rk for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 18:54:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 9DA431F99B; Tue, 23 Oct 2018 20:54:03 +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=1540320842; x=1542912843; bh=dLKEcdkQFQP0oB 7Ik7mNLcEwf/JVBJZXJTobmbQgcV8=; b=sfsiuFYs50ByKX9aX/ZHT7jdBC7cxw UX3420uES2T/A2j/Xz2eCvdVkFTAAQTz2j1xghAl5RPvwhUs2Sd3+rMjV5cJ08Qc 7FehyMumeYpfpK3aC8vhIXh3SE4zFrslrLhgB/gfFMpnwEx6y1Pb+54muV262gTz 0pLNS02denJga6moAKP9fZqBixExzRgC4m9Gp0UQCahrCQJOwRL/T6BZMO6BjDod 0667pNu6KN1DNRFS/d0I1kZ15+roP850LevgKYJ7OGQpv/39AHCPxezQgWPvucno 0cFP4ixGDGjJI1eHeVzlm8uE9Mfw/r8fMxIDHMW5BE6OAIZvDO37pyjf+oaiHr+X SGOcIF6Lf4ZtARLu/OK0TjqECeuUC5BfynV+PsRotdw+vvlFb+/mfGkdOfNL0x9B uFjjRUuva1fBGCUyhUDX77u+Kjc7B89zjcXhsh+w895fV2+r3oPlH19YQ7dRQKIH nG2NHLZR/CQwhhvsuFHQO5WLvKjsuWajx7MeQbrPeKyjI3avuEKhxiaRRk3M8MZ7 O0zRDM3nDRWo8PDL3kRBMuUJdUYiaABfuaSmM1jV7ilLSdeEQ4eWRGH1e1P10x7o NetYQZFBQTjfY5++5/sj4YdkePEIeRBQI6K2tgFXIbIO7o96iAezUcR+acOrYUeb xA+AuMWBFGM3M= 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 GVxYQSJfi7SO; Tue, 23 Oct 2018 20:54:02 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 110F41F984; Tue, 23 Oct 2018 20:54:02 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 00/11] AXP8x3 AC and battery power supply support Date: Tue, 23 Oct 2018 21:53:19 +0300 Message-Id: <20181023185330.10472-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-20181023_145420_086148_D6CA399E X-CRM114-Status: UNSURE ( 8.91 ) 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-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , 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 AXP813 AC power supply support with input current and voltage limiting support. AXP803 AC and battery power supply support. Changes in v5: * Return correct input current limit for values 0x6 and 0x7 * Add specific compatibles for AXP803 * Change commit messages * Add Vasily Khoruzhick Pinebook DTS patch Changes in v4: * Change order of axp20x-gpio in axp20x.c * Fix indentation and spaces to tabs in axp20x.c Changes in v3: * Reorder ac_power_supply DT node * Rename axp20x_ac_power_set_property function * Split mfd commit Changes in v2: * Reuse axp813 compatibles for axp803 * Refactor axp20x_ac_power.c Oskari Lemmela (10): dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding dt-bindings: power: supply: axp20x: add AXP803 power bindings dt-bindings: gpio: gpio-axp209: add AXP803 GPIO bindings dt-bindings: iio: adc: add AXP803 ADC bindings ARM: dts: axp81x: add AC power supply subnode arm64: dts: allwinner: axp803: add AC and battery power supplies arm64: dts: allwinner: a64: sopine-baseboard: enable power supplies power: supply: add AC power supply driver for AXP813 mfd: axp20x: Add AC power supply cell for AXP813 mfd: axp20x: Add supported cells for AXP803 Vasily Khoruzhick (1): arm64: dts: allwinner: a64: pinebook: enable power supplies .../devicetree/bindings/gpio/gpio-axp209.txt | 2 + .../bindings/iio/adc/axp20x_adc.txt | 2 + .../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 | 33 +++++++ .../dts/allwinner/sun50i-a64-pinebook.dts | 8 ++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 8 ++ drivers/mfd/axp20x.c | 20 ++++ drivers/power/supply/axp20x_ac_power.c | 94 +++++++++++++++++++ include/linux/mfd/axp20x.h | 1 + 11 files changed, 178 insertions(+)