From patchwork Tue Oct 23 18:53:30 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: 10653549 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 23B1B13BF for ; Tue, 23 Oct 2018 19:07:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04F8C2978B for ; Tue, 23 Oct 2018 19:07:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC94B29F51; Tue, 23 Oct 2018 19:07:28 +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 4A9A72978B for ; Tue, 23 Oct 2018 19:07:27 +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=SkKAl/pWODxequoVRJQKq0xQR6uOu9Jv39JXj7e3RCU=; b=OQ15bEwOQ8folvRPDc0cIEPkaq IxYjGJq2E4Iv9fIjRk3UIpQNL2pyjwyodzPkcJ8NrRW5mulj83Abh3jK6w2urm8NcNyYEywrVcrxB dqNh0KK/YGanyBiRTi2w/ZUgui1HXEnCqizc/Mq3X/L25PSxeFygKryeySPTUe+46Yi6zvrX5szum Ptq6UJeG+3mlovv7KBo0Fkpbaj8JJg92xPcAt/ER7BybMEv1OU9GUBtRVz5OcoUb+EZaghtXXDW80 auZ1Y9Jbz+f3+eTiTzXflyfC4N2/+chKHjEsHBupBdVdqCF1XQbc29+KGmFb6WU9XZttMDR9jmalE w/5EA0Ew==; 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 1gF21U-00063i-34; Tue, 23 Oct 2018 19:07:24 +0000 Received: from mail1.kuutio.org ([2001:41d0:401:3100::431a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gF21P-00061o-Ek for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 19:07:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id F0CF41FBE9; Tue, 23 Oct 2018 20:54:13 +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= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=dkim; t=1540320852; x= 1542912853; bh=pL7NHtztiwu1dc+uHme9yVhRXUCkKyzAdI+4FDYSySk=; b=V J8CZv2FCNKRND/yEfZbIvSDtXIRoj9jIzDam3EvnP88URgHNNHd6x2h3xqtMxPA3 8Zw5Y4vmfVmw98+Fa9/E2o0WJ0tzM2x3PDUVdAT+i8+jJQ8ACLhQRrOcB3knuhJz SMfFu/A/YrrGuxtEaNFP4wbnVCzn5kpseSdL1AF70NzkVHxFpM6G11byTi2uUcC0 p+SAGLNJdxPGE/QIv9TDpoEUk59BC81n8UOkk1jKaT1yg9r35jC3B5qQI9kPnSte kZKzfEmhocHiivMtNVL7f+FlBlfyNETtP863j6XwU4+s5XOESd/pzmrzvde7qu1E ptT8R4vFWtv+QyRMfaXwsM6rnF3LochDF6GvmzFbMQgb16bKuR61+CpJBT8TU6Rg 41t99GMvYEqFT7kirHJydxFgFDWkPkxVox33VA3c797yE2pzty4QK6PJb4r9WScK AVo/5Di8YuY01sAyUTUM7POgP+Upgf5Zqha4jC8biIkjBuyGe1ahBDf6PDoNOu4q kdZuPI0JlF/vW7IYxjp/S7fSuMtc5Xxtd/txaNO3T4Gjs5bCSNismbmws0p2Z7ac BWtI+Pk3rw2frJiWO+qLfDowlkBw/8SuPgWbb22kv2U8XUcwVOkkUyUu/hD7kNnh T3OBq3kzuJoDrjgNhXW1MRVTLygwAc1FKGtqmdtBUE= 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 CULtAGdBqEao; Tue, 23 Oct 2018 20:54:12 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 306EE1FBA1; Tue, 23 Oct 2018 20:54:12 +0200 (CEST) From: Oskari Lemmela To: Linus Walleij , Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron Subject: [PATCH v5 11/11] mfd: axp20x: Add supported cells for AXP803 Date: Tue, 23 Oct 2018 21:53:30 +0300 Message-Id: <20181023185330.10472-12-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181023185330.10472-1-oskari@lemmela.net> References: <20181023185330.10472-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_120719_805659_F2BF5D92 X-CRM114-Status: UNSURE ( 9.95 ) 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, Lars-Peter Clausen , linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , Hartmut Knaack , 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 Parts of the AXP803 are compatible with their counterparts on the AXP813. These include the GPIO, ADC, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Chen-Yu Tsai Tested-by: Vasily Khoruzhick --- drivers/mfd/axp20x.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index dfc3cff1d08b..e415b967d38c 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -728,11 +728,26 @@ static const struct mfd_cell axp288_cells[] = { static const struct mfd_cell axp803_cells[] = { { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp813-gpio", + }, { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, { .name = "axp20x-regulator" }, + { + .name = "axp813-adc", + .of_compatible = "x-powers,axp813-adc", + }, { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp813-battery-power-supply", + }, { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp813-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, }; static const struct mfd_cell axp806_self_working_cells[] = {