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.1 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 4FD3AC282CA for ; Wed, 13 Feb 2019 02:54:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1417B20835 for ; Wed, 13 Feb 2019 02:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550026495; bh=fV3+dRH5Ju9kj++KcRTXgB6OVsd4HkUCK5/+AfFd8NY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=dy/BJfu3r7nmF/Cke8XiWcKER7E+E9AKNgbjq4cqWLPZIZexHFASUfr/8xoK7oTsq 1Fq8IZ0UahMaeXJITZfa/wk4TbkeEClvXfLgr6u8Ma0oMqKmRfk5RhHkBFhOocQLHX 45Vo/3UHdT3izhC/rGISWmZIk8WXrlMLMnLagaSE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388345AbfBMChi (ORCPT ); Tue, 12 Feb 2019 21:37:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:40920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388278AbfBMChV (ORCPT ); Tue, 12 Feb 2019 21:37:21 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3480222C7; Wed, 13 Feb 2019 02:37:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550025440; bh=fV3+dRH5Ju9kj++KcRTXgB6OVsd4HkUCK5/+AfFd8NY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nEMAS5ITImXIDickhWsigrI6SnElSCMg3G1c33S4IeHsZX/NPEMC9wHrpOmBwMnYN oSv/8IVHaWs7nALPEu6igM7jCp+0Paa4IEeDVcm5lVZXWFXEjnN1lTXsGzsclTqZuY 0G8v2zyBFMTYmUnCYbJLWDaY8si22FnfZy1lDeYQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Oskari Lemmela , Chen-Yu Tsai , Lee Jones , Sasha Levin Subject: [PATCH AUTOSEL 4.19 16/83] mfd: axp20x: Add supported cells for AXP803 Date: Tue, 12 Feb 2019 21:35:54 -0500 Message-Id: <20190213023701.20286-16-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190213023701.20286-1-sashal@kernel.org> References: <20190213023701.20286-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oskari Lemmela [ Upstream commit ea90e7b47f0a8bd2fe14e9a88f523de7c67db90a ] 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 Signed-off-by: Chen-Yu Tsai Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/axp20x.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 8037b4e01ed6..f8e0fa97bb31 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -726,6 +726,20 @@ static const struct mfd_cell axp803_cells[] = { .name = "axp221-pek", .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, + }, { + .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" }, }; -- 2.19.1