Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp844805lqp; Sun, 14 Apr 2024 02:06:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXDrSxkqstEIvVBYKPurBqcy0UOp3YgcJkhFY56Tm7Sg7sC0RJCxw3Yc742knT7dNv+lcoMax1GdNT3X0uUkCQ0OB7yt8rm8LjTWGFMQ== X-Google-Smtp-Source: AGHT+IGstXuYVAGW4rWxMgDv0tXS2EAb9VqSp/HzGiYgy5PTnNxDzTClOek+xz30UXLO3RL9wTns X-Received: by 2002:a05:6358:688b:b0:183:e72e:ce0a with SMTP id z11-20020a056358688b00b00183e72ece0amr8262763rwh.1.1713085577273; Sun, 14 Apr 2024 02:06:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713085577; cv=pass; d=google.com; s=arc-20160816; b=evaAJEagSgnJUGs/G+D31ek5+9GLq/rs4jA343sQsvy+8HhxuoQRMIUbDzVkkKpwg1 twbjjaVrLD1Px0DUUWPVvTY8IrifsA5tgdnvfkcITjIivOdwZb5AZuc/HsRjcKaCSWx/ Fcu9+27/r+Wz5B9dBy7AfA3w8TBoMVktOvrgacUNGGE76KAfkeMDmfZ/cCFNtXu/IlYv NOe/YIu8/wFO4LfgY2sr+epmUhYR9oWnubVC4cXlut3morGq12A28lS+bd4Te07cL92S W+EbJTIebbC14dKyQNXNXD7+WMH54tPv+0/k2jLdmEtp/FhH8Tmsm2Vii1C9d2yiOR8B cV7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=3yhLFCQy32BOv7cF34Aar9r4ve2JL48C66WEtWuJpyQ=; fh=m/c6w5OyUA8vKLnp5ivku7cjSB94tDpuJLAg6VArN3Y=; b=EJxfvp1G8GP9ng1rX7W5ehcjsNoqLO3Zf1BLkRaTLfTzxnJeyDzzr4QOiAWNbzxsan CDNpo5iwAKH8801AOOKPsmpIv/POw5/huiS2sI4aBVVEcwMg5IWfYK+i/6SYWLT7jJ7J 8eeqmZLFevRvQRLB+suhhofwSjkuHf6MrSaMX8WONI2TEkfz6IMwhZFAbkq7fvCiiV3f wCYzSSKYknoAE+CGe1wZutmY/eOYSWHOtwbW2qnPRFSn7o0ID6+koZ/yULh+aQLnXnem 9L2MWYh++IOFvS85SYK8K3kD0BQX6hGI3plp3ITUIfUDpzIetiviqHzKEK4Gs8WTZMkY DF2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=n5lnPeDO; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-144029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k19-20020a635613000000b005dc8f60cdf9si6269744pgb.302.2024.04.14.02.06.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 02:06:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=n5lnPeDO; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-144029-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3AA62B210A0 for ; Sun, 14 Apr 2024 07:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D354921360; Sun, 14 Apr 2024 07:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b="n5lnPeDO" Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 5CE6F1B94F for ; Sun, 14 Apr 2024 07:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713081029; cv=none; b=M214me99K9H0YPU2rTab7AxNwy07i7eAQ0avY8pbqs3a99J8VpHbLc/HcyAZPn4iGyg5zCGkkqs75c0Y/uokyxhNC3tI3yUK3usfPJCQw8X1geIU2Fux+DmZlza1/kW9Y6w3dewWr0XObpth9r7uTEzjG5dof8CONRD3wqcSKb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713081029; c=relaxed/simple; bh=H6YxuLS+vZ0hRD16s9B8CTjoNeJwNOk13H0hiFdVO9E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R2iww+EXoeC3IaUQtoWBjJTMenrEhkN/yOk26+dvegJxvdxS+ZIok08ZeaY05IKo4KXt7bWxtPKOXDQnKfQt+c+iuba2UPys2VWuL8F9WhC6L/PfbCV/05GSrx6ALJ0HqtYvzCUccgSUGI0W9QQMm1CzPvsu9uvI5CaIyRa1Pcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org; spf=none smtp.mailfrom=jookia.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b=n5lnPeDO; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=jookia.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=jookia.org Date: Sun, 14 Apr 2024 17:47:20 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1713081023; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3yhLFCQy32BOv7cF34Aar9r4ve2JL48C66WEtWuJpyQ=; b=n5lnPeDOqPTrY6qQxN6kQTaIgV5/eCaBTV7UQE7s+5fMmtz7YMgq+MokQlnmucfARmtwvE 3FlkHdTRSt9N0a5OYOUxYQoiw4kq9jB2Us1biwpyRgf6lRvgTM7wX3LOlfzyIRDg/r4T2b 8/BmDBLobhdQ+8TEM4a6dUA7NWOThjXdS22qrJNzfCT7BdW6FGsgw63SOPUw11H2DapsKA S9dMFrXdnKRW+xVQkS0IVB2ccYQxqjDNszis5Y2yyLdJIaKgWSCr6+Da3c7rIDPZhUatgl qEoh/cXkurUi6X+dbYYxt1Dl9yDLq8EO0QNr91V1v0ov8Ds0YSLkzPIFW5X/NQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: John Watts To: Andre Przywara Cc: Chen-Yu Tsai , Lee Jones , 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 3/4] mfd: axp20x: AXP717: Add support for boost regulator Message-ID: References: <20240329235033.25309-1-andre.przywara@arm.com> <20240329235033.25309-4-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=us-ascii Content-Disposition: inline In-Reply-To: <20240329235033.25309-4-andre.przywara@arm.com> X-Migadu-Flow: FLOW_OUT On Fri, Mar 29, 2024 at 11:50:32PM +0000, 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 Hi, This patch looks correct to me- checked against the AXP717 datasheet. John. Reviewed-by: John Watts > --- > drivers/mfd/axp20x.c | 2 ++ > include/linux/mfd/axp20x.h | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c > index 48ce6ea693cea..62f3dd254d57b 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_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 >