From patchwork Sun Oct 29 19:45:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 13439875 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 C5773C4167D for ; Sun, 29 Oct 2023 19:46:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 12B9110E19E; Sun, 29 Oct 2023 19:46:16 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by gabe.freedesktop.org (Postfix) with ESMTP id 6007810E192 for ; Sun, 29 Oct 2023 19:46:12 +0000 (UTC) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8AxZ+h+tj5lq5s1AA--.3547S3; Mon, 30 Oct 2023 03:46:07 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxXNx+tj5lKq02AA--.51878S2; Mon, 30 Oct 2023 03:46:06 +0800 (CST) From: Sui Jingfeng To: Maxime Ripard , Thomas Zimmermann Subject: [PATCH 0/8] drm/loongson: Submit a mini VBIOS support and a display bridge driver Date: Mon, 30 Oct 2023 03:45:59 +0800 Message-Id: <20231029194607.379459-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxXNx+tj5lKq02AA--.51878S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7WF1DCr4UJFW3Jw1kuryrKrX_yoW8tw45pF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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: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Loongson boards using various external display bridges to extend output display interface. To complete the support, we have to introduce VBIOS( or DT/ACPI support) and display bridge drivers. Sui Jingfeng (8): drm/loongson: Introduce a minimal support for Loongson VBIOS drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init() drm/loongson: Started to attach display bridge driver for LS7A1000 drm/loongson: Using vbios for the LS7A2000 output initialization drm/loongson: Clean up the output part of LS7A2000 drm/loongson: Support to infer DC reversion from CPU's PRID value drm/loongson: Add support for the display subsystem in LS2K2000 drivers/gpu/drm/loongson/Kconfig | 1 + drivers/gpu/drm/loongson/Makefile | 7 +- drivers/gpu/drm/loongson/ite_it66121.c | 749 ++++++++++++++++++ drivers/gpu/drm/loongson/ite_it66121.h | 19 + drivers/gpu/drm/loongson/ite_it66121_regs.h | 268 +++++++ drivers/gpu/drm/loongson/loongson_device.c | 50 ++ drivers/gpu/drm/loongson/loongson_vbios.c | 420 ++++++++++ drivers/gpu/drm/loongson/loongson_vbios.h | 59 ++ drivers/gpu/drm/loongson/lsdc_drv.c | 4 + drivers/gpu/drm/loongson/lsdc_drv.h | 27 +- drivers/gpu/drm/loongson/lsdc_output.c | 643 +++++++++++++++ drivers/gpu/drm/loongson/lsdc_output.h | 57 +- drivers/gpu/drm/loongson/lsdc_output_2k2000.c | 84 ++ drivers/gpu/drm/loongson/lsdc_output_7a1000.c | 144 ++-- drivers/gpu/drm/loongson/lsdc_output_7a2000.c | 575 +++----------- drivers/gpu/drm/loongson/lsdc_probe.c | 35 + drivers/gpu/drm/loongson/lsdc_probe.h | 2 + 17 files changed, 2560 insertions(+), 584 deletions(-) create mode 100644 drivers/gpu/drm/loongson/ite_it66121.c create mode 100644 drivers/gpu/drm/loongson/ite_it66121.h create mode 100644 drivers/gpu/drm/loongson/ite_it66121_regs.h create mode 100644 drivers/gpu/drm/loongson/loongson_vbios.c create mode 100644 drivers/gpu/drm/loongson/loongson_vbios.h create mode 100644 drivers/gpu/drm/loongson/lsdc_output.c create mode 100644 drivers/gpu/drm/loongson/lsdc_output_2k2000.c