Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1505460rdb; Sat, 3 Feb 2024 08:55:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ8yzw0KgDmICC6MAluZGTpUuFTyHC8bF8+WouSn0ozeLi9DAzs4Za6CF9uDNItoU3XUkN X-Received: by 2002:ac8:44a7:0:b0:42b:ef92:945 with SMTP id a7-20020ac844a7000000b0042bef920945mr1406264qto.14.1706979326964; Sat, 03 Feb 2024 08:55:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706979326; cv=pass; d=google.com; s=arc-20160816; b=qWVcnh1q4/7AhPoiwfy/xhiqbkdqFW/JdXw/XIv7jA5i+0P3PGXnM1HfpKMkuL6ayg sO0LxiZhEti2M4x0ldPo0GjQsovawuUL37bjah4V3i933Qa9Myg5Dgd0/j5kJ1na4lfc 0JRRl7AxSNQ1A7DdyM+K5CT8luPEz+0sbpzTyxTKGNLlFQev9KhywmvExmgxNkP585/Y jMxsm7pYPOe62LhG7j6l5np6F1Mnis99s1bgOTy89+NPBtjOW8j9nUJCbLGic9RrtByD BaD90sXgiDdMyMziTSv70xUKTz59P3J7YXDlbYj3pmdDtNe53S3dQMyJ45ZrJ/GCZ3am GpIA== 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:dkim-signature; bh=xTz41youk0MNhd57tDHSRqDDcqb1mXikbXnVvCDl5qs=; fh=sYslULZvrVXz6GEfwoAgItIkjhAkemYqFrJP7Fjpji8=; b=AR21WYb5HrignK7dbM8mM52RsBwHNDEsXz9tpkvmWDSMuINWBmlrvb6Di19rZVT5AJ NIdPdtdP8wmtqhfjsYAXUyJj6EbHvisdVyH6cs9WYu6ijlfdTtKr6T5ekt23h1xOkPze HuO4fLI6e92pdvOg4tTUOnJYf56uyUx1P9+/VAHpRRo161Sz/2G+Lf0l5IXepplz8fzh H9t5DI4fjYeOFAHOH+rqfT+lyuPR75P65co4XVVg9XWL2NxLn9v0SASTMOlAfS5eLxVQ 88iZBmY1fUTQXywr0i53rob1gs/oYdhI3HE2bih4ZCQ6V7BLCyQlFy7MZlVB2NiePiu2 U/VQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A0ihNCHf; 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-51194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51194-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; AJvYcCUlIsJkjYlDMHakNG0pYPV4XX3pBHYRPjXLmoOO1LO86Hjjs5WjSxd5eUMFQ80cvSbfz/viAEuwp4ro56raPrru3fNe568kacgVoGaVKA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t7-20020a05622a148700b0042c155406a6si932520qtx.144.2024.02.03.08.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 08:55:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51194-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A0ihNCHf; 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-51194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51194-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6EC1A1C22C7B for ; Sat, 3 Feb 2024 16:55:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5029B5F87B; Sat, 3 Feb 2024 16:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="A0ihNCHf" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (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 DB5575FEEC; Sat, 3 Feb 2024 16:53:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706979236; cv=none; b=eyOShZdM0lFbDT+yuQwu0vbDpAIbRbF5bn4oXu6PpfDARHpzfFJY4UNtiDGipxIoujjDMFgzlSlikRrX5E5/Bfx5sXq76av9jD7cBOgjBx7ZPdV9lj1QgUqXGvgbjfCuSiVP+u9tXIo9Jb08g4vUJVThP0f3newOt84NV8uUZfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706979236; c=relaxed/simple; bh=jTqj5XKaGGFUl2JYellu+e3d0Q2gZopfMs1HUr32YHg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K2jU4yw4kTAIxb4QAf+CRPGruZPBSrR20aD/XK21jJoH48rLztYMJS7G0x7Twtfzb1j0c57/71YLgw/2BGWXTF7EU+RsgOI6fVemQgwUjBDAebyUojmZUTead3zHuCtsVeIOfub/yGv0QdJAm/YzBJ9sMqd6VCvgnVBTLi5tlgk= 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=A0ihNCHf; arc=none smtp.client-ip=209.85.166.42 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-io1-f42.google.com with SMTP id ca18e2360f4ac-7bed9c7d33fso126091139f.1; Sat, 03 Feb 2024 08:53:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706979234; x=1707584034; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xTz41youk0MNhd57tDHSRqDDcqb1mXikbXnVvCDl5qs=; b=A0ihNCHfHXW5hHqz0P+x4F6jSVlokUXea5j+6Czt3DgFJkNMOq6LfXLWQA2Z1qrGdO //6dgeZ1gLXjLVN6VhWPhDi2/bv1Otlv/PqaHSmS4i5Zcj2/aIaHjdQQ2QlXJrBSyOk8 lpgtt6gI6xn4G7WjLNNfPySsxrdONQbRw5hldYYY6qO5ZE1pSxP0ld/xIe3dv/6q15+w S/GxBjOI3bdbjSPN1ynClWf0L83svgzlCO3qdYu7NifuZDMmgnwUaAMouJPCNV1s7Zb6 LaD+JQ/BhaIGGjqPlt2b77xSgGorvxDxM/0PV6nIS6ngEi15pUmsayqDq8/cDvZsdmBl yY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706979234; x=1707584034; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xTz41youk0MNhd57tDHSRqDDcqb1mXikbXnVvCDl5qs=; b=SOpxOWvhOlHeyLN5imau6ynzJqxr/CaqtxJfJXiKLOvrqS77r8Z4Qt8zSOj2doV5lm voK47SKrjjJltFWMBEIaVH1Xyteplcv1maNEUYSrvGjAaDSBottuIFkXnxNLFckYj5rE GET8grbEvKBNWnUVmWyi0nr0giV/kTLKQka7e7bpLXfOldqFCUXhx91RHtbDt4BMQmIp zi4Lw4QNoUe1hW19pZVs/0DsLrozs/902UkHhR+BcVTEPlZZ24jXvP8YM8JzwXCNbcRz 7hZjS7Gi+6kIXKsyaZcqlAUM3snEkIQDbt/o+7emRGZpNf2U0vUwXC0lG4a3onELvD3z Dq1w== X-Gm-Message-State: AOJu0YxIJglc2UvYLnAMJA+CXE/hAYy1X6Q92EzfP3FBFuQMUbc5VKgi YockCAcqwyA432PpT8tfHFUdjcD6UMyrLUZnNiax+1FYIiGoRFIX X-Received: by 2002:a6b:fb03:0:b0:7c0:3e75:f46d with SMTP id h3-20020a6bfb03000000b007c03e75f46dmr4802889iog.1.1706979233728; Sat, 03 Feb 2024 08:53:53 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVZdVoNbFEdixs+13RcadW8GCllVZ7xKVTj2NXM54/anl1fBuhrAHCat0rqnv3RhPASNx1opDJMA21l2z1ij3X8Rx12yVkcQF3JZTOK/TdeH+RaAtahnLEJQFr1EBEUsLv9uMvFjgkQj5cv+aAdNFwFbShA0kgja3hR3iG+/3YWHfTuV/1S1mP0chXWaEzo1MccDnVMn18czRjOnRdwS7S8EUhB/wt2V5/2+DD3jLoPD1YGeWMWIWwvNSPDn99bqMs6krYj7WIBM8uXm9uPmLjqWgjON/i6J4pg7Gd0ha42QIp6q8ORyMPm+DNgUlu+ZnGaGNxp7pw/60q7lPdfXZAwTb4x3OFApr+MUxTmbZOXDfUy89W0rZix+B3E3fOytm2w1Os/SuG+zS2jWyWAG49gtmBoWgVC9EN0+CjvIUNdxiAk0NCabImRXO4kvDZ/05GrkGmjNjwhmCwOHTNxNJ/VYPYDz8C+m20Zh3YXaeRs/ZzFi1qNX6Hbu6nGQgB53BFrrE7DW8wy7BerDEwfQN7OF6Lxf3q82TSpWlsu+op0Si2PXXkMX/A9CMmDR5IQNaxVjjL4V/4Ykpc/iOapGlUYY9hGaC4h9/BtwNDpSpu9qJs5ZIS6Pds7A8ARxvis4/LecvT0lPDtItXD1lA9gzCH9fIkyLGw/tO9z1GQdU5fJzgUlbZQcdA1S2vN/dobTHOkGlgkEkBEEypLuGbX/OJCO0DBcGp7xE8+MtJradWpWSB7zSmA0Sp2ghrlum17CIgR353mLSHpuhim31D3HFt5reRqCIhlV5aClUhtcLqzM/ACrx3JM79u06NOcVklVWAb5WPhjkdTaw2RJA+/DBN7RMsH9Ruthu4++IamxsZN0zGXu94y3o/HqeWtxxec24GM6y7XWNJl1u7NWvSf9ptVeauIDMqfUwFnszPpQr0AR4e3aUVEVEPFasL8tlOP00vcN+ mpGj9R8UMZ1+rT0d+JO6gXS+Yd+LDUMkxu/IWny7gVOlL4rA/IwaPBq/NnhEmmHkNPit6gfH7urCstUx8uEBN6/fIb4pnzHC1PX52xvzvlMLFrlSyowHFSRg+imxQyt00NhHYnbLy7R8EvstG8GndKToyv0053jjyytesykhtwZRO2JKVkUX/w6GQUERQnIpcKJZJ6aWP9YjuMSDPAxUDfkw/dQPb++belRYOp318rrcFN+Sd0dXaZDCDwVPT5KRGQZqg2zIermNjiPcM= Received: from aford-System-Version.lan ([2601:447:d002:5be:d9b2:bb4f:5531:6aa9]) by smtp.gmail.com with ESMTPSA id t30-20020a05663836de00b00470b29b82b1sm1086256jau.154.2024.02.03.08.53.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 08:53:51 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, alexander.stein@ew.tq-group.com, frieder.schrempf@kontron.de, Adam Ford , Jacky Bai , Sandor Yu , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Vinod Koul , Kishon Vijay Abraham I , Catalin Marinas , Will Deacon , Liu Ying , Ulf Hansson , Lucas Stach , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH V8 04/12] pmdomain: imx8mp-blk-ctrl: imx8mp_blk: Add fdcc clock to hdmimix domain Date: Sat, 3 Feb 2024 10:52:44 -0600 Message-ID: <20240203165307.7806-5-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203165307.7806-1-aford173@gmail.com> References: <20240203165307.7806-1-aford173@gmail.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 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: Adam Ford Reviewed-by: Jacky Bai Signed-off-by: Sandor Yu --- V2: No Change --- drivers/pmdomain/imx/imx8mp-blk-ctrl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pmdomain/imx/imx8mp-blk-ctrl.c b/drivers/pmdomain/imx/imx8mp-blk-ctrl.c index e488cf79b800..77e889165eed 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 imx8mp_hdmi_domain_data[] = { }, [IMX8MP_HDMIBLK_PD_LCDIF] = { .name = "hdmiblk-lcdif", - .clk_names = (const char *[]){ "axi", "apb" }, - .num_clks = 2, + .clk_names = (const char *[]){ "axi", "apb", "fdcc" }, + .num_clks = 3, .gpc_name = "lcdif", .path_names = (const char *[]){"lcdif-hdmi"}, .num_paths = 1, @@ -483,8 +483,8 @@ static const struct imx8mp_blk_ctrl_domain_data imx8mp_hdmi_domain_data[] = { }, [IMX8MP_HDMIBLK_PD_HDMI_TX] = { .name = "hdmiblk-hdmi-tx", - .clk_names = (const char *[]){ "apb", "ref_266m" }, - .num_clks = 2, + .clk_names = (const char *[]){ "apb", "ref_266m", "fdcc" }, + .num_clks = 3, .gpc_name = "hdmi-tx", }, [IMX8MP_HDMIBLK_PD_HDMI_TX_PHY] = { -- 2.43.0