Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp823390lqp; Sun, 14 Apr 2024 00:50:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFE4TaMjZqqHK4mAzBdctxFNx4otxdQqh6xuHQCmjTFlIBjbNI2qCZkJXXpTz2OFQ2nPpj+DrzR5VVjywfIQDCJE0osMM4Uw/ajfXpMw== X-Google-Smtp-Source: AGHT+IGnXJIx7LRqx2IzjZPSkiptrRN/pP//Q0A3/TGG/aBN5CUdFKmhNUOhthYbkoRNqCohdnAh X-Received: by 2002:a05:622a:5d2:b0:436:a402:6391 with SMTP id d18-20020a05622a05d200b00436a4026391mr7769723qtb.42.1713081051449; Sun, 14 Apr 2024 00:50:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713081051; cv=pass; d=google.com; s=arc-20160816; b=ZYDLXkCtQoiCr3IvkgzKMMSq8uV1W58WtoNh8ssf1pdiBQzqgY4mWYxCiNlquSqcvd DY2GvUZL0h595K8EbcesX1dVPviv34/UBNfaTKhxdyIz8+sHBaacFi35wbaXi4Og3hR8 JNHyrdCZnPLGVWTbyUoq9k+kfRsT34p79Yr/sslE357TfvQjCiscGtqc3RFYKEYXPlVm zSvVLRKEI5RdD1xAKX9hLBPslMPMCyYGGCUImXevWwVL8rtvdh51dfSsGDo804oy65gW GA5j9VsiEqOG6aho7TvDzxZ/w1lMyljieMNWBJG9sltQZsN+wns7eEYw1C+xQPdUJB/E n3CA== 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=J74iIU8vI1GkxvSB3iLi2bj3VeEbcXCRePxliDAEfkk=; fh=m/c6w5OyUA8vKLnp5ivku7cjSB94tDpuJLAg6VArN3Y=; b=S1958neDv/1sqdSAYfHUWdhiV6v1jgC7bG2w1lNvol+Qg0YthPEvIoKwQEbEqnK0JD QiQlUWEgwQEiKZLQTyk3vaeB7fyI3QGSZwOBttGNxD6zEopfUWNawK68CpC0A2Qy8Yij B3vG0Q6FcUUvBDyX8hNF+0x7aV693UZf7SEERFSa+NPJ+vdh17h6HuAqkMKPUbujB203 Bhw6RW5sZ33W4ge9Nsk/yVXeTTA6bjj7Qp50BzwoqbEZXO3MljJgvVSZxqrErIc7B63N Jw5uEzrTqpDTwNyESzsr/8ajpfKm+8MmbmDMhxQoo/hIr3sezGYs0UG/NUPlsTni1HN/ 5VFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=xjK7upus; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-144030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m4-20020a05622a118400b00434ad429d66si7767632qtk.740.2024.04.14.00.50.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 00:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=xjK7upus; arc=pass (i=1 dkim=pass dkdomain=jookia.org dmarc=pass fromdomain=jookia.org); spf=pass (google.com: domain of linux-kernel+bounces-144030-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144030-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D8C431C2102E for ; Sun, 14 Apr 2024 07:50:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F7F921360; Sun, 14 Apr 2024 07:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jookia.org header.i=@jookia.org header.b="xjK7upus" Received: from out-187.mta0.migadu.com (out-187.mta0.migadu.com [91.218.175.187]) (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 09212225CE for ; Sun, 14 Apr 2024 07:50:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713081042; cv=none; b=oUmHNXmb73fx9ngsTk7yt/mK9fzLAL5iOj262/LkLCiWtJtUXOsfI2a6R49Hh++XO1EwqCW+rIxfRn0y13x+aab2OPpK/BZr2RC5qiTudG1qpmH+9WpfCJVceS7gu5+bFSkDUdaCVHH7SR6yBxNOnfBfqmLAllsrcTtWG7X1pVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713081042; c=relaxed/simple; bh=DlrkisTiYTTNhdGDHEA9kXqEXoDP/oRSivtOzUUYqBw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SqaMv07ZzOV7qJWtSHOaLwAKQOzxB+yJ/6JvKvXEN0Yl8+bhH9lMNkZoa+AjzRFaZbqJSbEIuHveJOq9SDnVTijJ+tc/YX0kGDCNm6DWgBN/yi14grwumIB8sS8xawkDuiS7AUjNSpgQB6ogv29B474IOHZGEr0vnp5pDrqE0Os= 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=xjK7upus; arc=none smtp.client-ip=91.218.175.187 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:54 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1713081039; 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=J74iIU8vI1GkxvSB3iLi2bj3VeEbcXCRePxliDAEfkk=; b=xjK7upus0wE72MAH3FpYhJbFJRk6k9oXuSSdKMhEtwSqzb6/zbXTJo2x9CGLj5QDMURXyU QSTxWFQFlOU0lVPAV2lywFp9Fb4QDyDYBSAc5GMPyEf7bkc6Lx4ru8psKHeKM/hT8Lc5r7 EzVmjdm9jE7Po51IOJpXx1JRfQjSeRmTJDL1rTpakcWi7+/fNuEz4IXDPdd1xEHMcTN3ma QckSVOPmOHhm/RXElSn9DzKNQjRwe34mm5LnF+aZ4GNVnL6lWuYfGg4rrfWVjozpIDFFo+ uM+qCdeCOi2COxRqod7rE93M/ymk1ls8WQjXyfhic0erPV9FttNplLH9YsKK5A== 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 4/4] regulator: axp20x: AXP717: Add boost regulator Message-ID: References: <20240329235033.25309-1-andre.przywara@arm.com> <20240329235033.25309-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=us-ascii Content-Disposition: inline In-Reply-To: <20240329235033.25309-5-andre.przywara@arm.com> X-Migadu-Flow: FLOW_OUT On Fri, Mar 29, 2024 at 11:50:33PM +0000, Andre Przywara wrote: > The AXP717 also contains an adjustable boost regulator, to provide the > 5V USB VBUS rail when running on battery. > > Add the regulator description that states the voltage range this > regulator can cover. > > Signed-off-by: Andre Przywara Hi, I checked this against the AXP717 datasheet and it looks correct. John. Reviewed-by: John Watts > --- > drivers/regulator/axp20x-regulator.c | 4 ++++ > include/linux/mfd/axp20x.h | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c > index 3907606b091f6..71407c5810941 100644 > --- a/drivers/regulator/axp20x-regulator.c > +++ b/drivers/regulator/axp20x-regulator.c > @@ -143,6 +143,7 @@ > #define AXP717_DCDC3_NUM_VOLTAGES 103 > #define AXP717_DCDC_V_OUT_MASK GENMASK(6, 0) > #define AXP717_LDO_V_OUT_MASK GENMASK(4, 0) > +#define AXP717_BOOST_V_OUT_MASK GENMASK(7, 4) > > #define AXP803_PWR_OUT_DCDC1_MASK BIT_MASK(0) > #define AXP803_PWR_OUT_DCDC2_MASK BIT_MASK(1) > @@ -829,6 +830,9 @@ static const struct regulator_desc axp717_regulators[] = { > AXP_DESC(AXP717, CPUSLDO, "cpusldo", "vin1", 500, 1400, 50, > AXP717_CPUSLDO_CONTROL, AXP717_LDO_V_OUT_MASK, > AXP717_LDO1_OUTPUT_CONTROL, BIT(4)), > + AXP_DESC(AXP717, BOOST, "boost", "vin1", 4550, 5510, 64, > + AXP717_BOOST_CONTROL, AXP717_BOOST_V_OUT_MASK, > + AXP717_MODULE_EN_CONTROL, BIT(4)), > }; > > /* DCDC ranges shared with AXP813 */ > diff --git a/include/linux/mfd/axp20x.h b/include/linux/mfd/axp20x.h > index 4dad54fdf67ee..5e86b976c4caa 100644 > --- a/include/linux/mfd/axp20x.h > +++ b/include/linux/mfd/axp20x.h > @@ -486,6 +486,7 @@ enum { > AXP717_CLDO3, > AXP717_CLDO4, > AXP717_CPUSLDO, > + AXP717_BOOST, > AXP717_REG_ID_MAX, > }; > > -- > 2.35.8 >