From patchwork Thu Aug 22 16:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13773935 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1EF4EC3DA4A for ; Thu, 22 Aug 2024 16:23:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7ABD610EB5F; Thu, 22 Aug 2024 16:23:31 +0000 (UTC) Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 292D510EB5F for ; Thu, 22 Aug 2024 16:23:29 +0000 (UTC) X-IronPort-AV: E=Sophos;i="6.10,167,1719846000"; d="scan'208";a="220284611" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 23 Aug 2024 01:23:28 +0900 Received: from localhost.localdomain (unknown [10.226.92.15]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 403FC4007CF2; Fri, 23 Aug 2024 01:23:23 +0900 (JST) From: Biju Das To: Rob Herring , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Conor Dooley Cc: Biju Das , Laurent Pinchart , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Prabhakar Mahadev Lad , Biju Das Subject: [PATCH v4 0/4] Add support for RZ/G2UL Display Unit Date: Thu, 22 Aug 2024 17:23:13 +0100 Message-ID: <20240822162320.5084-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patch series aims to add support for RZ/G2UL DU. The LCD controller is composed of Frame Compression Processor (FCPVD), Video Signal Processor (VSPD), and Display Unit (DU). The output of LCDC is connected display parallel interface (DPI) and supports a maximum resolution of WXGA along with 2 RPFs to support the blending of two picture layers and raster operations (ROPs) It is similar to LCDC IP on RZ/G2L SoCs, but does not have DSI interface. v3->v4: * Restored the ports property for RZ/G2UL and described port@0 for the DPI interface in bindings patch. * Restored tags from Geert and Conor as the change is trivial (Replaced port 1->0 from v2). * Used "&" instead of "==" in rzg2l_du_start_stop() for scalability. * Restored port variable in struct rzg2l_du_output_routing * Updated rzg2l_du_encoders_init() to handle port based on hardware indices. * Restored ports property in du node and used port@0 for connected DPI interface. v2->v3: * Split patch series based on subsystem from DU patch series [1]. * Replaced ports->port property for RZ/G2UL as it supports only DPI and retained ports property for RZ/{G2L,V2L} as it supports both DSI and DPI output interface. * Added missing blank line before example. * Dropped tags from Conor and Geert as there are new changes in bindings * Avoided the line break in rzg2l_du_start_stop() for rstate. * Replaced port->du_output in struct rzg2l_du_output_routing and dropped using the port number to indicate the output type in rzg2l_du_encoders_init(). * Updated rzg2l_du_r9a07g043u_info and rzg2l_du_r9a07g044_info. [1] https://lore.kernel.org/all/20240709135152.185042-1-biju.das.jz@bp.renesas.com/ v1->v2: * Updated cover letter header "DU IP->Display Unit". * Updated commit description related to non ABI breakage for patch#3. * Added Ack from Conor for binding patches. Biju Das (4): dt-bindings: display: renesas,rzg2l-du: Document RZ/G2UL DU bindings drm: renesas: rz-du: Add RZ/G2UL DU Support arm64: dts: renesas: r9a07g043u: Add DU node arm64: dts: renesas: r9a07g043u11-smarc: Enable DU .../bindings/display/renesas,rzg2l-du.yaml | 32 ++++- arch/arm64/boot/dts/renesas/r9a07g043u.dtsi | 25 ++++ .../boot/dts/renesas/r9a07g043u11-smarc.dts | 111 ++++++++++++++++++ drivers/gpu/drm/renesas/rz-du/rzg2l_du_crtc.c | 8 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_drv.c | 11 ++ drivers/gpu/drm/renesas/rz-du/rzg2l_du_kms.c | 3 +- 6 files changed, 185 insertions(+), 5 deletions(-)