From patchwork Fri Nov 4 06:44:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 1151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp210682wru; Thu, 3 Nov 2022 23:47:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6sTDRc7RcvwT9VUfqfZ21ylWHX/xQ3h3gMz5yJmYe2svFRg8vMcovQBLfn+iBRuk9Hyou+ X-Received: by 2002:a05:6a00:1a47:b0:52e:6a8c:5430 with SMTP id h7-20020a056a001a4700b0052e6a8c5430mr33645369pfv.48.1667544469938; Thu, 03 Nov 2022 23:47:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667544469; cv=pass; d=google.com; s=arc-20160816; b=bJ81QuY46TDzL8B6DFkplpwlgyni1WTcqr3emJEWKto0B7045XFayHrGi+eBlnoZjq AhWIaMPcl/RVXYSeylPuCDYJWLqHX61qjuEZm7C/kvRzuaOv96sonBQHuypsj6oryHRi Nq8Mpz7mRL7Ntgs4OB14cgqSojUdtg1EHDXdcrmFD11iqwYnBf5nmt9bOKhrKV6qFl6+ gMOpqVOr6PdN6RDMbWgzwNtJVDGnK3pwjZTp18Mg5sXvJe4Jz1ENAtUeLihxqdkHmq1t D1lH+5Myo1GwKjZajlOQS20m3eN8zlkpfhor4/n+KBGAwtfGlhfrquSk4vkZAjIkfm1a qecQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=ptaqgHG+OJO25Vb6vtGNb1qibKtVcIGIRFNXJo1lKMI=; b=kXCrmMJE/1XPtZ1eLxzi5JNpEt9Az5Tsniq/nzfBg4tXeRQVJNFNvqj8dXwpewiRUz MDv5P8cid4e6kECDXaHa0LYTws/1wkGdKPik0VIOp4bfRQOJ0hhsc1eDi5Gudj8hCDys eXnyqEnC98hBBZTF7g38L5ZVmBDijNFd9Jjb7LvjxO30WbynJ0RIwSneqfnC4r0dp8JL pBO2noWNYgje8/MEW2tpcbxrAZ60UHX0gTMI0nWJP159RW6qE7p6mLUY3ucCh7+8oxLJ NsRW6YPYgv8zzF7RH+IIq6L2ii+9fYb34WyhXJt7ZnY+wsM5CRuiegl1GmDvpJiplRia Jjhg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=G6eqEMiW; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638b43000000b0046fb2a57348si4119934pge.84.2022.11.03.23.47.37; Thu, 03 Nov 2022 23:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=G6eqEMiW; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbiKDGqi (ORCPT + 99 others); Fri, 4 Nov 2022 02:46:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiKDGqg (ORCPT ); Fri, 4 Nov 2022 02:46:36 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2057.outbound.protection.outlook.com [40.107.21.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59AA615827; Thu, 3 Nov 2022 23:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MnlrYuwcSG/GrIxJ/DT/dz1aBmWRMV3z+fy8k3BqgVDOpKn0OZnbPPnzTi1ziILLgcRm/Yp34hJ7EGhYf5Gz/94nu1kTUsdxMehZvFYZw50bdYc0h2pffaHulViyNBTNeVn5lLr5G0Xbf5F4D9jM3w2nSShyJBBMkPu71lg1txZNW7ycZYzFVIqY78/mfw+5ZJc8+iXBLpmNW7khTGOHYxXrtKZM/hWiU1hnmjgO5sBTYK4pgAdW9XsPszQrcIC/82ibWVAtkkf84ojhEW/k9qtqZeafhayIsmgeq4x1U/MtFV6ywnkBbMtBxWCRzwYH07JjCjNVDdSKCS4GEy3ViQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ptaqgHG+OJO25Vb6vtGNb1qibKtVcIGIRFNXJo1lKMI=; b=bTOrn4pRs140N8w7IpBTrc+mO2awqiLREi1CQikcq7cFWyDPbwNOFkkScjkJfbU6E/7fx+Wu09CvHZb8y7B2OwKcBK/hasRmaI3yeZcBWNgU+i+ikQfurVqvdGhXcccVPDFc1olWEoXMikj5ovR1r7t0LAz2BQk+FUfTPGqQVITe3mFSSFA+zhrOmx+ouRU0qjefCjS0JofXqASqDuANAylP8OUJBg625hrd/+h1BM9AcXP3wsnAjPUSSIZzdaJItIxxvEE+pKxBVUDR+rc9gfQEgHeMA+zRP6kMNQpP2qBXTai59cKx40ZWlt+MxI0WX4jDgNv5ifq57LKVBGJvYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ptaqgHG+OJO25Vb6vtGNb1qibKtVcIGIRFNXJo1lKMI=; b=G6eqEMiWw07mAQehxd7EVei4y3mnwGgovtz83xBEhhzKBUeLmb+M15wXab7HpbOTWlAU8/XjbP4ajawIrlU8TQQPsvo+N1kBQAMN3n8sC/ndZi6UKCD0O00MhFyVOfvuODpikJzHLV4dBb6MlcRYxNQGEduGGjRhl+QxdQfenm8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AM9PR04MB8081.eurprd04.prod.outlook.com (2603:10a6:20b:3e2::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.20; Fri, 4 Nov 2022 06:46:31 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::88a0:57d8:2a57:3f4f]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::88a0:57d8:2a57:3f4f%9]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 06:46:31 +0000 From: Sandor Yu To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, kishon@ti.com, vkoul@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, tzimmermann@suse.de, lyude@redhat.com, Sandor.yu@nxp.com, javierm@redhat.com, ville.syrjala@linux.intel.com, sam@ravnborg.org, jani.nikula@intel.com, maxime@cerno.tech, penguin-kernel@I-love.SAKURA.ne.jp, p.yadav@ti.com, oliver.brown@nxp.com Subject: [v2 0/10] Initial support for Cadence MHDP(HDMI/DP) for i.MX8MQ Date: Fri, 4 Nov 2022 14:44:50 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR06CA0194.apcprd06.prod.outlook.com (2603:1096:4:1::26) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM9PR04MB8081:EE_ X-MS-Office365-Filtering-Correlation-Id: 07ab34d1-64be-44e4-7a2f-08dabe304e89 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N2mHU+JtIi1mpXxWs6A0A3YSdZjm9lZkSpa1gLaAf58i/O0KQ9JLS+jtqOnbfM8g9sSQEppe7zxl9/ObrrYpOs+avTk4o+s7K7za+0ebbKz04tuWNYz8UZy240wGU2ZmuclzObcvKGfM5UiTiyB15K4w00lhWIWXhYCOyBoO72d85XQ/tEiGTP3NUbgyK/bhRcyQnnNsjY50OvHTy/KguiZkb4C9X9e98YLOFbaJo32IrOhsMH8E71/B6VL6gbyK9mbdeOyF27A64eU0067toTVhUeJU7z44q7fYekyX+KtF0MdvRrdom6kEdggCX1XnqtKMlfFlkHlkyu6FMfBgaSMleWPAmhCiaQFac+M7UiFAZca3q6vfyJQxrLFaraYdwE/FnZAKvuOmh77TaZCCI+bsvJojBznW2KCrXSWNBW3YcqGyLfj2SE/IrCD4QF762MKCfo33KBCdyzWPcnxeMjSLjVfjqXqwZDzQbdDyZ45HwpQhDFGW4Ds7fd89R66OZMBJMTR8hoY9i5oPCB31Qi3Y94kqbBZivdWtPed7isnI1B+h0ZR+UvJm1I0x80ooaVCE+6eh6h+GPRfi7WovdBCWHjrbtVNj3brPTgleU4yt+hJynBDDXhfkQUggkeYAax34cnWKFLC6UCw5t8RejfqtCCEeJpDXTxFVDVCYP0fG/XNpo8o2B3AquEBpKlLzLMG1kxGbwSU9IfSBJpS55OBb7QEK0V67i+ADDDdHeubLg4zAR8JpVFmPRPOnubdn1yV0YtfkNJ4daKLmAbUyyHrf5hVsp9Zea0in4/9UHHwk5+K3gk1rubomEnThr+Uj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(366004)(136003)(396003)(451199015)(316002)(8676002)(38350700002)(7416002)(5660300002)(66556008)(66476007)(38100700002)(4326008)(66946007)(36756003)(8936002)(41300700001)(83380400001)(6666004)(921005)(186003)(966005)(2616005)(86362001)(6486002)(26005)(478600001)(6512007)(52116002)(6506007)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XGhd9JY6vlui4IODOfDa2cGEckcZ3zW4BGO6QtNybWuAdz48vk6h9Ro6llPYlYwMa6GPOWC73punDFNBJ8Mcmo8NJvrVG1/c2Pax6qjpHCaM+9bMew+VJHbbqGC8SrIOgJSPsCeoCTw1dhx+G1JSY2rPo3vmJpegftFtj8lR2+R0IqCcvoKL+LtdDm/i/JVkqSA/n5FGTwd8E8bxSDtDpwHgydQE82KEoBo98TMb9JLucVX0GxGhFmneWkPpgJVhOK1ipJKW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YiKisnujO8gYwK+0+pZxWWlZdYW3j04hjx8XzFWuyTZeiIkb3RR3QqGbQXdC4o1NfBigmwWpiu/wfOuG57EdWS+p20VUMll0BA3YhSW/Wz6eXSZ5tyVtsujMCijAj82wQR8MDr5VqxPC7zGXOujduN+gnJUiSvoBGl6EZitepL5FIVwTRFzzPmCCcs07AVGq6zEZi9N5xPAed/fnriHH7JrxmXqKlMXYMVuKheoz/EisLt3NVPbJKEcyUt5bMpV9trB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07ab34d1-64be-44e4-7a2f-08dabe304e89 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 06:46:31.4030 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ExuDrOS/9sL6gbn4gldHEpukbP+b3PkMMdrv9qbB0NQ2CGhB1JsyrMGkK+bq1pFCJDvjU+gR4hrqGolW4gs1pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8081 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748547110129381112?= X-GMAIL-MSGID: =?utf-8?q?1748547110129381112?= The patch set initial support for Cadence MHDP(HDMI/DP) DRM bridge drivers and Cadence HDP-TX PHY(HDMI/DP) drivers for iMX8MQ. v2 is a completely different version compared to v1. Previous v1 can be available here [1]. v1->v2: - Reuse Cadence mailbox access functions from mhdp8546 instead of rockchip DP. - Mailbox access functions be convert to marco functions that will be referenced by HDP-TX PHY(HDMI/DP) driver too. - Plain bridge instead of component driver. - Standalone Cadence HDP-TX PHY(HDMI/DP) driver. - Audio driver are removed from the patch set, it will be add in another patch set later. The patch set compose of DRM bridge drivers and PHY drivers. Both of them need the followed two patches to pass build. drm: bridge: cadence: convert mailbox functions to macro functions phy: Add HDMI configuration options DRM bridges driver patches: dts-bingings: display: bridge: Add MHDP HDMI bindings for i.MX8MQ drm: bridge: cadence: Add MHDP DP driver for i.MX8MQ dts-bindings: display: bridge: Add MHDP DP bindings for i.MX8MQ drm: bridge: cadence: Add MHDP HDMI driver for i.MX8MQ PHY driver patches: dts-bindings: phy: Add Cadence HDP-TX DP PHY bindings phy: cadence: Add driver for HDP-TX DisplyPort PHY dts-bindings: phy: Add Cadence HDP-TX HDMI PHY bindings phy: cadence: Add driver for HDP-TX HDMI PHY [1] https://patchwork.kernel.org/project/linux-rockchip/cover/cover.1590982881.git.Sandor.yu@nxp.com/ Sandor Yu (10): drm: bridge: cadence: convert mailbox functions to macro functions dts-bingings: display: bridge: Add MHDP HDMI bindings for i.MX8MQ drm: bridge: cadence: Add MHDP DP driver for i.MX8MQ phy: Add HDMI configuration options dts-bindings: display: bridge: Add MHDP DP bindings for i.MX8MQ drm: bridge: cadence: Add MHDP HDMI driver for i.MX8MQ dts-bindings: phy: Add Cadence HDP-TX DP PHY bindings phy: cadence: Add driver for HDP-TX DisplyPort PHY dts-bindings: phy: Add Cadence HDP-TX HDMI PHY bindings phy: cadence: Add driver for HDP-TX HDMI PHY .../display/bridge/cdns,mhdp-imx8mq-dp.yaml | 67 ++ .../display/bridge/cdns,mhdp-imx8mq-hdmi.yaml | 67 ++ .../bindings/phy/phy-cadence-hdptx-dp.yaml | 70 ++ .../bindings/phy/phy-cadence-hdptx-hdmi.yaml | 54 + drivers/gpu/drm/bridge/cadence/Kconfig | 25 + drivers/gpu/drm/bridge/cadence/Makefile | 3 + drivers/gpu/drm/bridge/cadence/cdns-dp-core.c | 1070 +++++++++++++++++ .../gpu/drm/bridge/cadence/cdns-hdmi-core.c | 1038 ++++++++++++++++ .../gpu/drm/bridge/cadence/cdns-mhdp-common.h | 402 +++++++ .../drm/bridge/cadence/cdns-mhdp8546-core.c | 197 +-- .../drm/bridge/cadence/cdns-mhdp8546-core.h | 1 - drivers/phy/cadence/Kconfig | 16 + drivers/phy/cadence/Makefile | 2 + drivers/phy/cadence/phy-cadence-hdptx-dp.c | 774 ++++++++++++ drivers/phy/cadence/phy-cadence-hdptx-hdmi.c | 948 +++++++++++++++ include/drm/bridge/cdns-mhdp-mailbox.h | 240 ++++ include/linux/phy/phy-hdmi.h | 33 + include/linux/phy/phy.h | 7 +- 18 files changed, 4817 insertions(+), 197 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-dp.yaml create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp-imx8mq-hdmi.yaml create mode 100644 Documentation/devicetree/bindings/phy/phy-cadence-hdptx-dp.yaml create mode 100644 Documentation/devicetree/bindings/phy/phy-cadence-hdptx-hdmi.yaml create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dp-core.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp-common.h create mode 100644 drivers/phy/cadence/phy-cadence-hdptx-dp.c create mode 100644 drivers/phy/cadence/phy-cadence-hdptx-hdmi.c create mode 100644 include/drm/bridge/cdns-mhdp-mailbox.h create mode 100644 include/linux/phy/phy-hdmi.h