From patchwork Thu Nov 19 15:55:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 11918905 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=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 5AE9FC388F9 for ; Thu, 19 Nov 2020 20:32:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CF4032222F for ; Thu, 19 Nov 2020 20:32:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF4032222F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C65686E80B; Thu, 19 Nov 2020 20:32:07 +0000 (UTC) Received: from aposti.net (aposti.net [89.234.176.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id E26926E536 for ; Thu, 19 Nov 2020 15:56:11 +0000 (UTC) From: Paul Cercueil To: David Airlie , Daniel Vetter Subject: [PATCH 0/3] drm/ingenic: Add support for delta-RGB panels Date: Thu, 19 Nov 2020 15:55:56 +0000 Message-Id: <20201119155559.14112-1-paul@crapouillou.net> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 19 Nov 2020 20:32:07 +0000 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: , Cc: Paul Cercueil , od@zcrc.me, Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This patchset adds support for delta-RGB panels to the ingenic-drm driver. Delta-RGB panels have diamond-pattern subpixel layout, and expect odd lines to have RGB subpixel ordering, and even lines to have GBR subpixel ordering. Such panel is used in the YLM (aka. Anbernic) RG-99, RG-300, RG-280M and RG-280V handheld gaming consoles. Cheers, -Paul Paul Cercueil (3): drm/ingenic: Compute timings according to adjusted_mode->crtc_* drm/ingenic: Properly compute timings when using a 3x8-bit panel drm/ingenic: Add support for serial 8-bit delta-RGB panels drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 40 ++++++++++++++++------- drivers/gpu/drm/ingenic/ingenic-drm.h | 14 ++++++++ 2 files changed, 43 insertions(+), 11 deletions(-) Reviewed-by: Sam Ravnborg