Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3262854imm; Mon, 8 Oct 2018 00:33:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV628MdqDaPZH2OZitS8mLzBp6o1/O0QTNzCNOOmiWNtEugY/OhUYpMBLCNHqzSYo5xN0YHdH X-Received: by 2002:a17:902:62:: with SMTP id 89-v6mr22656011pla.298.1538984023510; Mon, 08 Oct 2018 00:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538984023; cv=none; d=google.com; s=arc-20160816; b=slH7F+7XD62XDJIKHuSwaOKa/rOkupWF/2DYYmOh8guX6gfsa4oqBCSheQ1R+JT66o yOJ4Uq2MiIy8kWYipdmUObosoLwFGUhSKdPllTAa7cExqcF6BZTm3bpDah053rXiC8vA a1OQekbl2AOmNxZWq6QMQuPkaGn46ZTj6Y7PKb71HtY1j4ciXNFXkDz++J2cZNR9LNUe eS/BksOwo1CsXXIKnJNUMAg4NCAI4qyGUMTYGpn6uwvb0/Zv+nG6lAAiqcpAgCxz0BVA 1bcfT32rn/yBpSQ/A+eYoMSrNFYphcAuR6um0rFNhzR/+gExaaKc3UeVUqI8Umgvj1c0 pEig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tkuIAM1SUGodZVor81FKBcRgTUWWhBUwuAHRI9obhT0=; b=oMFb0cz7qgyOtLqmZVNW5/uK/c830dxfVXkHtVSfhiD3u8FGRpHEr1iDk+JQ9fQGEX BDbzCxFsGNQtU+sxJAOFJlr2gHXWCoI7qGCtfKmwnrCjPikRtVDinp14tJO4TNs1XtAg hsfbMg4wJS+9rWPRWwIfBdmq+b5uBZdeCKlln1ZbqGoKpOHCAB25MMVq+0QX1VNfxSJ4 ieDXYSuhV1UqzDZGD3+J5tQQprHeUVwfLU6uR1i48l9wl5YXwmvZM4JHhF2svp2pcSJZ XawYpPqNoA7Tek6UFF4++4q+Xd0cVgQ2c5E4Ez1G23YjEzuybpKXnHk3SwBszJm/+5jv LdwQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si18731989pfx.105.2018.10.08.00.33.28; Mon, 08 Oct 2018 00:33:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbeJHOnf (ORCPT + 99 others); Mon, 8 Oct 2018 10:43:35 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33290 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbeJHOnf (ORCPT ); Mon, 8 Oct 2018 10:43:35 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9D036207CC; Mon, 8 Oct 2018 09:33:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from qschulz (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 56D22206A2; Mon, 8 Oct 2018 09:33:12 +0200 (CEST) Date: Mon, 8 Oct 2018 09:33:12 +0200 From: Quentin Schulz To: Oskari Lemmela Cc: Sebastian Reichel , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones , Quentin Schulz , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 5/6] mfd: axp20x: add support AXP803 AC and battery power supplies Message-ID: <20181008073312.otdz25ttvew6fzk2@qschulz> References: <20181004193410.7265-1-oskari@lemmela.net> <20181006211836.28253-1-oskari@lemmela.net> <20181006211836.28253-6-oskari@lemmela.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ac4srxfaa53qexuc" Content-Disposition: inline In-Reply-To: <20181006211836.28253-6-oskari@lemmela.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ac4srxfaa53qexuc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Oskari, On Sun, Oct 07, 2018 at 12:18:35AM +0300, Oskari Lemmela wrote: > AXP803 is compatible with AXP813. > Adding needed cells for AC and battery power supplies. >=20 > AXP813 AC power supply cell added. >=20 > Signed-off-by: Oskari Lemmela > --- > drivers/mfd/axp20x.c | 22 +++++++++++++++++++++- > include/linux/mfd/axp20x.h | 1 + > 2 files changed, 22 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index 0be511dd93d0..215f0b009728 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -731,8 +731,23 @@ static const struct mfd_cell axp803_cells[] =3D { > .name =3D "axp221-pek", > .num_resources =3D ARRAY_SIZE(axp803_pek_resources), > .resources =3D axp803_pek_resources, > + }, { > + .name =3D "axp20x-regulator" > + }, { > + .name =3D "axp20x-gpio", > + .of_compatible =3D "x-powers,axp813-gpio", > + }, { > + .name =3D "axp813-adc", > + .of_compatible =3D "x-powers,axp813-adc", > + }, { > + .name =3D "axp20x-battery-power-supply", > + .of_compatible =3D "x-powers,axp813-battery-power-supply", > + }, { > + .name =3D "axp20x-ac-power-supply", > + .of_compatible =3D "x-powers,axp813-ac-power-supply", > + .num_resources =3D ARRAY_SIZE(axp20x_ac_power_supply_resources), > + .resources =3D axp20x_ac_power_supply_resources, > }, > - { .name =3D "axp20x-regulator" }, > }; > =20 > static const struct mfd_cell axp806_self_working_cells[] =3D { > @@ -778,6 +793,11 @@ static const struct mfd_cell axp813_cells[] =3D { > }, { > .name =3D "axp20x-battery-power-supply", > .of_compatible =3D "x-powers,axp813-battery-power-supply", > + }, { > + .name =3D "axp20x-ac-power-supply", > + .of_compatible =3D "x-powers,axp813-ac-power-supply", > + .num_resources =3D ARRAY_SIZE(axp20x_ac_power_supply_resources), > + .resources =3D axp20x_ac_power_supply_resources, I'll let Maxime or Chen-Yu tell you what they want but I think we could have two different commits, one for AXP803 and one for AXP813. I don't think we care about having one commit per added resource for the axp803 though. > }, > }; > =20 > diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h > index 517e60eecbcb..2302b620d238 100644 > --- a/include/linux/mfd/axp20x.h > +++ b/include/linux/mfd/axp20x.h > @@ -266,6 +266,7 @@ enum axp20x_variants { > #define AXP288_RT_BATT_V_H 0xa0 > #define AXP288_RT_BATT_V_L 0xa1 > =20 > +#define AXP813_ACIN_PATH_CTRL 0x3a You're not using it in this patch, please keep this change in the commit where its use is introduced. Thanks, Quentin --ac4srxfaa53qexuc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXeEYjDsJh38OoyMzhLiadT7g8aMFAlu7CDgACgkQhLiadT7g 8aONSBAAi2HPN7CMO899PLLTO6W9d7cyN+OY8PIJwaX+tDqUMDRupJJi84cblIVX aVfOh1Hl6ZtpKxicWr+jXlpXQEhM9XfvaVkrEM5H95eudhawYoac3xr0Z8wtG9Sa KzvrLG4j0uTflgo3CRcHJQUNkkWeC5pV3mHQxw3EUllDW3kbYjtjgVLGKyN7DvLJ eZippTGKvBovwGBRqz+rx86YiUZ9A5kAz87QBJARvGKEE0a3rXkfj/UTvgVZF9M9 IZ56Nl+Gvtrend5MsM502byvAAx2u+WNpFruMXvjv7EnQAOuCIRFk7b5JLnARBfz OCJBncAKQe199Q3pK2CI6ZqAHqZb7EJ/8ceVhbkFHEg2FIXVnZaKTQyaKuflwXnL lK2MENvXmaL7Dd71rCCi5XIlvCYuA8MR+gDD6SpzxQSTaoqpJ4l68RpDZt/YUCTP WYk0ia/Koj/DdYT2ZtVx6J1w8eDUJNVyRa08amxEogt8Ud2LwyPEVWdszV0spio0 OI9gkTNNukq8jkqfm00Se4YXkNaEVSTC1k76VcqVFDCGvvTI1Cito22b4B6bni9e XoRjD8wvS14L/+ug2lJhaEjkH1FmeHnLODDX6/i3eje3D2EJStevTIRPkhR+WMho vRul+8J36mw/QijgEpU0aakVWdWEsKWPOUaUQSvpoFDVP0BBwCY= =Ay4+ -----END PGP SIGNATURE----- --ac4srxfaa53qexuc--