Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp237874iob; Mon, 2 May 2022 18:08:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwmuH+LZpQVENY1Lb/R3BijkXHX18wYeqhAR0/QMKOLHOF5YOlxmQS60tsJ96fIhUDymJD X-Received: by 2002:a17:90a:d584:b0:1bc:e520:91f2 with SMTP id v4-20020a17090ad58400b001bce52091f2mr2125426pju.192.1651540089448; Mon, 02 May 2022 18:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540089; cv=none; d=google.com; s=arc-20160816; b=0T06tGeh/89BWkv0Y+FbC49NH+/yLhC5yYGOAU556FvxcXhz39/vUoBATZ6fJ2DjkX Am3MDXsi2AHrXKMeCXXGYf2DEBeEUGYccIX/eFKUkYzKjGLFaJ6n5qQbKKtHqe4AtbfF WXD3DV+S3oB45VEFr0gw2go5s6Jb8XMILDUlD7NjlXxTs3A6VNyttpDOTFfAJD61pOz7 5JKH9vsKBYTrfmHsHu3yjDG97RovZreya1wW7bkJlIbNP6JIiX5IjClP9xcbSvKkeqxm 2nEy1J3A5CtVA2ysXhQJK1Zoo/f15yRt24d0M2WVqdxONiDxOLodSbhtYNBfIB0qxrJ9 v77g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=sC/Kso/N8wT//ZISWobZg45UNXJrx1M2bjNXVxM/HSQ=; b=OmlXjR6n2P7UdiVfGhnFkrp4ztz4vV27UiUcQs+lQpEhrRHl4bPtiDxAVTfDeHSlqd V+UcufRXYtdoWv1lkNVyQMaBCS0jjg7lXeiR9zuhkH9qHZjjZmwbRrOsXhNDU0n6YHln UlPAAusqDRI/nVM3JrE6Es1ArRx6LfNkZ8nVYOG8QUcYM6bZr/WalYVFO4aQM98AQ4aS rmc3IjWJsp22jiDyz50ttfGKHyxO/qg1o2sXwGtwV/o+d3yDs9bmaClA/v+2ejigg5YC GEj3Ayf4CGJnqgrp2EDTqQE6/ekUA9M5qciTyh90F1t7F6Hvsa1fvy/vbhLQOmzaWjku 6P7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p10-20020a65490a000000b003a97e8f54c2si16159556pgs.244.2022.05.02.18.08.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:08:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A11ED6459; Mon, 2 May 2022 17:50:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242275AbiEBKQ3 (ORCPT + 99 others); Mon, 2 May 2022 06:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384505AbiEBKQU (ORCPT ); Mon, 2 May 2022 06:16:20 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32C9C1A041 for ; Mon, 2 May 2022 03:12:31 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlT2W-0005kl-ND; Mon, 02 May 2022 12:12:24 +0200 Message-ID: Subject: Re: [PATCH v1 2/4] soc: imx: imx8m-blk-ctrl: Display Power ON sequence From: Lucas Stach To: Viraj Shah , shawnguo@kernel.org, s.hauer@pengutronix.de Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Adam Ford , Frieder Schrempf , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Mon, 02 May 2022 12:12:22 +0200 In-Reply-To: <20220502100233.6023-3-viraj.shah@linutronix.de> References: <20220502100233.6023-1-viraj.shah@linutronix.de> <20220502100233.6023-3-viraj.shah@linutronix.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, dem 02.05.2022 um 12:02 +0200 schrieb Viraj Shah: > Enable the dispmix software clock and release the resets > as shown in the 5.2.9.5 section of reference manual. > > Signed-off-by: Viraj Shah > --- > drivers/soc/imx/imx8m-blk-ctrl.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c > index 122f9c884b38..ca63fd30e70a 100644 > --- a/drivers/soc/imx/imx8m-blk-ctrl.c > +++ b/drivers/soc/imx/imx8m-blk-ctrl.c > @@ -99,7 +99,10 @@ static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd) > dev_err(bc->dev, "failed to enable clocks\n"); > goto bus_put; > } > - regmap_set_bits(bc->regmap, BLK_CLK_EN, data->clk_mask); > + /* As per section 5.2.9.5 of reference manual imx-8MMini-yhsc.pdf, > + * enable dispmix sft clock to power on the display > + */ > + regmap_write(bc->regmap, BLK_CLK_EN, 0x1FFF); Nack. The only clock that needs to be handled here is the ADB clock for the handshake. All other clocks are enabled by the virtual power domains provided by this blk-ctrl driver when the peripheral power up. Regards, Lucas > > /* power up upstream GPC domain */ > ret = pm_runtime_get_sync(domain->power_dev); > @@ -112,7 +115,7 @@ static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd) > udelay(5); > > /* release reset */ > - regmap_set_bits(bc->regmap, BLK_SFT_RSTN, data->rst_mask); > + regmap_write(bc->regmap, BLK_SFT_RSTN, 0x7F); > if (data->mipi_phy_rst_mask) > regmap_set_bits(bc->regmap, BLK_MIPI_RESET_DIV, data->mipi_phy_rst_mask); >