From patchwork Mon Aug 16 19:25:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 12439105 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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 206D6C4338F for ; Mon, 16 Aug 2021 19:28:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E264A60F41 for ; Mon, 16 Aug 2021 19:28:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E264A60F41 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=D9/pycL4AKNMYkV2Yrdn6Z+Y1rNJwGsOBqU/n/L6mic=; b=ymLzGw48h/AdXA DETA9RC5lOLB0oHqMNP22+MAZ1njVFpygXEVosY40lbcDen1xReQvfgj8y0asD0lzZdw8m3wNa1LG 5V3Dj/NbfhD4J4tMXF29YeaXIRdLr1OEpj/lkURQYN054wX8X/pWN7gQWSR0a0EBKDmmxu4G/YFoL Oq4kT8F5W4eVpfe4mOJGxcmJVgQHaY8LAyOaS4A8lqlQ5EYLOpYzjAoD47yLKRG62rKa1Aj8d2xAh w62fQ0+QgZ+2ChI5w8OR6koVvlSdOiYRYgBtyZ3B7Em44e4652ICiXzWOLlHczQxXF3tjsSasEJPm DJg36XzKKlRx5lW0BwhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFiFI-0008Kf-Ve; Mon, 16 Aug 2021 19:26:06 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFiF3-0008Gj-FU for linux-arm-kernel@lists.infradead.org; Mon, 16 Aug 2021 19:25:52 +0000 Received: by mail-wr1-x42b.google.com with SMTP id h13so25169583wrp.1 for ; Mon, 16 Aug 2021 12:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qEog8lYm1iN8AupiUQMBZD9rF1zvKy9lbpFWZZLaRbk=; b=ifV48pV34am9tIz8/WNRWhxWLC4ODLUiG3D5qcShH3XfeVAnimg4J0l7yHDD33rbOf cNr+jRf7p4MuwmkLnG+2O4mklymiLhWEx6mI+lEKYaBCVqet3iU6siyEyandRwJR2DkP 1VuRB3jLE0FMfZh34+PUcRg4D86mJApcM17dJTTckOHECOlXm745/S79rvptCohTQGGP FPeDqYcNQJ5MgLdNXYUMIRxGANR6Xy9R0BsLJjk/ix03Id1HwVHOSgHPEU1C4jS63Uuz BKpQSbfTAsFIuOU55AerU8+SqvQ4MH3rp750zuyVvgmX0QYNZ+ugzPKlC4AlJaBbol3b JmsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qEog8lYm1iN8AupiUQMBZD9rF1zvKy9lbpFWZZLaRbk=; b=HN8TC0hJJYUzPw7XA5DidXbgZ7eZxC/3I4JDsnc0dWmrzu0OZ8O9YuwGVF8KfBip7I YYKj/0CWbmWNCtxXUwesPsZza+Xta2WUoCM8qQQDrb1/4XwijfX8UKv4o6b+QF2Xgs3d A1EhU/VCgOKujC+ynq7l510+2r8IEm6q/imPBbJAFc8j+4YKueILdiWNHlTNLbgNYR+O tUoL23RQoLljsQjLKmy4iPg1K2tIPay+YPARNxgBPsi2xl+nkBqkvVbCUI5DT7Vsi0XM V7aAmgZiDcE0SDxq2enpTgKygDt8AAfusNZdeXhiEBHujN1QuZhx4jnfxxwOxKIjfib+ 2+XA== X-Gm-Message-State: AOAM530kr0hohHOq9fPpD27HP/ZfSCH9mw0tJ0PN1YKXpEpi26taWbkW awtOX2XUiFuzbw9COar/lBf0Pw== X-Google-Smtp-Source: ABdhPJzZZVgmbj1Ia/yPE/U1YY1+gVB1Ys9ecadHi2c/okmwaGHMpyDH5EhweM1eRbNU7BGvVhCjAA== X-Received: by 2002:a5d:4dcf:: with SMTP id f15mr71705wru.216.1629141946713; Mon, 16 Aug 2021 12:25:46 -0700 (PDT) Received: from blmsp.lan ([2a02:2454:3e6:c900::97e]) by smtp.gmail.com with ESMTPSA id k17sm333954wmj.0.2021.08.16.12.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 12:25:46 -0700 (PDT) From: Markus Schneider-Pargmann To: Chun-Kuang Hu , Philipp Zabel Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Markus Schneider-Pargmann Subject: [RFC PATCH 0/5] drm/mediatek: Add mt8195 DisplayPort driver Date: Mon, 16 Aug 2021 21:25:18 +0200 Message-Id: <20210816192523.1739365-1-msp@baylibre.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210816_122549_605058_485FF2C3 X-CRM114-Status: GOOD ( 17.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi everyone, this series is built around the DisplayPort driver. The dpi/dpintf driver and the added helper functions are required for the DisplayPort. Note that this is an RFC. I would like to have your opinion on the driver and what needs to change. The driver itself has its rough edges that I am currently still working on, especially the training and powerup/down need some work in my opinion. Also the code compiles without an issue but is not fully tested yet. However I already wanted to reach out for some feedback to see what can and should be improved. I am happy about every comment, thanks for taking the time. The series is currently based on v5.14-rc5 but it requires other patches to actually work on mt8195 (clock, etc.). A binding documentation is not included yet. Thanks, Markus Markus Schneider-Pargmann (5): dt-bindings: mediatek,dpi: Add mt8195 dpintf drm/mediatek: dpi: Add dpintf support drm/edid: Add cea_sad helpers for freq/length video/hdmi: Add audio_infoframe packing for DP drm/mediatek: Add mt8195 DisplayPort driver .../display/mediatek/mediatek,dpi.yaml | 48 +- drivers/gpu/drm/drm_edid.c | 57 + drivers/gpu/drm/mediatek/Kconfig | 7 + drivers/gpu/drm/mediatek/Makefile | 2 + drivers/gpu/drm/mediatek/mtk_dp.c | 3025 ++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dp_reg.h | 3095 +++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dpi.c | 282 +- drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 12 + drivers/video/hdmi.c | 87 +- include/drm/drm_edid.h | 18 +- include/linux/hdmi.h | 4 + 11 files changed, 6564 insertions(+), 73 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_dp.c create mode 100644 drivers/gpu/drm/mediatek/mtk_dp_reg.h