From patchwork Mon Oct 8 18:19:08 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: 10631233 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 5181B17E3 for ; Mon, 8 Oct 2018 18:24:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 451E12994A for ; Mon, 8 Oct 2018 18:24:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 390A92995F; Mon, 8 Oct 2018 18:24:59 +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 DEFD82994A for ; Mon, 8 Oct 2018 18:24: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: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=H0eLYGJTPWYqNfWDygpHhGfhzNu29OZQV7v0OwxoC2Y=; b=WzMR5n+/IMnlJU91THo4bzpT7J sBFcwon4NyZ4oIeNySOkLGNS/F75E6nr23wkyts7Fk0LVa5TUwGEZwhQwZVRcvCt/0jkv/yAf/MOo 63qqz5bGoXGxZdOaNQH1SrmXCaPeZw/wnqVs2Dp/SZO87GJkMYGa7MrXiN6saxJBHMB3L4extxW5p n47qnA24vc+OrTj8Gblt+rI0EWlstZ+Tor8lJtaP5C+FFnIYGBHsCwuTSaHQjwAiWdYXNkGQxDydp ffBr3uUe78C3L4a/JeqAri4tEPRlRlvZIazj/JH04IRZMHg4EJffkvwApQrYIAUYtABJx3Ua0nOVW ZLl8tnqg==; 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 1g9aD2-0004Pm-VR; Mon, 08 Oct 2018 18:24: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 1g9a9O-0002iH-Hl for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2018 18:22:14 +0000 Received: from localhost (localhost [127.0.0.1]) by mail1.kuutio.org (Postfix) with ESMTP id 9B38A1F99B; Mon, 8 Oct 2018 20:20:04 +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=1539022803; x= 1541614804; bh=y86LgGaC+PYu/TqO6XCmCJge6MTF+Ti6+RsXqNPgXjM=; b=o 1GqYlAPyry7DQZXltzPs4x2HB4M9/oC0FW7kfkTc4oVQ2WJoKQb7+u/iJEuPl0E2 QGqtTt5qP68ezU2HMK7cg2/PaX+kgYaiAb+H32zGAZxlSUGexXi42+xxf4Y12Hc9 0JVrRFleFQuEedu3jwkBGlMlLlYfze/UhmcRALEh2MgiMlkKvkaXEUZ5bTQIDjLR Ef8+9sUgGIL11hv5Kf41sO1Xh1CpcYbpOrnzxkdNYmfoRPQQZzniar0NHhDmgo2T BYf5TVFyrUXZqjxODuZ/l+vKvkNnIQSbUn07DnSzC/ZFZ6vfq6eZh9t4f/WdRM2I Nzg0z/ZDW33JUisOQdfC2cgLVDecbJVk+wmj2jPqcEaoehEptVpR4mfCoE7T/QCs xoFePlqqiJQCgsT/Ia1pJNGDRTBwHtjQMdVTWnHZ7ycVklptx0tkAvHjAd5NuKNi YGz39CywdG4w24z55NuGDvKMA7U8LkTvrJSyxtLukicVE7TjTCQZmxi1L7xwCxka cJ2aRS37KSO8Us8FjtLFDDly17dyAnxnF2qbA1NnFrldOTzIlt7KbsEaHrFksW3Z OT5ZZ9CRliHmjdENgisja+HfexYAMXzsA1iOarDw8CkMh8hy4k2tvx0Ll/2WpMUu giDrM6cGFYfUjLhgj/omSRvWEegDm6DhjHFj6ig3n0= 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 BSZIzbgzQSl9; Mon, 8 Oct 2018 20:20:03 +0200 (CEST) Received: from build.kuutio.org (unknown [IPv6:2001:998:13:e4::69]) by mail1.kuutio.org (Postfix) with ESMTPSA id 47A3720FEC; Mon, 8 Oct 2018 20:20:03 +0200 (CEST) From: Oskari Lemmela To: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v3 7/7] mfd: axp20x: Add supported cells for AXP803 Date: Mon, 8 Oct 2018 21:19:08 +0300 Message-Id: <20181008181908.9456-8-oskari@lemmela.net> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181008181908.9456-1-oskari@lemmela.net> References: <20181008181908.9456-1-oskari@lemmela.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181008_112102_786109_CF011555 X-CRM114-Status: GOOD ( 11.85 ) 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 --- drivers/mfd/axp20x.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 1508d9113126..4befe474b165 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -731,8 +731,23 @@ static const struct mfd_cell axp803_cells[] = { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, + }, { + .name = "axp20x-regulator", + }, { + .name = "axp20x-gpio", + .of_compatible = "x-powers,axp813-gpio", + }, { + .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, }, - { .name = "axp20x-regulator" }, }; static const struct mfd_cell axp806_self_working_cells[] = {