From patchwork Wed Sep 20 15:18:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9961741 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2905060234 for ; Wed, 20 Sep 2017 15:35:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18C1B28F5F for ; Wed, 20 Sep 2017 15:35:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A4C12912F; Wed, 20 Sep 2017 15:35:00 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 7B74A28F5F for ; Wed, 20 Sep 2017 15:34:59 +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:References: In-Reply-To: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:List-Owner; bh=OgGELtwqzQf/onYwIOhDLakKRE7PFs8Duq4ib0nQM/E=; b=mSrz6B8Rp1wvBm4/oGbmH0ZYP5 jrUW8+7ldzh25GEJL+ICupI7NFA+6hHm2syyc2AyAFmkU09TtiSgypBwdR25MZdGEgQ9Fzlq4y5mC 47K/z4UaOtWoCXybV4YEDDLgLuzgoY3xPPtanGL9Yb+Ouwx5K4vSexfGef9D4J+AmbzAwakuXpyZs EDQqv+v5bXbpk64jpsB0Pp/j6SWSeooPlRvuLvcNVGDIOomtJdWdWT3cYBDMPXPu8nVpIfT564sAt D4M2ccsz48/XiimB9lBPrN0B/KGmVlUiV4eXw6HDtEI8Jn86B8mwG58oYFCaKUEwmi0QsnBjlZKmC vp642snw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1duh1b-0003dE-4D; Wed, 20 Sep 2017 15:34:55 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duh1Z-0003LG-0T for linux-arm-kernel@bombadil.infradead.org; Wed, 20 Sep 2017 15:34:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Il/ME4057J79HQvksVn54SPEW+yZaje5bH+dtrdUC+o=; b=aQSoOGJ3k1CpQVn54srSGFakE rFeGx35RasuamyIKTriMGOfS/fhzk6EP2eL8bm1+xs1FgZeXkd/vfdk5ppWpynZ2dUR4KurrtUC+4 wPjycptFKSd1/Fs6xEMB4qIh8sX6PSsWjkg4/4ttzkhTicNFwcgi9200YmV3Ltw3cnPoUY8FHQ5pp KXzM1E+ORiFWov0ntfWwPgsccXZc7a9Wq9ne6C2pN1IIi86N0ZxWCSnWq6iJjCprfWUMConzuqK9s IibdRJsU5oUKKrSwS3mc/fB8qpCOjRoJCkcRUuuES71yCt3dxbITxUSJRP6489LIfa0iYa1HMYX6O 7bGEtK41A==; Received: from camel.ash.relay.mailchannels.net ([23.83.222.29]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugmr-0003bW-6Y for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 15:19:45 +0000 X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1CFE38A9C71; Wed, 20 Sep 2017 15:19:16 +0000 (UTC) Received: from hermes.aosc.io (unknown [100.96.146.203]) (Authenticated sender: lmn-TZDUIOWCRQMW) by relay.mailchannels.net (Postfix) with ESMTPA id 4606A8AA3E2; Wed, 20 Sep 2017 15:19:15 +0000 (UTC) X-Sender-Id: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io Received: from hermes.aosc.io (hermes.aosc.io [172.20.63.30]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.14); Wed, 20 Sep 2017 15:19:16 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: lmn-tzduiowcrqmw|x-authsender|icenowy@aosc.io X-MailChannels-Auth-Id: lmn-TZDUIOWCRQMW X-Juvenile-Wide-Eyed: 7a633ae17c43e678_1505920755962_382537092 X-MC-Loop-Signature: 1505920755962:3418884796 X-MC-Ingress-Time: 1505920755962 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 050DC47B7A; Wed, 20 Sep 2017 15:19:09 +0000 (UTC) From: Icenowy Zheng To: Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron , Lee Jones , Quentin Schulz Subject: [RFC PATCH 5/7] mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery Date: Wed, 20 Sep 2017 23:18:12 +0800 Message-Id: <20170920151814.22461-6-icenowy@aosc.io> In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_161941_774582_EBEBBA25 X-CRM114-Status: GOOD ( 10.69 ) 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-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, Icenowy Zheng 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 As we have now support for AXP803 ADC/Battery, and the AC Power part of AXP803 is the same as AXP22x, add MFD cells for these drivers. Signed-off-by: Icenowy Zheng --- drivers/mfd/axp20x.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 336de66ca408..91be5fe1c5de 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -850,7 +850,18 @@ static struct mfd_cell axp803_cells[] = { .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, + { .name = "axp803-adc" }, { .name = "axp20x-regulator" }, + { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp221-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, + { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp803-battery-power-supply", + }, }; static struct mfd_cell axp806_cells[] = {