Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3825837ima; Tue, 23 Oct 2018 11:55:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV638Q89owazufyRfFFJDf5TrM5TQumHYjjucjj74gAW6iQEeqOrd+uHhrzAsEsKk/w2lJLHD X-Received: by 2002:a62:3995:: with SMTP id u21-v6mr51269622pfj.116.1540320908027; Tue, 23 Oct 2018 11:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540320907; cv=none; d=google.com; s=arc-20160816; b=D4E1fel/0DEU29bgKpGZbPTy1lsQHkBFnDeorysb5q4cwYt/OdjGkCE/s2BhvZzyZM Kw/I3nSiEeVOz3MvUDm5jn4AOFgU7TyDPV32GZOB/0AUDiTJYzeBsK+3jdXByXW77bbd sOTOb+2YoeduCkb22X8kihPdIRh3suc3w5wu1qcbszGGzej7jCIJzdqEqUA4wGwTgn8L IjO64vuGJWnims9W/aNpeuTZ9nULn/PGJklsFvaeUZsJnCxgmtxzA2hXFHPY4zvHfrsL chFLKMzNaJvrCNs8znlChG8Kf7Ts3AqMy1el1MQO1fRhl1DXw2EpCztLraJbzK36+C6c 65tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QD8zWsA7k81jNFPzHRQ5TchIo9tDBxAjXTcnrO/8/u8=; b=lb6G3ZyXVQtd/Zb4Ht2zbH/5az4O7GIcIX3oEWdpRT4uTgy15YZ8pQ1VtI0KQ8POU/ gXonvQYsH9dMX65yMmx/DIzhK+T6fuIDn5FCKmPO00S2bQS8aC+VzoJF6NZ9Er4r4C/j 9QXCgBcW2Qn+elIMTe88TXgzWv8NiunesbMtqZgdqTMyWzCfAfiwnPrwOazgLNPDD2Gw IOuQwLfKRerV2gswJ9+WA9Zf+jnPg1AtPWSRNg2DNKEOQHJjIszUM5LB6iZKl2BEs9VE bDEYTekH5yKAAPRSRPjJi4yYuAtx3vvE+KsKq2S6vz92gJyiI/ZzZ8Tm0+KPB4JwKbYF IUoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lemmela.net header.s=dkim header.b=VJ8CZv2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z72-v6si2173733pgz.323.2018.10.23.11.54.52; Tue, 23 Oct 2018 11:55:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lemmela.net header.s=dkim header.b=VJ8CZv2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729139AbeJXDTC (ORCPT + 99 others); Tue, 23 Oct 2018 23:19:02 -0400 Received: from mail1.kuutio.org ([92.222.216.83]:45964 "EHLO mail1.kuutio.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729032AbeJXDSx (ORCPT ); Tue, 23 Oct 2018 23:18:53 -0400 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 Cc: Lee Jones , Hartmut Knaack , Lars-Peter Clausen , Vasily Khoruzhick , Quentin Schulz , Oskari Lemmela , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-iio@vger.kernel.org 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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[] = { -- 2.17.1