From patchwork Sat Dec 8 17:36:09 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: 10719657 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 D2E0C17D5 for ; Sat, 8 Dec 2018 17:39:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4EA72B211 for ; Sat, 8 Dec 2018 17:39:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A79152B217; Sat, 8 Dec 2018 17:39:40 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 5447E2B211 for ; Sat, 8 Dec 2018 17:39:40 +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=1qbYTscBKa06Ludd6V2H4gOToP1jIA2aRNhBHQu4FJo=; b=OVc TAjGouBHFgOd1WnqSi5BNpaNdLWEgdkLxmcLCY7fUfwCsC1nWF9bgu7uoy+kqbinlhsSBY3FxqC/u jUiqtw/9OuHvgMX+9GTGYz6PNdgsCB94GO9pPZOJ1ZpBTl3ymm1Qra4sYaH2O9oTTKu+bnbk1YYbQ Zk3GVdAiPEv/qzx2F/6bM+Kqi6/St3HBWtSUB3IC5KGxiGFHwMZM0scqfo3Cx8fsfgSqbkyN7AgwU 9sUubxYeiBWEfssJxW1fgz9nKBcyPedMOxhWIX1g2PwwNAjsr44Xh6NcnvNRjhVE3XrTfQmkR6swu jUGILWMRqeuTSodQoBqqhhP4EVG0nPA==; 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 1gVgZi-0006Ny-AV; Sat, 08 Dec 2018 17:39:34 +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 1gVgYZ-0005Jp-2B for linux-arm-kernel@lists.infradead.org; Sat, 08 Dec 2018 17:38:26 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 98E6520791; Sat, 8 Dec 2018 18:38:07 +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=1544290686; x=1546882687; bh=0Pau1t2uLHm0gx 3d62knvUIoAPmSdr+RCvfuDsyGkaY=; b=sFHfaNIi4kss1Hb5upa1tXz5K52GyT XB6FNKDbxHJh7/XLCSlwSFsHM3YmWQO6UDFs0KxGCdYuEOBKnn49LErT4T+Wq9Td mlD11cGpwl7kyfRF9D7cziFquNqJOQtCiVWlQpZrttVC/Dc4s5TaAIQ63j2tYzFN FMZjUoBkG0XbzfmI91+I9VG/dug9Mu4A7Xxdix1nx96mWCVOh01PoXHkXpArNFSq VekoULuORwHbWCD350OB44oLelmB/I4BI/ko9kknRvIX8/7zeu5V3GHcANbRH0un 9bAXjq5E+15oxiN2C+HArIrMoZJ9M5msv/FR2U0a8S/Y25K0y7RZizcFcVUH6bvi DIGBIrqPYFvp2R/+TrN6K6pv0IbPV0KiBlUIDOKNzC5KsAXVApA/4Cv7tVbHlnS4 4mWrNA0VbABc5hUyb9A6UkAmj7NA++XGgLXsPCW3S9NW6GeuMtNmcF8v5HJWVMlL X1WfjdKOuhnBwxOAlbjuqHw/gzBILjkmyVfzApbYmEAWfOpBefcmrgjsyW5TRSE9 nXGm0IvkR6yTSf/89vf7eZ2J0XscXD0+u6vWD1Fl6OCASCyfRRB2LJyEP16aB9+j mLQa9Mz3AIFC9J1K8jAP9NbkV/8NWJ0tlkcwcJ7GcoVsj5wm03yPFWwXl0/bVnfu GDpD/NOmrwGgU= 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 pImGOoLzEQbr; Sat, 8 Dec 2018 18:38:06 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 27B211F965; Sat, 8 Dec 2018 18:38:06 +0100 (CET) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones Subject: [PATCH v7 0/9] AXP8x3 AC and battery power supply support Date: Sat, 8 Dec 2018 19:36:09 +0200 Message-Id: <20181208173618.31395-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-20181208_093823_471072_E16AE393 X-CRM114-Status: UNSURE ( 9.29 ) 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, Oskari Lemmela , 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 v7: * Added re-align patch for mfd cells 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 Chen-Yu Tsai (1): mfd: axp20x: Re-align mfd cell entries 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 | 126 ++++++++++-------- drivers/power/supply/axp20x_ac_power.c | 94 +++++++++++++ include/linux/mfd/axp20x.h | 1 + 8 files changed, 222 insertions(+), 56 deletions(-)