Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1015001lqm; Thu, 2 May 2024 02:39:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNPm6LdSvwUmq0fHhIdFOuVAMMAsv0e1z1ooPvT93E/AaU5MjJLOxAHTBt1vibXvP+3QSeMLr5Crv5uias8U1HB+UAFxy35CUP4a8C3Q== X-Google-Smtp-Source: AGHT+IHNE99Pwgwi3YrZd/X2MnxNgGT9HoA7Rt6RGj5/IS1+jLYWHyG3EBrySa3uKEdxgmief3h/ X-Received: by 2002:a50:cdd4:0:b0:572:a852:c756 with SMTP id h20-20020a50cdd4000000b00572a852c756mr1802633edj.12.1714642783234; Thu, 02 May 2024 02:39:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714642783; cv=pass; d=google.com; s=arc-20160816; b=g6zah9XsD4knEVXpyt6zI1+KlxP1T8o6t7ESgD/yk3mYBAkAPGp4AHRiTmmY2gzlm+ GTT9O7GOwztdsxi99jc4qoteLfi1iH9I/lJ5xmGPehGEMXQVkYXJPNwPnQHt+xWU+YiL 1BaNAg7QZfMBsbnI4rkbTqwiK3OSpXLnZzFo77YqThn7WQiG2+RuM5mrSpuELRR8Z+6M a9dtcFQNbylWmFq9P0UmCV0Z/UlDL1ESsttf4MoWice+ip9yEn5ywI0LKbX12VtIO+wz rGiUUD7f/e9LjMs0q/L/W+e1lCoPfje4FiQTsL3BRyVpi+vZf/RTfoY8laj1TdoHiOdt 9sXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2iqqbQNZKfl5Kc8mH5xPs9fCN3TF0TeT58z3BWNUTKs=; fh=7I2i5AMC63GIT+fjg6JNoLWIiFsatcfoBoXwIT9cGMA=; b=rVAYdHIT7v09wPth+GLsbyuz10IbAMaaoTO3b1Azez7ELMsdaGJjMqhdmtnD8+30eF sYoWRYJ6RururNxhb1/zT/7lAffrCeQJ4KG+Cx86k2MAM866fqlOu2Lw08yZoaaJXqkL ekDtQpp50J50QFo9WOYq66hcsj763WHIVgrUzYr9nGPq9IRVCe8Vx80AVj2+pEqKiBfX W5KY+AVJ9q+Y14JsMMjWm6pOibPLbAKhSz9R8QNvvjuEtrib/oE1sR7O5ZH4vHoE5ULE rKceUhwac+Bo62Jbka3YqHszF26ssQZCrSJEI/2mPfaEdcTd3xlJ3Sc4AuHiuODJ7I2k 2C5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WR6c0ach; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id co22-20020a0564020c1600b005729cc9a9e5si329490edb.362.2024.05.02.02.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 02:39:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WR6c0ach; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166240-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D83DD1F21503 for ; Thu, 2 May 2024 09:39:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BB6D55E43; Thu, 2 May 2024 09:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WR6c0ach" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B4E754747; Thu, 2 May 2024 09:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714642774; cv=none; b=QT18sG0EQtvmIHyGXRtKErG/D9HjpxA3WwQ04cGJCu4c/gJxTWDKyOSJmEhigXeGHP/e/dOBMnVpR/j46VRoGu+Wl+tiFf0cDWNI++YUYU1U3OGTszFJY3BP1Xj/X63hitG1q3TXoIgsWExDJbcpAKouYY68vHSFKWX04e1clMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714642774; c=relaxed/simple; bh=+6Ccg1WrPBmta14Ehps1oyUTy8o9qKi/CgRkjuvTG9I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OMjq+MqGY2JwR2SvOl770FKs1EnDVF3odvMXlNcsdiBZD1F9EhTKmH2JY9JVOpRuk2lZg7Tw1g+uKCLpFnyBU7vh5ncp3iHmJ2RcGwuVpbygXnfp/eLXqRc0sF5uL3o7ZxUOZ+u5Fy5to/wTjS9LPFsi5774AWzxj2q1DTYIOiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WR6c0ach; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 232B8C113CC; Thu, 2 May 2024 09:39:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714642773; bh=+6Ccg1WrPBmta14Ehps1oyUTy8o9qKi/CgRkjuvTG9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WR6c0achz1dfiNbXcWotZoYVheq17pTQDYO8y7R8VOfN/HCJervtkTRPu6szOlTgK m1oNeSSbcZ6rBoa+po2Hi6dBNCeiZV4WwpbhyHj4Jqgkd+3c+VUukBRUIJkNz2SnU0 wMcY3D5HtItbuLIEQPyPX359VXxYPfD6RIGQzH8opEOrggYozHxuQCM7/psjds3Pi+ w9q4w/Gj7SunQg5XynsmoEVcRoBY+/w4TCJG46HX8Oy3iA6Il+yFdAKfuFBxX6tRLy CRowyM22ZVsdP/2/prlHcoulHITRSk542Y1peCKZ/XmjL5D2M6/yICDxPA2i0RWIpx uuWOohWqcAquQ== Date: Thu, 2 May 2024 10:39:28 +0100 From: Lee Jones To: Andre Przywara Cc: Chen-Yu Tsai , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Samuel Holland , Ryan Walklin , Chris Morgan Subject: Re: [PATCH v2 4/5] mfd: axp20x: AXP717: Add support for boost regulator Message-ID: <20240502093928.GN5338@google.com> References: <20240418000736.24338-1-andre.przywara@arm.com> <20240418000736.24338-5-andre.przywara@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240418000736.24338-5-andre.przywara@arm.com> On Thu, 18 Apr 2024, Andre Przywara wrote: > The AXP717 also contains a boost regulator, to provide the 5V USB VBUS > rail when running on battery. > > Add the registers to the MFD description to be able to use them from the > regulator driver. > > Signed-off-by: Andre Przywara > Reviewed-by: John Watts > --- > drivers/mfd/axp20x.c | 2 ++ > include/linux/mfd/axp20x.h | 2 ++ > 2 files changed, 4 insertions(+) Acked-by: Lee Jones > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index d8ad4e120d379..02513b1eff2e8 100644 > --- a/drivers/mfd/axp20x.c > +++ b/drivers/mfd/axp20x.c > @@ -209,6 +209,8 @@ static const struct regmap_access_table axp313a_volatile_table = { > }; > > static const struct regmap_range axp717_writeable_ranges[] = { > + regmap_reg_range(AXP717_MODULE_EN_CONTROL, AXP717_MODULE_EN_CONTROL), > + regmap_reg_range(AXP717_BOOST_CONTROL, AXP717_BOOST_CONTROL), > regmap_reg_range(AXP717_IRQ0_EN, AXP717_IRQ4_EN), > regmap_reg_range(AXP717_IRQ0_STATE, AXP717_IRQ4_STATE), > regmap_reg_range(AXP717_DCDC_OUTPUT_CONTROL, AXP717_CPUSLDO_CONTROL), > diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h > index 8c0a33a2e9ce2..4dad54fdf67ee 100644 > --- a/include/linux/mfd/axp20x.h > +++ b/include/linux/mfd/axp20x.h > @@ -115,6 +115,8 @@ enum axp20x_variants { > #define AXP313A_IRQ_STATE 0x21 > > #define AXP717_ON_INDICATE 0x00 > +#define AXP717_MODULE_EN_CONTROL 0x19 > +#define AXP717_BOOST_CONTROL 0x1e > #define AXP717_IRQ0_EN 0x40 > #define AXP717_IRQ1_EN 0x41 > #define AXP717_IRQ2_EN 0x42 > -- > 2.35.8 > -- Lee Jones [李琼斯]