Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp971322lqb; Wed, 17 Apr 2024 17:09:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOH/8CHfPYxig9eX0scwAoGP8xPRL0sBhsMwhBgSVOX+ysxhnK2W/fSkJLGUEwboist46CXjRqht5p42kps1jPJACpi3M86UuY2mCbcw== X-Google-Smtp-Source: AGHT+IG4DQQVggHDAUu4OTpwjIfaPy2wKE62zdD/IdwqSIfalqw+aJzoaEcQxWsH2VwQkMzsKYFq X-Received: by 2002:a05:6214:4244:b0:69b:4cc9:75b2 with SMTP id ne4-20020a056214424400b0069b4cc975b2mr1266017qvb.20.1713398939826; Wed, 17 Apr 2024 17:08:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713398939; cv=pass; d=google.com; s=arc-20160816; b=BGk1WoV+xPNj6l9wf3b4V88IeJg/yC+7wkKOyt0T/UC7mQMDodClfzQ8zTKwTnrhzI ONPIrDpgpC3Idqs9gpDWCV5JQQ5i3de/xubk3hBEqnSPiN5s0j6RQXU+0eb81GRGwgyh nM4gjMkmT8jYZz8sg5F6Ot3E3fhAOnXCjNJ2q5GIEzl2ZuFhYA/Nxq0QHI/4dliTRW9q 7OFidT2rbgLjmdoFBJKpMViOOH47GerTiR842a7xaofV6lGTSmHBfEpEW0Xvoej6JCPp j5wmhl4DTg1jAF9Lm2vJ+2sAG6yMI5FqxKbLyoMhElTh4KM7uZ/iUN8JVPt9XnJGD49k z1pg== 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=Mcj6ZrESILRfJd68zYVpuKe7QEHYEe/RcgT7wfhR6ok=; fh=pHEgU8vIZ2dKZDfo5+HnJ4jYKuwiESD1XRMEK8rBrI8=; b=V+OIWpygO8AAnc92eolgn/ug1yAVjuSLBC+l/e7DLQ9vhvY2xW9/Ka5GrqUZRJhddG UHrwGATZEYEETz+/Yu+N5hm58LRozsXZXi8WbiOnryJfHrXwRJP5vAfDkcT1CdeUKvXd 375///Dn7DVzfPWmTg5w2wMET9vgC51jUJa+ca6k5xz9o70Ty0cB50BRogeZ6GeMuY9q D16KAfFBdPM4kY3kwCesez5Zn2FoaIYv+1Ur3hs5uQ6dMyULnP0d9RQRxL91d0NZTJRm xnBbnFLv4mXwMdGUISnCXivjuGJChzrK5f2CwuBAN3Ycn/4JNi1OakjUAkwgOjw8Z1e+ 68lQ==; 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-149344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149344-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kk6-20020a056214508600b0069b40c7f96fsi346511qvb.310.2024.04.17.17.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 17:08:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-149344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149344-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 7EC131C20B43 for ; Thu, 18 Apr 2024 00:08:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8525026AEA; Thu, 18 Apr 2024 00:08:02 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEAAB184E; Thu, 18 Apr 2024 00:08:00 +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=1713398882; cv=none; b=kCXpKHk0KOSoilsDaQEW0kW7RWW2WLYZLZOn5Y8+vUdpkRj6EXG7vpUNZduUH6HwMq0xUEzMrQG68iw9gK0EdfaHWXhY79PCkDNMExtgjZgV4Lm4Bx7zEiatMrYFcl1xfi4hypweM+ROjCFDjMGkx5cZhc0X7tYCRGCvkOQeQGY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713398882; c=relaxed/simple; bh=pNMLP2XljnVQrqZ2lrSd7qiYZqdaEDsGRxIUHbQ8coc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JtRBJBNQKo23rFyUWvn8XM5ZE4SvTEt2FksK/SA7ve8tcfTsNGYuI6NMgN5FE2M/ztlmjQij46ebvnRMttMQIbbtGue+iwH8F7Nlc7XYLXdZgWgZhFn6mNgQVj+i0t9wD4PO/2MRFK5vCCXYAIN2qJrE0tT2Phw9Y5I2YbQL3dw= 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 25912DA7; Wed, 17 Apr 2024 17:08:28 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 622763F64C; Wed, 17 Apr 2024 17:07:58 -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 v2 5/5] regulator: axp20x: AXP717: Add boost regulator Date: Thu, 18 Apr 2024 01:07:36 +0100 Message-Id: <20240418000736.24338-6-andre.przywara@arm.com> X-Mailer: git-send-email 2.35.8 In-Reply-To: <20240418000736.24338-1-andre.przywara@arm.com> References: <20240418000736.24338-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 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 f3c447ecdc3bf..20bef3971feca 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) @@ -834,6 +835,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