Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp775647yba; Thu, 18 Apr 2019 09:19:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqnPrMQgNg3IhXzUg1pUuCpsXnxT50QLgsLcmm8GkWY/W/XUTiuc7vYfkQuTRMdmXe9wCB X-Received: by 2002:a17:902:121:: with SMTP id 30mr61546315plb.174.1555604375114; Thu, 18 Apr 2019 09:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555604375; cv=none; d=google.com; s=arc-20160816; b=xlHBbVCTQKWsxjm23XdhQi2KS5bXNhSSuQ5mFZ1tGgxIuv45FNpbISCkxL+lvQAdWY Tmhp2MoH4Oy1SUp8BnXPh03wFq+Vt9QrA+lCmdQzunZI00ahCjG+3zEEf6NQuom5Y/Uf Jv50Zaxa25tXUg6K3HMiI5x/MguXu8nykNGDY9aCOkkws9Hbam/IPlgItViW6aN6zE5E jkeHEP3ql0ez8r4gCv3cgSnloKvgMlHh3layaavVrWvbLdgzcF4XJcpmmWHQzbvQCik+ 7d0gv92jXdm0fJdh2v0zFaKpUSXzOSTqzcFnk4LXvQUMv/Nl03xiX0Ud6C7Gze4TyPkL l22w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7x+vmTAFAyG4vN8qg0N6n3cF69oM+JIbFCImTHSWUCM=; b=FKW9tPpzkZyIzGdBuivsnjShg1wEVI9ujZEaNDpBlGb37uHYrkrwWhoggZJd+miIDX jIb4JZX4TNIarkkYLIVOsnMt1l/L97/exDNpfBGDVsNqvglnGA/ucUasG1llAdfX9WZo zrNm0C0TcfCD/EYi5BD2sw2VuRTb2fAjTU1oW3AivDKDY2IRP5FDO3GzF8tekE+v/uA7 3Ybf5kDQIYdojbVsgs94gd2Mph2fSL2GPaLn2ixTs36apxzKHdoMR0VuwbYze9ArbUQm uMKgxmYfdF93zgVZilb3vcaW3SoEer7Mk1vSRcY1CWg4bhcZ4Um00gd4UPjeAFJAmF0C dl6A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si2647067pfh.15.2019.04.18.09.19.19; Thu, 18 Apr 2019 09:19:35 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389676AbfDRQSL (ORCPT + 99 others); Thu, 18 Apr 2019 12:18:11 -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