From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E35E8C4321E for ; Mon, 28 Nov 2022 06:48:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 42EEC8447C; Mon, 28 Nov 2022 07:48:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=sholland.org header.i=@sholland.org header.b="Xq3tQoPa"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="ZD9U63ch"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A2417830E9; Mon, 28 Nov 2022 07:48:02 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 55A8C830E9 for ; Mon, 28 Nov 2022 07:48:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=sholland.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel@sholland.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E46075C00A4; Mon, 28 Nov 2022 01:47:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 28 Nov 2022 01:47:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1669618078; x=1669704478; bh=4lCE7uaWUJTD+88KmMhfFYVNq wGXtX6ZchfFlC/YF4k=; b=Xq3tQoPavfr8ElISas7h/fCOL1Y1Q9QvdEBRZpRMU CQfczlLpNCMLNgvw8lt1r2HfYv440WhVCf0y17mAaw6uI/mA/7O/3woj+g1vTiaK oxwQiOyyv2jZ0xc+8Knbj+RycUkJaZnA9sofYlYssypFyvFGkCrWcXyAn5WeY3dD ISIuY4uEvW8Xbrt1qtMetcbJjbbej+jc0eTlaQu6IGe3XRowLak3SRkfrtd3tucG nV9Lila+IYEooquDNgVjiXFBMJnSObZjgWRrxydtdB6vDAJE7ZEt4ISr4+88RRYc hTrZFn2t26QgcLfnlTLyaO8ZM1OQ/W0ApKaE/CNLPBk1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1669618078; x=1669704478; bh=4lCE7uaWUJTD+88KmMhfFYVNqwGXtX6Zchf FlC/YF4k=; b=ZD9U63chZ+i1gtuQ3rgett3m2c1nHZI1AMGZc0gCDX+lrZAxOB/ QXl+HCcMaF58RHWKAV4kcRl2TrfjX18+yEs1vv5pldn9dpUn61BJxFBUJqWI9uOE aqDWNb6+xuLEHCshHo22endVbvPKKw/+8S4zvNFcAUrpq3WI7gHwjMcFH7VmIadV x14/zPodm8R+Z5ikbT0y5xz2G35HABxarsb0Y+2+5g7kN0SffLNfT5DHHnPZVsUU op1Bbkk1U2tVHvwp11+Ar5bAqWTK5WCZf/hDvZqVFTJ/rmj8bwvGw8nZDG8o2mEw AjC2M2av+hD/rI5eLtiQAFo10Kj6t92+yfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrjedugddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeevlefhjeeuleeltedvjedvfeefteegleehueejffehgffffeekhefh hfekkeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Nov 2022 01:47:58 -0500 (EST) From: Samuel Holland To: Jaehoon Chung , Andre Przywara Cc: u-boot@lists.denx.de, Samuel Holland Subject: [PATCH 0/3] power: X-Powers PMIC regulator support Date: Mon, 28 Nov 2022 00:47:53 -0600 Message-Id: <20221128064757.2933-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This series adds a driver for the regulators in X-Powers AXPxxx PMICs. It supports everything except regulators shared with GPIO pins. Those have a different register interface, so they may need a separate driver. Regulator setup in U-Boot proper is needed for Ethernet and HDMI/LCD display output. For some SoCs (H616), this driver could possibly be used for the DRAM regulator setup done in SPL. Older SoCs do all of their regulator setup in SPL. Some of that is probably necessary, but I think a lot of it is not and can be deferred to U-Boot proper or Linux; that's just where it was convenient to initialize the PMIC at the time. The main goal here is to replace the corresponding code in TF-A, both because of TF-A size constraints, and because the TF-A code is too simple/overzealous and breaks EPHY power sequencing on some boards. Samuel Holland (3): power: pmic: axp: Provide a variant ID in the driver data power: regulator: Add a driver for AXP PMIC regulators power: pmic: axp: Bind regulators from the DT drivers/power/pmic/axp.c | 36 ++- drivers/power/regulator/Kconfig | 14 ++ drivers/power/regulator/Makefile | 1 + drivers/power/regulator/axp_regulator.c | 308 ++++++++++++++++++++++++ include/axp_pmic.h | 12 + 5 files changed, 362 insertions(+), 9 deletions(-) create mode 100644 drivers/power/regulator/axp_regulator.c -- 2.37.4