From patchwork Mon Oct 8 18:19:01 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: 10631209 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 62C01933 for ; Mon, 8 Oct 2018 18:21:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57697298FC for ; Mon, 8 Oct 2018 18:21:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B0B12991F; Mon, 8 Oct 2018 18:21:06 +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 BE018298FC for ; Mon, 8 Oct 2018 18:21:05 +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=jQ1MT8HLD3Gk3Kiz4tLL3JABW/WOQ+aqzR3IYP5jXoE=; b=LYQ LatfrdgGFxcxwc20b8SXfYiMEqO4W4vtElUynU+Exd3joBmjytHo2etNGxZPyovovwpPMrEJsRq2d M88UAWV7NyWCEcw46iC3ZfOBGd3kLSifaHF1gqodjUVBcYCS96Eb5bShWSXAm7YsuAmM73FEQzh0E ZTtwyIBXf1e/OiX9S77dMgMS6+76tY1gQK6tvNGjC9t9ZP33W/2LqR4LFlY5ao/fy+H+vUb0vSDg/ CI/G1s2jKux61E83r6DQctg2ErEjjrwseZpr2sEiByuBB0q2WW5b7y9OvLMUD8ED4TAx/GACF16HF N2XB1M17YZ3etMHxm2w3QSgMgMu+v9g==; 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 1g9a9E-0002iG-RN; Mon, 08 Oct 2018 18:20:52 +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 1g9a8e-00011D-In for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2018 18:20:48 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 583462092A; Mon, 8 Oct 2018 20:20:00 +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=1539022799; x=1541614800; bh=XwIR79O3FcL1OK 3t6jAk+zFJUbfkP6n2gD5rPprP96g=; b=kSjTjqCE9627GtlE/Iqlx42IvnAGIa BPQLPyW2JILLV0sm8kSb936jXny/YBXM2rpziiUC+t71WXaUs+GsF1//wVR+Cwtc BKei9LgObRxEsmtVR3fRp/HRI86X2Z6sK83F5g+6r8e3UAGrCfQTex01yg5PP3+F aM7gDU12Od6yIHtjbU8mcDuR0wm1ThMuSGxWpf1sFTY1SiYHOGKjMiNvZ4FsgSG6 EtbUhWnbN+/7z/1sdf19SI16kvX80TtIVIRh1Bh6RuY7WqSFt/k5PXeLYwKO+gSu 00Fp1fQi61nB/dOwh7tCtkI98NeZsxMqMfbyWUksTDmCG/aKfQFnjEDadLNkykw8 CLZdwfhjsb0IWKd0NuFPEpBlfwvYtfo+e3FE1obNqtoUftxwvlNL1uTtUBs18iT5 UmSZysNu9rEn3ISPBeLAsFF0D5CVzbnr/E6pJ2aAE79Yubh80a8v3FMqQ9eDwprN 2mzFTospbqfyBw65aqjjeU1XeIoZBTiT8Gcep8yv9h4fXbCzn/7KNFIpdY5jE0gl JIAagHGlK8Vkpo+i3nn41g2PagbmlX6bn0QJuEOqYLsDU9O1JLK8eZGP2qOM8oD1 hlOrJuMTl8hK7/FaXyAvZYM+m5FzkamsLEaahz/SZ0ulu3yg7JCWrHhhdaZTkG7D TlVXJD7tiuSR4= 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 zv-w5eABDNVh; Mon, 8 Oct 2018 20:19:59 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 245981F99B; Mon, 8 Oct 2018 20:19:59 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v3 0/7] AXP8x3 AC and battery power supply support Date: Mon, 8 Oct 2018 21:19:01 +0300 Message-Id: <20181008181908.9456-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-20181008_112016_800566_E2F7E57B X-CRM114-Status: UNSURE ( 9.45 ) 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, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Quentin Schulz , 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 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: 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 .../bindings/power/supply/axp20x_ac_power.txt | 3 + arch/arm/boot/dts/axp81x.dtsi | 5 + arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++++++ .../allwinner/sun50i-a64-sopine-baseboard.dts | 8 ++ drivers/mfd/axp20x.c | 22 ++++- drivers/power/supply/axp20x_ac_power.c | 92 +++++++++++++++++++ include/linux/mfd/axp20x.h | 1 + 7 files changed, 161 insertions(+), 1 deletion(-)