From patchwork Tue Nov 20 17:52:03 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: 10691003 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 A713114E2 for ; Tue, 20 Nov 2018 17:55:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 960EA29865 for ; Tue, 20 Nov 2018 17:55:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A7D4298A8; Tue, 20 Nov 2018 17:55:51 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 3F4612983D for ; Tue, 20 Nov 2018 17:55:51 +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=akqvulaw+5AzOP52i3FmEktysV1wA8IkK3gaAvBc0CU=; b=NqQ sUzSeGRTFWI+WVho8P1oMcSakpGXFYl0Wq/sGBTySNM8QInqcbiCn0qc02KVbTXkEzjtKWj3+8PMn WHGdo8/hEpKdINcRWCZou4xwRlYTdVbuTAzqpMiH09jYd3w1MCoNclXGcKbFKVbxZA10WJxqCSNA6 E1goWE0r8ej6i7w+SvUZRtI6CO746fshbsqhJYfazyTSaqOQE+xphDI9bkhv3IFguEBxdxqcitsXW Oyu0gD4tF2r2emoIPD5CwDMvAo3lqSiQX4BfLExY8c/JXl+Nj5HcjtF3t/Xl9jAW97MrbwuBRoD+M TP+QATe+E16YYiHixLR6Gp24OXYvG8Q==; 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 1gPAFZ-0000Vu-PX; Tue, 20 Nov 2018 17:55:49 +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 1gPAEv-0006CU-Qu for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 17:55:13 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id AF5E120657; Tue, 20 Nov 2018 18:52:26 +0100 (CET) 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=1542736345; x=1545328346; bh=+ET72hOoPy+htZ 8oxRxR+M1HOtELH+9m0h7EtjNd8m0=; b=hAAC1g5+V03YV5MYRrV9o0V/Isgymd JWcgLRocm5SmnfH1vH49b2s/FPWQxuKiidAq1o1xHdaXRSML6TkCxxVEt+uSk1+9 g7Pn7/XqcwdamVucVxK42Fben8MEiBcGRWGvjmVFbT/GbaxtQ3vrew6LzQX7T460 JrAaPfXHQlQPepQypu9EOpuO1I/odKD8C+1eaFWlRA1d31fmfc/C3LSo5PDIIUS3 5+ADg4+cPHnXiuJ/pCF3ZuTeNA/bb4RPaiAPlTUTl9z3Z743oh7RdtuTh6BZSHzi pfHpC8IKuiaxXtirsP8LYJYEIgge01em2ija+Vm49bs5ByVsOFlLCxgA/R5hO9Ja bXUVBVBWg8VodxU7qDmuFvkg1cCxnQuoq9ogYoz6bhT7KdCF979HpoKGJMPYHQ1R rwvrau/EYWNr7dWoepz+ojTeomv+MQlA4xtU0PBQNVi/p9yWmZbPD6X+IBfadv9e SQInyHKr1saFgl7t0g3UfkWFkNnIDGaoSVSDytHLQziXofE7gLC1uNODMfIT8ZBG VlOjfELsS/6LMQfnr8Q4COGpwWwdmcPR/UF0X9H+X50c+2GbvvEm+X6rIss/yvcX TqS+obaqEAm0AAa+2uwl1oQ/HF9HoJybawTWKvqzk05QLcMB+sOLEGkLdSKss7IN sJ4JgcEsXNhpw= 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 CDaniPrPNYVg; Tue, 20 Nov 2018 18:52:25 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 47FF91F99C; Tue, 20 Nov 2018 18:52:25 +0100 (CET) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v6 0/8] AXP8x3 AC and battery power supply support Date: Tue, 20 Nov 2018 19:52:03 +0200 Message-Id: <20181120175211.3913-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-20181120_095510_379450_ADEEB511 X-CRM114-Status: UNSURE ( 9.44 ) 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, Quentin Schulz , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Oskari Lemmela , 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 v6: * Collected tags * Rebase to master * Dropped AXP803 compatible patches 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 (7): dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding 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 .../bindings/power/supply/axp20x_ac_power.txt | 3 + 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 + 8 files changed, 172 insertions(+) Signed-off-by: Sebastian Reichel