From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751988AbdITPTR (ORCPT ); Wed, 20 Sep 2017 11:19:17 -0400 Received: from hermes.aosc.io ([199.195.250.187]:41713 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921AbdITPTP (ORCPT ); Wed, 20 Sep 2017 11:19:15 -0400 From: Icenowy Zheng To: Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron , Lee Jones , Quentin Schulz Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [RFC PATCH 5/7] mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery Date: Wed, 20 Sep 2017 23:18:12 +0800 Message-Id: <20170920151814.22461-6-icenowy@aosc.io> In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we have now support for AXP803 ADC/Battery, and the AC Power part of AXP803 is the same as AXP22x, add MFD cells for these drivers. Signed-off-by: Icenowy Zheng --- drivers/mfd/axp20x.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 336de66ca408..91be5fe1c5de 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -850,7 +850,18 @@ static struct mfd_cell axp803_cells[] = { .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, + { .name = "axp803-adc" }, { .name = "axp20x-regulator" }, + { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp221-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, + { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp803-battery-power-supply", + }, }; static struct mfd_cell axp806_cells[] = { -- 2.13.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Icenowy Zheng Subject: [RFC PATCH 5/7] mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery Date: Wed, 20 Sep 2017 23:18:12 +0800 Message-ID: <20170920151814.22461-6-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> Reply-To: icenowy-h8G6r0blFSE@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <20170920151814.22461-1-icenowy-h8G6r0blFSE@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Chen-Yu Tsai , Maxime Ripard , Jonathan Cameron , Lee Jones , Quentin Schulz Cc: linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Icenowy Zheng List-Id: devicetree@vger.kernel.org As we have now support for AXP803 ADC/Battery, and the AC Power part of AXP803 is the same as AXP22x, add MFD cells for these drivers. Signed-off-by: Icenowy Zheng --- drivers/mfd/axp20x.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 336de66ca408..91be5fe1c5de 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -850,7 +850,18 @@ static struct mfd_cell axp803_cells[] = { .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, + { .name = "axp803-adc" }, { .name = "axp20x-regulator" }, + { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp221-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, + { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp803-battery-power-supply", + }, }; static struct mfd_cell axp806_cells[] = { -- 2.13.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: icenowy@aosc.io (Icenowy Zheng) Date: Wed, 20 Sep 2017 23:18:12 +0800 Subject: [RFC PATCH 5/7] mfd: axp20x: add cells for AXP803 ADC/AC Power/Battery In-Reply-To: <20170920151814.22461-1-icenowy@aosc.io> References: <20170920151814.22461-1-icenowy@aosc.io> Message-ID: <20170920151814.22461-6-icenowy@aosc.io> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org As we have now support for AXP803 ADC/Battery, and the AC Power part of AXP803 is the same as AXP22x, add MFD cells for these drivers. Signed-off-by: Icenowy Zheng --- drivers/mfd/axp20x.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 336de66ca408..91be5fe1c5de 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -850,7 +850,18 @@ static struct mfd_cell axp803_cells[] = { .num_resources = ARRAY_SIZE(axp803_pek_resources), .resources = axp803_pek_resources, }, + { .name = "axp803-adc" }, { .name = "axp20x-regulator" }, + { + .name = "axp20x-ac-power-supply", + .of_compatible = "x-powers,axp221-ac-power-supply", + .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), + .resources = axp20x_ac_power_supply_resources, + }, + { + .name = "axp20x-battery-power-supply", + .of_compatible = "x-powers,axp803-battery-power-supply", + }, }; static struct mfd_cell axp806_cells[] = { -- 2.13.5