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 99036C433FE for ; Mon, 28 Nov 2022 07:03:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E6958521A; Mon, 28 Nov 2022 08:02:47 +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="WEgZZN26"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="LzODjXdF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64F4D84C36; Mon, 28 Nov 2022 08:02:41 +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 B68B3851B8 for ; Mon, 28 Nov 2022 08:02:36 +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 compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EAFA05C006B; Mon, 28 Nov 2022 02:02:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 28 Nov 2022 02:02:35 -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 :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1669618955; x=1669705355; bh=1c lXc43ueIl7OIM3QPWliDYFgq6clETlSjslDRjJc+Y=; b=WEgZZN26ebjGp/1i3h tPR8qxssAxs0APziyic37iY17OsnH8/yhZwmYtTvxiNjwWNlE2m3E7BMuVPxdpxp yVyvgciyE+Qk0Mz6tJBgHlbIkchGdASn1wgy49aMilGdKBDioMo0DVP6JVhlILc/ CrT7CdYXEm3wZ+PkGhQo0+mueikNhLYTsT9JbtrOre5vxRLWnS528hguPqV1pfsp AxVv+rRuuDQr+u3yx2l4er3zsikTyVy+FHbIsyJgT1uvlrn6WV7fi73UKHpB0lBG b69zw+Ur2bYo2b3eEEVpVVrpc6BaunEf23uscRVGKauuTonfS/kI6GzFijTDU7fk otlA== 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:in-reply-to :message-id:mime-version:references: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=1669618955; x=1669705355; bh=1clXc43ueIl7O IM3QPWliDYFgq6clETlSjslDRjJc+Y=; b=LzODjXdFXKeuClxVSVYNuvdLls3Rg WdQQB6DlMS6Roc3dqUCEXCyTURJYfeEtHSjsndTPMAXTIlHTAP1oNSJQeK7Xrxkl tag+sAuvB+oMO0w+7APzgDhPdewl7vdlSTMLtYQ9z20UfMaURszZc+5IzcKEBzk5 04itYN6z6yjCqf/cR9VVIjzCTAVFy25VeKTaqp12NJb0dCTGsXqIA8jkIhzmW8YR o1UTU71/0C/on8s7o9b4pBGMfFny2DuGdmPylW26L1+tzG+3ex6lw9hvh4V0HkmD pkSzzSVZrA+Bwlo6YRyRift2TItP08GxIizTw/I8aijCkKedwMFtWL07A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrjedugddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Nov 2022 02:02:35 -0500 (EST) From: Samuel Holland To: Andre Przywara , Jernej Skrabec , Anatolij Gustschin Cc: Samuel Holland , Jagan Teki , Lukasz Majewski , Sean Anderson , u-boot@lists.denx.de Subject: [PATCH 5/5] video: sunxi: dw-hdmi: Use DM for HVCC regulator Date: Mon, 28 Nov 2022 01:02:28 -0600 Message-Id: <20221128070229.4394-6-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221128070229.4394-1-samuel@sholland.org> References: <20221128070229.4394-1-samuel@sholland.org> 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 The HDMI PHY depends on the HVCC supply being enabled. So far we have relied on it being enabled by an earlier firmware stage (SPL or TF-A). Attempt to enable the regulator here, so we can remove that dependency. Signed-off-by: Samuel Holland --- drivers/video/sunxi/sunxi_dw_hdmi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index 04588b570fd..963689358a6 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -19,6 +19,7 @@ #include #include #include +#include struct sunxi_dw_hdmi_priv { struct dw_hdmi hdmi; @@ -331,8 +332,13 @@ static int sunxi_dw_hdmi_probe(struct udevice *dev) (struct sunxi_ccm_reg *)SUNXI_CCM_BASE; struct reset_ctl_bulk resets; struct clk_bulk clocks; + struct udevice *hvcc; int ret; + ret = device_get_supply_regulator(dev, "hvcc-supply", &hvcc); + if (!ret) + regulator_set_enable(hvcc, true); + /* Set pll3 to 297 MHz */ clock_set_pll3(297000000); -- 2.37.4