Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3538217pxb; Tue, 7 Sep 2021 01:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza2VUKpgRv/YYuWf3ZnNxWyfc7YdT9F6pJ3n18qS+zKFc50NY8jcNIB70IxyI+qKJz8qaN X-Received: by 2002:a17:906:8450:: with SMTP id e16mr17670669ejy.305.1631004129218; Tue, 07 Sep 2021 01:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631004129; cv=none; d=google.com; s=arc-20160816; b=wygqJDAaMpjJsh72UAgRlsTRMIIb6ksmzVv4vyW27zXEguzymeOI7zM7rUNmZe5Lak RdoefTraeD14PFR4gC9jf/jfc3/95oG1PL6DnrTX1IBGr0sCm9pDUvDQg54LQX41JmAN ddS4saT989nBTVFOc2mRy+GMrNQQQm+PT3iQUnVAS9Y+OMbFMZgmWdjVKGSJ8ZUV7AQz coKLaqBfwp7sPp7RszDOd7Mh+bEzfpcErq9VzpohNyJkDWbiMuvAY56dzfdXcKQUMTBT mcqGaujnP5iS8DzKLLaVK5AZie2PNEyxnkt8GsN6oRcnKvRAqy8I6ZFtMltjjV8TCgfP Dbhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=F98RMuT2qFWn1szuv2XyNIrHwLbg9F30PRmPPAi7A0M=; b=o6iw3PI2xEPhqSc1cu5Y/HhCV+pryvDOPtyHNPM+YC5qiRigeYjzgrrQ9A1sipb2/B vGTEKdwXR9nCWXCxq1bG/q89aYvBzlD44F3i77BvuyyZ7W3aynWKN5bTNeWZI76xQ0rM 8Mny2OpvrfxFSX+AA2rKXn2PGUQ5HVQmeDted8QuzvttRP0vZZtka7B8SgnhPLvh9tjd I6sicwSL8S0xSnvxvVuNOqfcYlpCiZyg/cDu9F7YsDUXQWOgt+GpLONndtvhbiSduFUN 92YCbfYKK/fqsKNQthrGrTWhIPzVc50YDY/yVeCo3ygXIAbqxspTm4GhysDNAUd2iOu4 mdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MDFH+AX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 7si7319008ejk.642.2021.09.07.01.41.46; Tue, 07 Sep 2021 01:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MDFH+AX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236858AbhIGIk1 (ORCPT + 99 others); Tue, 7 Sep 2021 04:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241391AbhIGIk0 (ORCPT ); Tue, 7 Sep 2021 04:40:26 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D1AC061757 for ; Tue, 7 Sep 2021 01:39:20 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id d6so12583421wrc.11 for ; Tue, 07 Sep 2021 01:39:20 -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=F98RMuT2qFWn1szuv2XyNIrHwLbg9F30PRmPPAi7A0M=; b=MDFH+AX1/fhl1Q9N+IereO8Pv8T3Mm3NxuqG0nXQ0iJM91QqmIndAAnmE5IN5EETDV emEiMPVTOYFSILl9MQAzJF4Zv5FHPLdOEjm0hg8AIR2PnQC9sepBJ6EzIxxd2S/r7SIP q5tJFNrIEn5ojPe/SmJQYKTTZoUc8dnjnu1ukSMlz78DtSeHOhjnfwHdaDxnEwCe22mG vDZHysPOUYvrwgDrYg6cFSTpLxUzsZhf1r3NFwTahZRauK4C86uoYipp2ZaKib5yQPAJ vLFpP2yYlff4IDGqrAQzxQ5dxgYcNAg8H/CiMCQCJZ/ZPs0sBG2HXOOIW5TVQT3PsTFi DYHQ== 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=F98RMuT2qFWn1szuv2XyNIrHwLbg9F30PRmPPAi7A0M=; b=aykIovrPQMI0iY+VXBpysG/uLbzkg9GYwHr+2kH/abo/8lBv5iUzM91dECWLQBMmUV agL2saUVg3q0h8rHhoiBJqljuaZEVfgsNEmPpOge/7HHINupOVrUUhWOFWA9gLQv7kKk q1WJ6dUbIpnvThYZBY7DHmbvi5TTSVu2FaK37HlLuybugxiRc8kceeL72tjXWUQ7Qi5q 78UytH8UuDy7JT/lqHM01GwNRk2486rLaFEIozkibXlW2Ql6YskMd0nsqOBcUXwnqKX3 8t1SQ833ysS2HQN4A7+uV5CwDXMxElTxBtb3x9DIs1tZZJJaElpgjPl+J5c/uhS0N5x8 8fVg== X-Gm-Message-State: AOAM531K75u4dsR4jWLNc8vNht+Kxhjpvf17pEhTMgSze2iOb66SyIIj Q82AUwDxQJhYhiAORLReznaQbg== X-Received: by 2002:adf:efc2:: with SMTP id i2mr17652012wrp.94.1631003959316; Tue, 07 Sep 2021 01:39:19 -0700 (PDT) Received: from localhost.localdomain (2a02-8440-6141-3317-3074-96af-9642-0002.rev.sfr.net. [2a02:8440:6141:3317:3074:96af:9642:2]) by smtp.gmail.com with ESMTPSA id m186sm1737027wme.48.2021.09.07.01.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 01:39:18 -0700 (PDT) From: Guillaume Ranquet Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Matthias Brugger , Chunfeng Yun , Kishon Vijay Abraham I , Vinod Koul , CK Hu , Jitao shi , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Subject: [PATCH 0/4] MT8195 HDMI Tx support Date: Tue, 7 Sep 2021 10:37:17 +0200 Message-Id: <20210907083723.7725-1-granquet@baylibre.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series aims at implementing basic HDMI TX support for the MT8195 SoC family. This series has been tested on a chromium 5.10 kernel but not yet on an upstream 5.14. It builds, boots and probe on 5.14 but due to some missing dependencies in the drm chain, it couldn't be tested as of today. I'm still working to get this series fully tested on 5.14. This series is based on: - Add Mediatek Soc DRM (vdosys0) support for mt8195 https://lore.kernel.org/linux-mediatek/20210825144833.7757-1-jason-jh.lin@mediatek.com/ - Add MediaTek SoC DRM (vdosys1) support for mt8195 https://lore.kernel.org/linux-mediatek/20210825100531.5653-1-nancy.lin@mediatek.com/ Guillaume Ranquet (4): phy: mediatek: add support for phy-mtk-hdmi-mt8195 drm/mediatek: add mt8195 hdmi TX support dt-bindings: phy: Add binding for Mediatek MT8195 HDMI PHY dt-bindings: display: mediatek: add MT8195 hdmi bindings .../mediatek/mediatek,mt8195-hdmi-ddc.yaml | 46 + .../mediatek/mediatek,mt8195-hdmi.yaml | 99 + .../phy/mediatek,mtk8195-hdmi-phy.yaml | 71 + drivers/gpu/drm/mediatek/Kconfig | 10 + drivers/gpu/drm/mediatek/Makefile | 4 +- drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.c | 2413 +++++++++++++++++ drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.h | 147 + .../gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.c | 541 ++++ .../gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.h | 20 + .../gpu/drm/mediatek/mtk_mt8195_hdmi_regs.h | 276 ++ drivers/phy/mediatek/Makefile | 1 + drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 777 ++++++ drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h | 179 ++ 13 files changed, 4583 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mt8195-hdmi-ddc.yaml create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek,mt8195-hdmi.yaml create mode 100644 Documentation/devicetree/bindings/phy/mediatek,mtk8195-hdmi-phy.yaml create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi.h create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.c create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_ddc.h create mode 100644 drivers/gpu/drm/mediatek/mtk_mt8195_hdmi_regs.h create mode 100644 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c create mode 100644 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.h -- 2.31.1