From patchwork Thu May 20 15:03:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 443467 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAE06C433B4 for ; Thu, 20 May 2021 15:04:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A664B613E2 for ; Thu, 20 May 2021 15:04:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241851AbhETPFX (ORCPT ); Thu, 20 May 2021 11:05:23 -0400 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:44137 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240413AbhETPFS (ORCPT ); Thu, 20 May 2021 11:05:18 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 971491618; Thu, 20 May 2021 11:03:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 20 May 2021 11:03:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm2; bh=2thoq06TT4N3h i9RRmUNxgrAVfVdF+93RckPU2uHJgU=; b=bTJv4oN/ATSvtzQ3xHanmd1ZqIbLw tfovHDgG4btu7Xn+kQKsCsLDAl8ORqZX24kGHQK+aQG99+mzMVRb9EWSQyQ8Tq2U NxnQZtoH+Z7+HYybX+krXePhSSPscV+pcW/yrSQoN0nO0zzSHomzU2Huwe+osIog qsA9OlIBd0iQE7mJd3VQwGjFu+sPLSlq3xr+AI3k8qt1w1t0jJCmwNdCu3Ju/wVu cV3JE0OvzsTfQdR28SJArsI9x2hg31rR7Yo3SYEJNpdpXeg/SymERRIjvCmublae dXr4kMp1U3/Ygb3wpVxYeQEYgZhbHdrzGZxEUHYDBLzvM31QhqwebB6Aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=2thoq06TT4N3hi9RRmUNxgrAVfVdF+93RckPU2uHJgU=; b=BXMu0zkg xVAXepK60dX8DJ/L5MZZzgpM6H7/FnZyOD5uEsCOcxDqO0UJzger3KNDFYC7m0YR YmUs+47L2XXo4Nd9n+id0bpIinBZhoIu9W3dM4z0xOthk56qqxJhCSyURrQpeIpb xkJqhdrxCuHsx8T5hgeNTwYooCJUU9Wchz/b+KKdbVwwK82zRjUSic+otoedvAFt UdM/SHEVPSFNR3BJw36HM5BHYHLbb+ATSkDCjaSUY7Da+LvXC94nkc/IARlxcgRi jJKQ5Xc3iF9BZb3jsl0sB9TMJUDDLIOkrK9JoESvr716PIsfwNxZ//Pd5bChUW3z GMcmkgyzQZonJQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejuddgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepvdekleevfeffkeejhfffueelteelfeduieefheduudfggffhhfffheevveeh hedvnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 May 2021 11:03:52 -0400 (EDT) From: Maxime Ripard To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: Florian Fainelli , Maxime Ripard , Eric Anholt , bcm-kernel-feedback-list@broadcom.com, Ray Jui , devicetree@vger.kernel.org, Scott Branden , linux-kernel@vger.kernel.org, Daniel Vetter , Rob Herring , linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne , linux-arm-kernel@lists.infradead.org, Mateusz Kwiatkowski Subject: [PATCH 1/4] drm/vc4: Fix clock source for VEC PixelValve on BCM2711 Date: Thu, 20 May 2021 17:03:41 +0200 Message-Id: <20210520150344.273900-2-maxime@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520150344.273900-1-maxime@cerno.tech> References: <20210520150344.273900-1-maxime@cerno.tech> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Mateusz Kwiatkowski On the BCM2711 (Raspberry Pi 4), the VEC is actually connected to output 2 of pixelvalve3. NOTE: This contradicts the Broadcom docs, but has been empirically tested and confirmed by Raspberry Pi firmware devs. Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 76657dcdf9b0..665ddf8f347f 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -994,7 +994,7 @@ static const struct vc4_pv_data bcm2711_pv3_data = { .fifo_depth = 64, .pixels_per_clock = 1, .encoder_types = { - [0] = VC4_ENCODER_TYPE_VEC, + [PV_CONTROL_CLK_SELECT_VEC] = VC4_ENCODER_TYPE_VEC, }, };