From patchwork Sat Oct 13 08:08:48 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: 10640037 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 8E9AD14E2 for ; Sat, 13 Oct 2018 08:14:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C84E28F2F for ; Sat, 13 Oct 2018 08:14:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A8202B1D6; Sat, 13 Oct 2018 08:14:56 +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 001A928F2F for ; Sat, 13 Oct 2018 08:14:55 +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=uuVVZb5K9yHiTamspGN8kkD2kB6ZypmhYq5gjWyWUrg=; b=fuz8VLocTaeXUkpr10gLx+83zO /vlCpPFB7Q1tsmxERbW9sFAfyV/gOc8EOum5mZBvjIuyvg5f/eN27znovSd6RNlwYVGD89R2tabbV GWvP8qohgF2wDjbbgtpJ2A6Egsg+iUaQ7m/NgJv/hkVZQzZ1zM7uOWPxOhy7SZbMzQKFsNmKVNWPg 5SDsAT0geBSCj7PqGCbD1YUrjNRNLFVx7ti8Kpu6xsJJ8aEToTZl1G+8VexAzmNhBgdbhFkQnLnXy VaUURiNtGkdVoUGwXroa054n0SpR3ejyAVro9gaZxUfBbvv2k05xzMo2FRxZ9MrPD7BoYCpQe8fey PAlW9blQ==; 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 1gBF4P-0002iX-0Z; Sat, 13 Oct 2018 08:14:45 +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 1gBEzr-0007la-Fi for linux-arm-kernel@lists.infradead.org; Sat, 13 Oct 2018 08:10:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id F24882092A; Sat, 13 Oct 2018 10:09:36 +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=1539418176; x= 1542010177; bh=hFIzlqPfogdACLNOPs3fOziaLQqmcreIg9gvUuXfZM8=; b=C J+/YpmC3PWF7gvtXWW53855gHZ5mSErB9ImCzsfm0YbDjunylsMDTkVag1QpzS9I WtNv75sNpZo4m6OMT7zzFzKGLtax+61eclGhoPMTzPoE7g+DO8J4KumkDlSjJWEd DfDvCcjsPvDYeR+mhFgXsu+CHke59ZwN5vVqZL7j5PiXMPw6Gg3gyVxXSFIVFDxt VSVSnuHTH5/T7Sl365QfebqOvsAbtMOXWMRd3hkKU3BwoluKIYGL8r1VOQ7yQmKk jynC0+fTzEfLjJy2wZdJdlDfAeo8W5kuK5P+We3lVIvXaI6PUA5QuBExP76lIwQ5 MQ7WbzKAiwSGG7YdLJ117mo88MoBRpdW7182CIXFy+fr/9sG1m1NCeLkP6NyyhTk iSYwc/RiK0CHs0uL2KjdQwqr2ZcvWMkjLn47QrSpKMfeYnHNvOxOTuZUpEZ2l4Ym XSweLBj15C8mDuWXM5t8ArdTGK9i6jYx7TydzujNIYLe6W5w6/VFxTNC9P2VaZIF E9GfXrrx2Pu0F6zGThMY5DL1gsIsgiht/CapqdSjRmZqd537SqYeq1+6rIq7PacS JNSPIyiksBf9MqX1BWZwWqgjA19bLIytePWvblyNpEhuJebJ6MnfVJ+Y7Y3q6Vn5 kAMa29pFLJVobkY3iIInOTVTnPq3eRQ3fQgan6l3Go= 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 F34jGULZJGg4; Sat, 13 Oct 2018 10:09:36 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 35CB7202F8; Sat, 13 Oct 2018 10:09:35 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v4 7/7] mfd: axp20x: Add supported cells for AXP803 Date: Sat, 13 Oct 2018 11:08:48 +0300 Message-Id: <20181013080848.29894-8-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181013080848.29894-1-oskari@lemmela.net> References: <20181013080848.29894-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181013_011003_758648_021F57E6 X-CRM114-Status: GOOD ( 10.68 ) 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 AXP803 is compatible with AXP813. Adding cells for GPIO, ADC, AC and battery power supplies. Signed-off-by: Oskari Lemmela Reviewed-by: Chen-Yu Tsai --- 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[] = {