Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp270219lqz; Fri, 29 Mar 2024 16:51:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/ifVbc1hUoMT6pZWZrpGcs5CBgxyULF/DlLcblAh/5MkkogceoUSxLz7Lvl+gBqWOOtby5FX86wgeXaGgQW1/O8+exE/Z5kJDN1KXUg== X-Google-Smtp-Source: AGHT+IEn7EqxZ1xI4hyS0C+Kt+pV5YisFcFleUv5Hs555FuMGojH1oo5TWSvejKfBn/6tRinJnz/ X-Received: by 2002:a0c:c548:0:b0:691:23f3:2cba with SMTP id y8-20020a0cc548000000b0069123f32cbamr3491743qvi.30.1711756307671; Fri, 29 Mar 2024 16:51:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711756307; cv=pass; d=google.com; s=arc-20160816; b=O8lZTlGaVR+tVVRzsYmiRZSLbjlPEtYSjySi8VbbYvMhc2mbuiWsdKrEejfFqmrGbG GeXlLuvAz1baHS4o0ojGwmJGLcuXOPD/yJuUCRQLSe21RvD6mh0U8BjDfqupwCZR8nbt paDK6BKM9jvCOrMpc1vZMm+BeZPY5ybL2vVqw+EUcC/xqnhq1zj0IkS67LDTifyBesqk O56WluacBwvKxYseS+AaneWlXzIwZo1dam1ceFJm1KuO8ULQ+YzS5wDXyPln9vEWzUpl F17fZLgVDf5qw3J/0sjnJkJGg+D3zOZR6PKXp6iwriWV47AFJ9L8M01q6NYY5/MTwRwS Z3uQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=aJB+8oXN4casja+XFSVWPODTTzfLpF8Nd+/tRt27ZH4=; fh=pHEgU8vIZ2dKZDfo5+HnJ4jYKuwiESD1XRMEK8rBrI8=; b=Awe3pfwWZJVHy+qd2ULZT4OGvP8PJ08mpZSqoL02/S6+M7zO6Fw/xLB/yaZ9/cFquj XZSNqZj87UB3omF8myIfEHIh1PTDjS/wlfziMaiuQme8eYeSLLMV8W6+HcoxWP/I6EoU 2f/A61Z7iQ9qhFuh7pG7Wwzlvxs+qmsAvEJqWaWKnE6jYHp2JVoX35GqtYgf8IQhTPcA jjjZ3KATXadg/FgkM38M8UorvV94vp0zB7E+NCiEAeoAt0ymEcRE7cyadEK4tAwJ+exY YM08UqCa9kw8SFo2hbcDM/366K9Z63f8BE4QQ9fbAjkS0ZnMsFmEW0+fhh3INvwuDh4V VpCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-125537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qd23-20020ad44817000000b0069682ce41e5si4761007qvb.174.2024.03.29.16.51.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 16:51:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125537-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-125537-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 49D9C1C20C5A for ; Fri, 29 Mar 2024 23:51:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2530B13FD7F; Fri, 29 Mar 2024 23:50:59 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E99813F44E; Fri, 29 Mar 2024 23:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711756258; cv=none; b=G0lzZA0/GKD1Ij8uO/qFeLXIS+ckV82fP8GwISmNVYouiS2FS7uSGfEMc9dDRfO56Ayyrwxf+L90XK6CeZHQKG93NFeJ/7YBm/hdOVR3Rfqp1K5lHxWGVO4ReBURQNBa5fdlQzRejGzOqstiCDzFo8mJjHVlLkOV7ZYT9qxno+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711756258; c=relaxed/simple; bh=gzR5Vir/b6qMXe+daHd5TmgU6Hf11gWLwyKoQMzbRxg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=g+YMURDC64bme+8L0Rs3xAKyhaKSjf5zPhvCBlG2AfqUeSuCjnZ1LQnzs2NCJ0Zr7Kw1Sd6Homsm6vAL6HLvyGPYSwI5w5icEGuMXXYCJklQVy6VeTtz/ybDN/4Ioay9eAC6ZU5VCJo6ChrfA4AAdXOKA/c0Xi5EHCvvdhoCnR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB97712FC; Fri, 29 Mar 2024 16:51:29 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B3B5B3F64C; Fri, 29 Mar 2024 16:50:54 -0700 (PDT) From: Andre Przywara To: Chen-Yu Tsai , Lee Jones , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Jernej Skrabec , Samuel Holland , Ryan Walklin , Chris Morgan Subject: [PATCH 4/4] regulator: axp20x: AXP717: Add boost regulator Date: Fri, 29 Mar 2024 23:50:33 +0000 Message-Id: <20240329235033.25309-5-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 In-Reply-To: <20240329235033.25309-1-andre.przywara@arm.com> References: <20240329235033.25309-1-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-Transfer-Encoding: 8bit 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 --- 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