Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp524442rdb; Thu, 1 Feb 2024 16:18:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm4wL9GwsbZa7bls7J+Z6FrEA8c7RQQAu9SqpW7RYTpCesnw//QqynhdMQTKO9bo5W9ykN X-Received: by 2002:a92:c568:0:b0:363:7aa1:fd2c with SMTP id b8-20020a92c568000000b003637aa1fd2cmr8192036ilj.19.1706833093403; Thu, 01 Feb 2024 16:18:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706833093; cv=pass; d=google.com; s=arc-20160816; b=atdMLs2j/TKSMrZHW1O9tHqdNQcetGYZsIEtW8+iOuNbrbNVTPwHoy15/J4K2WG85u vkcQmURKUUSBAGXz+crlVlk1zbCvpZ05dtid5FGjOEeFTDBhm3asHhwFk07VyQIR81sR kFDLe49dqj8ST5XykA+24u4Y7C+ey13AulnFVdWulfiesYQ1KBuQxF6GuSROX2G/dY0T nY9FEmx+opCn9NuaBfSnDm6jbX0qA1KHE7gHG1rWTfsZtqclwtiQnZhvB0j2r7z3MYGo 5FxXSsP9J92AVN3a2RU/VGkZUcRJfa30HaiWObX+SB3cqpb/5yXRTe4m+IS/afB4040e cJew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=De0VqAzZQlyUqR32McEyDScTzRgzYQCCM/EkMQwWShQ=; fh=2UFds7nwkLpO3PKdC34ir+QzAh7jatOtTRjLge+ZKsU=; b=IWrYVoCzrSkgCPHnjwBQED5TxvhWdFAf2+bn5oMg4TahJeRtg4XxQlXfIR+nafAupv U8Dcy+3eQHMCcqi8cXMjhWgudzwUZqrbBH5miaJaCMn8el867o14w1a1l8bzuc1b3cEL GZq2+eNDDof9SWWwhO4u4tt1uYTS2e+J1pS2xIASu3WnUUDRYdK6I0djrEoA98HZFKbV FSjJjwyAYc0HKksj/CVTrsjRL7Kyom+7q3ojLfIA8UZwyirAetP2V4MtrrUZKfupTf3o R4HYC60an8u6AdlaLhccXeJFSccokf0oqEZylsJwsfeotL6TWykZxGgGGXklHWRSCiPT bzbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XpTODJeZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-49028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWV2DpXvmZMeZ1WZ+VlM0HSdhDe8DU5pbx+h+9c+m1MCU0SmTg7Mp3CmXU4uCoDtDf5ZGTYgy+erkjd+klUf2IzxC7ceDBSZsJbsr2hAw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g7-20020a63dd47000000b005dbefa1fb3asi562091pgj.578.2024.02.01.16.18.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 16:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XpTODJeZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-49028-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49028-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 728C2B243B6 for ; Fri, 2 Feb 2024 00:18:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1DBB15A5; Fri, 2 Feb 2024 00:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XpTODJeZ" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A071B10E5; Fri, 2 Feb 2024 00:17:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706833077; cv=none; b=frYWH3K5O9esUMcq8yLuy7ZOTXda64z821pJUb7vujLCXNDroucEFjNN+o2qLR6+9GYLbBWJCdiCb3CrhH3cs1OcnqYqZZwBsLSgk0GXE6ElwTAU+LVsCi0gRpiKpI+vDJA1OC21lVftfqHNC0eANgsYuSX3JpGA2r75HuzIlB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706833077; c=relaxed/simple; bh=k2jB5QQ5ayM1QsazOOOPQP4MmZQKKeAb/Ovz7gtJCYU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OG2GptuEu36yK32z1uoSvXvwBlwits+hDAIIu9vsW11gB2142kt6d8LQEQKVN5WLc8yCNkxfbmV6Yn0eXleM9JT02CQZUW37BH8CvNwZMi08+7US1cpj0hbA6sNVhjsOg5wn4PtK90KJx5KmoWgDqe26g4lLIKWtS9D1En2MJ2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XpTODJeZ; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5d4d15ec7c5so1435488a12.1; Thu, 01 Feb 2024 16:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706833075; x=1707437875; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=De0VqAzZQlyUqR32McEyDScTzRgzYQCCM/EkMQwWShQ=; b=XpTODJeZx2ObDSb5CZl0TZVLOoPxkvX1Zn6nqwBm3NHa9sMlHoKmAE1dZdAMNDbzAI bkmtGdPB11V7D+U0LtRNra5fO/Y8MSmXVHAEchb8L15kBOBwshWIH67I/pQ1RFjaNs5G pdfdF1SqdxsCQr4OMZmhyqGWCFjxpnIdgfGxY6KzDAa7RMgOR2i5wOOP3lqaSb8iu2Ee TvGzRNMjIS4WDMgeE/jzzq4GphfoHhxeRqSFcDf0b9veOu6dqBHPuT3r7Jh6C4LIgkh7 UrsReup9Jd8cW+vemb0VTMZ5ile8E1VW1dtbuIjzG1532virtS26jgqDLmbBZZIHvA5C xUKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706833075; x=1707437875; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=De0VqAzZQlyUqR32McEyDScTzRgzYQCCM/EkMQwWShQ=; b=YaTOXKkM10Itn/p1z/ZgBKrgO7SNFoUIt9gdXXfDn7A352aXUPe8pZoAX3ocT+XS1c JIsPd+BwMpWTLMACYwcrX5q4NAuCBYjNIYSxmDtbPi4Zu9T224P9EaGkrvOIsQDHhIY0 kETa0L8m9DUDUEZM8K6BKj+0aaItf8AuzlntbfCa233jmaNszYUsnrvFEMSB5qBdN04Q 7Vmh0cNAbzlze1BWSoShHMpaGcBDilxF6s1oR8Aq0depcFbzAu9D8r68V7EDdWkUnIsd +RJRFmvleeC8Zt4yP398jEqLe6Zv1KXYkZqVcwrHFvV/MtFF1c49575/N/0QwpbabNh2 6xIQ== X-Gm-Message-State: AOJu0Yy/rkKcfT96qFpczOH5U513j1ymG0yIoOR80cObGf8Gi3szEiRC EKonn1ToQAlLNZBm94nE/0aqd2Gacr8ZtZm2MtS7Enx4t1eJWkGxIStvsTAM9AVfRL/sC47xJAI q/nKpdM10pGZQR1h495WI/Mlu37s= X-Received: by 2002:a05:6a21:2c82:b0:19c:9d4d:7d7 with SMTP id ua2-20020a056a212c8200b0019c9d4d07d7mr5802356pzb.41.1706833074745; Thu, 01 Feb 2024 16:17:54 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240106223951.387067-1-aford173@gmail.com> <20240106223951.387067-2-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Thu, 1 Feb 2024 18:17:43 -0600 Message-ID: Subject: Re: [PATCH 2/3] pmdomain: imx8mp-blk-ctrl: imx8mp_blk: Add fdcc clock to hdmimix domain To: Ulf Hansson Cc: linux-pm@vger.kernel.org, Sandor Yu , Jacky Bai , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Lucas Stach , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 4:33=E2=80=AFPM Ulf Hansson = wrote: > > On Sat, 6 Jan 2024 at 23:40, Adam Ford wrote: > > > > According to i.MX8MP RM and HDMI ADD, the fdcc clock is part of > > hdmi rx verification IP that should not enable for HDMI TX. > > But actually if the clock is disabled before HDMI/LCDIF probe, > > LCDIF will not get pixel clock from HDMI PHY and print the error > > logs: > > > > [CRTC:39:crtc-2] vblank wait timed out > > WARNING: CPU: 2 PID: 9 at drivers/gpu/drm/drm_atomic_helper.c:1634 drm_= atomic_helper_wait_for_vblanks.part.0+0x23c/0x260 > > > > Add fdcc clock to LCDIF and HDMI TX power domains to fix the issue. > > > > Signed-off-by: Sandor Yu > > Reviewed-by: Jacky Bai > > Signed-off-by: Adam Ford > > Just to let you know, this looks good to me and it seems like the NXP > people like this too. What I am waiting for is an ack on the DT patch, > then I am ready to queue this up. What about the bindings? I'm assuming that Shawn would take the DT through his IMX tree, but I am not sure if I need to resubmit the bindings with a different commit message. adam > > Kind regards > Uffe > > > --- > > The original work was from Sandor on the NXP Down-stream kernel > > > > diff --git a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c b/drivers/pmdomain/= imx/imx8mp-blk-ctrl.c > > index e3203eb6a022..a56f7f92d091 100644 > > --- a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c > > +++ b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c > > @@ -55,7 +55,7 @@ struct imx8mp_blk_ctrl_domain_data { > > const char *gpc_name; > > }; > > > > -#define DOMAIN_MAX_CLKS 2 > > +#define DOMAIN_MAX_CLKS 3 > > #define DOMAIN_MAX_PATHS 3 > > > > struct imx8mp_blk_ctrl_domain { > > @@ -457,8 +457,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx= 8mp_hdmi_domain_data[] =3D { > > }, > > [IMX8MP_HDMIBLK_PD_LCDIF] =3D { > > .name =3D "hdmiblk-lcdif", > > - .clk_names =3D (const char *[]){ "axi", "apb" }, > > - .num_clks =3D 2, > > + .clk_names =3D (const char *[]){ "axi", "apb", "fdcc" }= , > > + .num_clks =3D 3, > > .gpc_name =3D "lcdif", > > .path_names =3D (const char *[]){"lcdif-hdmi"}, > > .num_paths =3D 1, > > @@ -483,8 +483,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx= 8mp_hdmi_domain_data[] =3D { > > }, > > [IMX8MP_HDMIBLK_PD_HDMI_TX] =3D { > > .name =3D "hdmiblk-hdmi-tx", > > - .clk_names =3D (const char *[]){ "apb", "ref_266m" }, > > - .num_clks =3D 2, > > + .clk_names =3D (const char *[]){ "apb", "ref_266m", "fd= cc" }, > > + .num_clks =3D 3, > > .gpc_name =3D "hdmi-tx", > > }, > > [IMX8MP_HDMIBLK_PD_HDMI_TX_PHY] =3D { > > -- > > 2.43.0 > >