From patchwork Sat Oct 13 08:08:41 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: 10640025 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 597703CF1 for ; Sat, 13 Oct 2018 08:10:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BCA02B1C3 for ; Sat, 13 Oct 2018 08:10:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FD0F2B201; Sat, 13 Oct 2018 08:10:54 +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 B0E1E2B1C3 for ; Sat, 13 Oct 2018 08:10:53 +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=hKve9sEX+czh+m5FPIc0sDVcy8DpxRJnRSIOzPAAfM8=; b=jWB D1uOFSAuk2cohelNMLAPFIEkVh6faYap10gu98GaDyG2bmlum7/GcVXmb1tl20FRVCKvsm1StAYUM EYQK7F+cHs65P2QoRzh35yfdwk6ZqSyqXsozzJwt9r41vAA3C8PalVBWiYSDeV2NhCZwYY8wXejGE M0mAa2EvCbmMdCkCr+Q4Or+CoIxVOec9yD6m18GTvC44c4jCVj9vuntyCl9AKcsns78AloT0fwJL4 SEgDAA/M4wTZPLd4C+MSkyQsndV4om5nMOiir8EDueKgqNpS1Q+QtiOEg9xCVBId3PEZqd7eJy0uf Y+3Eikq8gEcpOU84dPQcsPUP6g8OFiA==; 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 1gBF0b-0000wS-6D; Sat, 13 Oct 2018 08:10: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 1gBEze-0007hu-8Q for linux-arm-kernel@lists.infradead.org; Sat, 13 Oct 2018 08:09:52 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 6C8BC20791; Sat, 13 Oct 2018 10:09:32 +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=1539418171; x=1542010172; bh=d8uqPPAjchSr0S h8qYYzNZ2Ao3SfWGdINL0s0qLP/34=; b=hng6VaMsqnxe6OtSW0+5UFW2stny2C Ng4OaTkAYeShYhYXFNFCl+vKU8jiAHEqkik42ua/3GdonV9lTl++jAWVleqrHoyx dAuEKBHDzxcc23x+dp2L9zpwy16bAHi3xKU4QYmgRg9AAPzPJ2/QaVvuaCPE4Uez AoGtyIMitzCbPZzk5J+0aCXWMxYeEzUIixqviW/jWXf694EYD9UP+Vu1U875SkTJ iVe/KBAb8MjyQX7RlEvhGlh3cBW3vOgL78DScsvim7F/kr+kcmjQSYVvdUJUQWvI h390OYzc5fjfI8UF+wWFnFnchLLE3xvEgBbuC6YTJcQ/eLZArDNr40jvqO2uoIcx HiKI9Z8W5dpfcaVpHHIp3Ubc8Iq3kh7SrqNHcaiQ5CVnOJaqZob+YCKTblptMjDX NIm/vicCi/9HuyP62mjZ+6oa2wXAdG9sf1IC9mQwmPLU4qDN+Sf+3zwNZyQE1NPp GsO0k3OqScQsaV17QQfoluEcZQWUF04wjnRI7FUlJ2s4tMxMWspfI9kHZtOZAuao DeulSR2D+XVfnmZfQWa5hRa/l10XGei7Hq2AO8csOoW5tuIryo4hRHph5H9IgnFt gICcVy2iS7enDJ9cQ1bFQgt8IlxG3apoqe3TNM2+RNVlaT3Q5QYMlKaAOKdAIuN0 2S4ADU0J/vEBA= 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 2o8M62vFNCPC; Sat, 13 Oct 2018 10:09:31 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 379301F99A; Sat, 13 Oct 2018 10:09:31 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v4 0/7] AXP8x3 AC and battery power supply support Date: Sat, 13 Oct 2018 11:08:41 +0300 Message-Id: <20181013080848.29894-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-20181013_010950_477282_A43DAD9C X-CRM114-Status: UNSURE ( 9.03 ) 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 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: 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 | 20 ++++ drivers/power/supply/axp20x_ac_power.c | 92 +++++++++++++++++++ include/linux/mfd/axp20x.h | 1 + 7 files changed, 160 insertions(+) Tested-by: Vasily Khoruzhick