From patchwork Tue Nov 20 17:52:11 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: 10690997 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 873FB14E2 for ; Tue, 20 Nov 2018 17:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 762B0296D7 for ; Tue, 20 Nov 2018 17:55:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A24A29865; Tue, 20 Nov 2018 17:55:25 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 228FD296D7 for ; Tue, 20 Nov 2018 17:55:25 +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=Tx3hAgcq/OSJ9pXiqcwzyyFEQC g6BSHDAkLbG0OPqTsOFbFwJ4z3yDhYoFTUdbcWf2KiroStOByP2JnnpHte9YnOUAMhBc/sP5xnbAn 14LoRoaPE0YUVeDb/2UR+ovjvBeWINPBRX5SHWQbqRiEdsruvnzDKHGSQbA11ppbPgtqR+1UnJldM DnX0EY8quN6Y1DsSuy8ZHuHdkZnChFXdw9dVnxI+0hzw0eNr8r0cVY9KX78zQ6mz/rOsepPNC+zgv 3tO7G1kw2YuFExA+V1LoiqqpmL84UJUksEcxu/0ZNbCjP9ETCoxgAqDO5pCTHEyOUC59Y1EV8foH+ a922dynA==; 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 1gPAF9-0008NX-NR; Tue, 20 Nov 2018 17:55:23 +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 1gPAEi-0006R4-R5 for linux-arm-kernel@lists.infradead.org; Tue, 20 Nov 2018 17:55:01 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 794B32092C; Tue, 20 Nov 2018 18:52:32 +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= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received; s=dkim; t=1542736351; x= 1545328352; bh=pL7NHtztiwu1dc+uHme9yVhRXUCkKyzAdI+4FDYSySk=; b=D asz/sL71DL4WFNvSmxfSSmJSRLHoheUxvhjAvCuIHBB6ABAER5j+9wl9SjoFLDts 2h288bdzOPZ+ZkrY2hKC+HCVcCcdoRsBV2A3ymclUf21K8HZoWWlPzuxMOYvtO2N UGPga3uspnJvkvmBBqIG0nNUkKxSlBFpLHNO7WT2TOOoVOft4W6OxXDXTcqOm17x sAUlV/FMWxlDaKfN/1tqPXletlgSUJno8RwjOoENopM5zLfuHcqPi9iOa8mq3bIL S+a9fRu5mA3/6OZPfOyqFw2y+njYJiDdJaI6LeMNXIe6Zrg75n7F5MoYlAYynFW3 WrveiZ57PsUoKdP1uJDxBHiWCQFq4e35iW2XuN4Lc9U/+T1oTcXMqWdrotJAQP20 7I+UooMZPKNtu8Cpm2V7CXCXV3nFbzTDWpfdiHdbpjgH5AqYHQU8iSBZIkTHFV19 Nl8YAHquL3N8xoH5VVmnAHb1lXyU9Rzfsr6JdQY7PYqqe9Jkvmo1hlNsmJPtKDcQ mUjo+9hAW8tRPLJjkn5VzhfML/D0iQUZPOwrPnEXnJPx64VU/fR3gNjgTnKRoPEz VuGDQ7sVl0NxuosC3oh5TYML3xRSCOYo+S//dYigVWjqvHTCCtDOzh0kCf9yEpSg Z9iRAtixYH2TupWaoUDjROZhwo35eKm108qF9N8G0M= 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 XGCP2iq9fzti; Tue, 20 Nov 2018 18:52:31 +0100 (CET) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 7C9F02092A; Tue, 20 Nov 2018 18:52:30 +0100 (CET) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v6 8/8] mfd: axp20x: Add supported cells for AXP803 Date: Tue, 20 Nov 2018 19:52:11 +0200 Message-Id: <20181120175211.3913-9-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181120175211.3913-1-oskari@lemmela.net> References: <20181120175211.3913-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181120_095457_698884_CE14F2D9 X-CRM114-Status: GOOD ( 10.55 ) 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, Vasily Khoruzhick , 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 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[] = {