From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1198C10F14 for ; Thu, 18 Apr 2019 16:18:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 72463206B6 for ; Thu, 18 Apr 2019 16:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555604294; bh=vPz8dkf7Po6/5gZek39It+niCbXwsFsXePs97vYVODY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Ukx6osTooViz/T3MKQ1ODxhBwl8adMWlDja6PPG5qehgBQucJROlKXpZhZHs2x4I/ ZISupH+YFVaE/9OzQHQOqp3+bIXtWvQTFP5WxAO4NHm6vyMU7Bslhncp7970Q8rcPd 0ja/PgtqeYW+arJxY4SQGsU77NwkaCLDQhtkJsws= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389681AbfDRQSM (ORCPT ); Thu, 18 Apr 2019 12:18:12 -0400 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:34384 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388347AbfDRQSH (ORCPT ); Thu, 18 Apr 2019 12:18:07 -0400 Received: by wens.csie.org (Postfix, from userid 1000) id 4DDBB5F831; Fri, 19 Apr 2019 00:18:05 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Lee Jones Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] mfd: axp20x: add USB power supply mfd cell to AXP803 Date: Fri, 19 Apr 2019 00:18:02 +0800 Message-Id: <20190418161804.17723-2-wens@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190418161804.17723-1-wens@kernel.org> References: <20190418161804.17723-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The AXP803 has a VBUS power input. Its functionality is the same as the one found in the AXP813. Now that the axp20x_usb_power driver supports this variant, we can add an mfd cell for it to use it. Signed-off-by: Chen-Yu Tsai --- drivers/mfd/axp20x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 902f9f27e748..2215660dfa05 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -747,6 +747,11 @@ static const struct mfd_cell axp803_cells[] = { .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-usb-power-supply", + .num_resources = ARRAY_SIZE(axp803_usb_power_supply_resources), + .resources = axp803_usb_power_supply_resources, + .of_compatible = "x-powers,axp813-usb-power-supply", }, { .name = "axp20x-regulator" }, }; -- 2.20.1