From patchwork Tue Oct 17 07:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sandor Yu X-Patchwork-Id: 15470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3948609vqb; Tue, 17 Oct 2023 00:06:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaNX0EsHODxsqIWu+7cyK5qzg7UtrNyI8RfhkEgMt3hQhKp/KJp5Xd2edIxIK9x4UJU3VL X-Received: by 2002:a17:902:f154:b0:1bf:349f:b85c with SMTP id d20-20020a170902f15400b001bf349fb85cmr1551607plb.1.1697526396546; Tue, 17 Oct 2023 00:06:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697526396; cv=pass; d=google.com; s=arc-20160816; b=EX8OX2RPbeYrAEkceEtd1VKLV46FcUn/LXBX3NjMXf/pD/WybenzPFV5HHYPZbGKlw rbgQzoOXEJtGxMGtuhkBF1FETGAYcH9CcRtwX1y7zt7yRbBMjoFMxYptsd1WWbVvM7WT XdQB0o6pxG8RLYj9sovToQOrfOGTaec1pzPwtSSgYKhQWiZFe2Gs/inU5saG7kWuoQHc rm7lBkBIVmiJhx1UOumU8jB1zTs6sbvmnosIYxWc0+akHo+SQTafYkBcRnAJB0ESM3Ku 8jlMSRUfcItU8CmW/vbT0nD7ULXEi+d6fvwIJatlCKsq8UasnKZHY1RWRChbyvd/ciMj Zl9Q== 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=TFhScT8MG2d333LGFzM0gN2S1Fg7wGW3qoGFpsD1aeY=; fh=8NLGe14sCJly95EXmVPGTZNu7Y8L8QDjBnK0D9mygcM=; b=G9HkbbT6iqwKXqQw0TbneyY353oQG7iUs/ZQ528QBbQWewt52kfh7IApVr5HF4OofL kSlAG5EJezRskaydeSYM23ybyEYEiAxRf22GjkbhiT/Dgwfi0AlvwWiSmLrxdjiXahJo baIu5sIRsP+vwxhLyXRHy1fN09SmLElf15yjSvgQ2g5ZbujchRjeyu99VHr7Jx4l4MZO RlMfPhRozpwkBKpdWMeGMY6z1MHaTZnQJTyHmfW/JQ4XqnKYETW+WqHnWGPGt8QkDlwA 00aRj5FCDAOc/N+dmf7iDpyN2pWNkjuvVGFNuSZw5F7T2FiFs4HXiR1QSV/Om4omuaY6 4v0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZSiEG4IL; 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::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s11-20020a170902c64b00b001ca1bd1e09bsi1129379pls.376.2023.10.17.00.06.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:06:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZSiEG4IL; 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::3:2 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4C8CB80BA951; Tue, 17 Oct 2023 00:06:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234490AbjJQHF7 (ORCPT + 19 others); Tue, 17 Oct 2023 03:05:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJQHF4 (ORCPT ); Tue, 17 Oct 2023 03:05:56 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2058.outbound.protection.outlook.com [40.107.105.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 604DD8E; Tue, 17 Oct 2023 00:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RwhBoIkEPd3f2KWHvLaXk9WkMI/2MWK/sENMFYHoJaFwbgiwht4pyol3qxfCHWzrGWZoXgFk8kwKSb4tgf4LuODRwdDdtevPGH5MVUqgC00q/ZdWX10J9iu6iGMePEMp9OTw6T0FvtAPI4EV/enyvRNO04xANKy5wkml1uKJ/8vzRlxLEHV4RE5p/QoWStK6Ebb6RxNx9+xS1QV0ClhwL+3HcwLu1DijBX+VhrxSMUsW/nlbo7Ex7EdLq9Ww/Hu9nzM/5rN5N84kXtFK06Lc08LGpIO/0BuSQapxqBjuOtmRfEZgbJOl77T/QSAXCSClFLmQJjTmoOIHL5ExEcfDTg== 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=TFhScT8MG2d333LGFzM0gN2S1Fg7wGW3qoGFpsD1aeY=; b=FEDcbH6FVPmI4O6DGgwoDK9iELSMarA5acq5OTpx3IL8GerwCdCLvmQpcFgC9J6tWSn1rwuTv3aRvvjdeAD0h0vBGZ4HzOBUnXt8cLzStAKv8SokBP89og2xIi74ZgRPUythR99TIxkoh+WsWuA6ksdJtjmKglEJwg7a2csebeygPAPMJoOMixEY5yzq4HVQjdfWcB4MWWoKPYw073yaChM7FBjBxCj+cbEExywnXmWIkdV9ruylFnfBua1Po3oxuWKnOIt1zcjyH0WRUmXgI/Le+ljcyJlHmpmQx1pKICHqSNUvu0OSa6JL6M4uCVDQDLmuB4+nhJg+gpe2iTUD0Q== 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=TFhScT8MG2d333LGFzM0gN2S1Fg7wGW3qoGFpsD1aeY=; b=ZSiEG4ILtSuvA36peBmEhTX2L8eZAqXXOyYuzZFHWDb7M+w+gTmLTK3nhcWKtGdBhgw1C2oz3lUlgRdph9r1Hvwxe1A1dIIG8RgXsOBEmFZo1Uk3qb1qNv+yWI6KEmA8qQTgIJvVAbHGnyBC3tMiRQy/TDKY6l5MWNoRqkYfJGI= 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 PAXPR04MB8622.eurprd04.prod.outlook.com (2603:10a6:102:219::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Tue, 17 Oct 2023 07:05:49 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::3b23:7c3d:fd28:c3f2]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::3b23:7c3d:fd28:c3f2%7]) with mapi id 15.20.6863.043; Tue, 17 Oct 2023 07:05:49 +0000 From: Sandor Yu To: dmitry.baryshkov@linaro.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, vkoul@kernel.org, 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 Cc: kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org Subject: [PATCH v11 0/7] Initial support Cadence MHDP8501(HDMI/DP) for i.MX8MQ Date: Tue, 17 Oct 2023 15:03:56 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::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_|PAXPR04MB8622:EE_ X-MS-Office365-Filtering-Correlation-Id: 51f37f42-a5c3-4b55-f02f-08dbcedf7e57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ObPqWNSlAoIgoqBk0Nq6lSr2VGqDZVzt5bFY6/vlMEHSw+uvUe8LoZwLj2wCclHS9vt8iorC6HM9xBDp3j15hJF74yF0ExJPqgYNGzQyzn+Js0Ef20/H8Zs5PK5A7RMXTEx3IX1htZbBQM8s0xIVPnnBneYNoYcgymLy7WTFn9EhdPwdL1DgF6XipGGBMDGKNbwVyDGHvCCEXkddnPfpzPhWQCbDdr4aHX26f8OOIn4QDJ71+nemgajL90/57sFTNDxlnsBvyWia+BIsHwQAd3XVdCSJfqubO1HF3PSsi2rg4LyBlDJBfVL17xgajxPg5aWoE6fFctcAFRQY1Ho24yCwS7P6yPe6eUpm0uYq6vQ9sv4Ng9+Ktd4L6xXJn17DKd5UnFMNY9X+6J6TbGz86OEp8hsvRH4yckxEfzKQw3w1EPSlFOVeZlyLxjjFOZVCDXjb51B/O3TRrcnwKRvMilN/cYsFJzfn95HGgivy6yVGQQH+q3Jer7a0/jih0PPu3I+R9U20f9o9eB/xK1bTKo3gbk6GYJuwgd9R+6Y64FOOXFPFzxgdGZQ0jG4IKSDjQPBDf+MGxgOHk68s9a/6mNw9VYbaJzgumpIKMXIKUao25m5l8RBPWWrdU/z9E17Y 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:(13230031)(366004)(136003)(346002)(39860400002)(396003)(376002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(478600001)(2616005)(6486002)(52116002)(6666004)(6506007)(41300700001)(6512007)(316002)(5660300002)(26005)(66946007)(66476007)(66556008)(38350700005)(921005)(36756003)(38100700002)(86362001)(83380400001)(966005)(4326008)(8676002)(8936002)(2906002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0F3iOYJGR6Ik6F8SNyS8zvWvPQy9?= =?utf-8?q?FzNNW3MtlsD0bVvombYD7AfCh4vQx+QHZJM4neUaYWeIuJHFyWfRius6jqusAZINj?= =?utf-8?q?JEjXeK5997HT4qE7ZxhgRUjdgTejFGBM4d7Jdh3jq5mf8zPUIAr2Xh6vb+ivComYv?= =?utf-8?q?yCNBfGfdlBFxoqWDCZy1DDUsetG5r0FjwKjP79bJVHhMYLrF3HfvxDk8+HNiA3KJe?= =?utf-8?q?d7vHDNZ5eK2UkYuKOE4Tle7EBKYHOtOoSwp2dSnoChxaApmO724sInAM9PBWkjgwA?= =?utf-8?q?JuQgePCCQHP0gA/8X/7JcHhup38OUtfe1K3R2Z5cRzusfm4LTrT7IYWbdjpZAOkyG?= =?utf-8?q?bX84LvrW0YaXIuAfBsYDK9BU/IWvG/Xz+9HiyiujMIq+6dQYkISpHc0KUYf7+lMye?= =?utf-8?q?5FwH1d1PjJb+uW7bLlg0KDqXiLh5CfS1zUC2im+WkZ4NDjQ860R53LXeZrvXw1zTj?= =?utf-8?q?77oA8/6BJGUkPUNNuHvAt2qa1ZdAxpMVLVOjmmkKTOBVjZRanabq4ZKTIVEmZf1gw?= =?utf-8?q?SpS66Wu2oG+rPDRK3CtK4VbpJxavbbcMnGXhD33Wlrgvh6OgjlRFLnbZgl39ZWELM?= =?utf-8?q?XFRGQwkWpc3r+/mpHF+tRUwjkTKHsDYoQVaDRJ1XahEGpry3mZyXA5V8JmGa1pVVU?= =?utf-8?q?BOHLJmt1v31dtrETC8KFYhQpOc+cvNg6pgzIaQs80FYPwYSE/iM/T7ekEZGV+KuDt?= =?utf-8?q?+QXJ31a4usV1CboPi9U+RtT4RNzDtwmizxSBOQGs206+LwiURVA32wa1iqahou4bK?= =?utf-8?q?xmhwKFNJCODdtJsp+rlYQHmwiKill8wNvnh0W1/qaAZ+Xv+DT4QoRRmKXUdTddeii?= =?utf-8?q?8Q4rDvytbULV/Y9/pj1R1x3hCzgZEC77gEaxuoCaft07KghlmNWMbF/fnyS1mBanY?= =?utf-8?q?/xa08m2oqw3dEWPapK67D0U7ggM/IPwp0FC07s8Fwtkw2+HhBNxZVHiYJ+ymbjbEF?= =?utf-8?q?2TBDt+ZSc+xyyQzaODuDQ1AXe44MrGQ4si2a0pqmftVJMRFKqZ/7kxNiWXSly5xZ+?= =?utf-8?q?Zsfry+6topyZfVnRE5LR0dQmExdZOubK2vv+2ZjHD9Jqb37XpCS5zSqDSvadvuvRs?= =?utf-8?q?8vvusdu4J9sK8qqz8rIGSEY9bG3wUSnF9lK6HPH8WxUrGdZsKTdilfTwazFKJKr8a?= =?utf-8?q?h7wtrX8yV6YMCfAhf16Vi5ybLE3XZffRyuGnKSd+nFP6L8R41nyfF0PFj1Q3C35Tc?= =?utf-8?q?O2wYhcGzMaEm/DMKuWpKDkMzr3MzbDCMHtjr2xPcTXf4JdLFgFuUbTshG5/FQNwLt?= =?utf-8?q?MGaRzj6lsN91+6ZPdegt5gq/6N5l0UG9gRmqGwFlkMb2bmgroxdkW7nnpS08t5IX1?= =?utf-8?q?a+4wa4DnGLpq80uYZopSxdCrxX3fBtOFVH9j3EmU7XHwyzvEFNka0s6gPD6c25Gis?= =?utf-8?q?erd3YuPs20DbnOs7kvWaGjIogYnfPQWqre2vlUa27Qz/ZH9FR/IDfsIJtORLPZ+sJ?= =?utf-8?q?6eNQTnm3q3s8+hsCdDh9J7vV1vuXVPpJUcIB/xbeoAsHlIGZ/qrq7PZC52aapJNgf?= =?utf-8?q?S0foENyxJtpS?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51f37f42-a5c3-4b55-f02f-08dbcedf7e57 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 07:05:49.7808 (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: aQSWnmo2ts9pmSGtMUQY5BXr0fahWHPUFFmpPfPnDDaMixk1Nbb6Hx9iqIsNW7wY7AuT1Smn5TUF53FOtBb9MA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8622 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:06:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779985438907518273 X-GMAIL-MSGID: 1779985438907518273 The patch set initial support Cadence MHDP8501(HDMI/DP) DRM bridge drivers and Cadence HDP-TX PHY(HDMI/DP) drivers for Freescale i.MX8MQ. The patch set compose of DRM bridge drivers and PHY drivers. Both of them need patche #1 and #2 to pass build. DRM bridges driver patches: #1: drm: bridge: Cadence: Creat mhdp helper driver #2: phy: Add HDMI configuration options #3: dt-bindings: display: bridge: Add Cadence MHDP8501 #4: drm: bridge: Cadence: Add MHDP8501 DP/HDMI driver PHY driver patches: #1: drm: bridge: Cadence: Creat mhdp helper driver #2: phy: Add HDMI configuration options #5: dt-bindings: phy: Add Freescale iMX8MQ DP and HDMI PHY #6: phy: freescale: Add DisplayPort PHY driver for i.MX8MQ #7: phy: freescale: Add HDMI PHY driver for i.MX8MQ v10->v11: - rewrite cdns_mhdp_set_firmware_active() in mhdp8546 core driver, use cdns_mhdp_mailbox_send() to replace cdns_mhdp_mailbox_write() same as the other mailbox access functions. - use static for cdns_mhdp_mailbox_write() and cdns_mhdp_mailbox_read() and remove them from EXPORT_SYMBOL_GPL(). - remove MODULE_ALIAS() from mhdp8501 driver. v9->v10: - Create mhdp helper driver to replace macro functions, move all mhdp mailbox access functions and common functions into the helper driver. Patch #1:drm: bridge: Cadence: Creat mhdp helper driver it is totaly different with v9. v8->v9: - Remove compatible string "cdns,mhdp8501" that had removed from dt-bindings file in v8. - Add Dmitry's R-b tag to patch #2 - Add Krzysztof's R-b tag to patch #3 v7->v8: MHDP8501 HDMI/DP: - Correct DT node name to "display-bridge". - Remove "cdns,mhdp8501" from mhdp8501 dt-binding doc. HDMI/DP PHY: - Introduced functions `wait_for_ack` and `wait_for_ack_clear` to handle waiting with acknowledgment bits set and cleared respectively. - Use FIELD_PRE() to set bitfields for both HDMI and DP PHY. v6->v7: MHDP8501 HDMI/DP: - Combine HDMI and DP driver into one mhdp8501 driver. Use the connector type to load the corresponding functions. - Remove connector init functions. - Add in phy_hdmi.h to reuse ‘enum hdmi_colorspace’. HDMI/DP PHY: - Lowercase hex values - Fix parameters indent issue on some functions - Replace ‘udelay’ with ‘usleep_range’ v5->v6: HDMI/DP bridge driver - 8501 is the part number of Cadence MHDP on i.MX8MQ. Use MHDP8501 to name hdmi/dp drivers and files. - Add compatible "fsl,imx8mq-mhdp8501-dp" for i.MX8MQ DP driver - Add compatible "fsl,imx8mq-mhdp8501-hdmi" for i.MX8MQ HDMI driver - Combine HDMI and DP dt-bindings into one file cdns,mhdp8501.yaml - Fix HDMI scrambling is not enable issue when driver working in 4Kp60 mode. - Add HDMI/DP PHY API mailbox protect. HDMI/DP PHY driver: - Rename DP and HDMI PHY files and move to folder phy/freescale/ - Remove properties num_lanes and link_rate from DP PHY driver. - Combine HDMI and DP dt-bindings into one file fsl,imx8mq-dp-hdmi-phy.yaml - Update compatible string to "fsl,imx8mq-dp-phy". - Update compatible string to "fsl,imx8mq-hdmi-phy". v4->v5: - Drop "clk" suffix in clock name. - Add output port property in the example of hdmi/dp. v3->v4: dt-bindings: - Correct dt-bindings coding style and address review comments. - Add apb_clk description. - Add output port for HDMI/DP connector PHY: - Alphabetically sorted in Kconfig and Makefile for DP and HDMI PHY - Remove unused registers define from HDMI and DP PHY drivers. - More description in phy_hdmi.h. - Add apb_clk to HDMI and DP phy driver. HDMI/DP: - Use get_unaligned_le32() to replace hardcode type conversion in HDMI AVI infoframe data fill function. - Add mailbox mutex lock in HDMI/DP driver for phy functions to reslove race conditions between HDMI/DP and PHY drivers. - Add apb_clk to both HDMI and DP driver. - Rename some function names and add prefix with "cdns_hdmi/cdns_dp". - Remove bpc 12 and 16 optional that not supported. v2->v3: Address comments for dt-bindings files. - Correct dts-bindings file names Rename phy-cadence-hdptx-dp.yaml to cdns,mhdp-imx8mq-dp.yaml Rename phy-cadence-hdptx-hdmi.yaml to cdns,mhdp-imx8mq-hdmi.yaml - Drop redundant words and descriptions. - Correct hdmi/dp node name. 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. [1] https://patchwork.kernel.org/project/linux-rockchip/cover/cover.1590982881.git.Sandor.yu@nxp.com/ Sandor Yu (7): drm: bridge: Cadence: Creat mhdp helper driver phy: Add HDMI configuration options dt-bindings: display: bridge: Add Cadence MHDP8501 drm: bridge: Cadence: Add MHDP8501 DP/HDMI driver dt-bindings: phy: Add Freescale iMX8MQ DP and HDMI PHY phy: freescale: Add DisplayPort PHY driver for i.MX8MQ phy: freescale: Add HDMI PHY driver for i.MX8MQ .../display/bridge/cdns,mhdp8501.yaml | 104 ++ .../bindings/phy/fsl,imx8mq-dp-hdmi-phy.yaml | 53 + drivers/gpu/drm/bridge/cadence/Kconfig | 20 + drivers/gpu/drm/bridge/cadence/Makefile | 3 + .../gpu/drm/bridge/cadence/cdns-mhdp-helper.c | 304 ++++++ .../drm/bridge/cadence/cdns-mhdp8501-core.c | 315 ++++++ .../drm/bridge/cadence/cdns-mhdp8501-core.h | 365 +++++++ .../gpu/drm/bridge/cadence/cdns-mhdp8501-dp.c | 708 +++++++++++++ .../drm/bridge/cadence/cdns-mhdp8501-hdmi.c | 673 ++++++++++++ .../drm/bridge/cadence/cdns-mhdp8546-core.c | 403 ++------ .../drm/bridge/cadence/cdns-mhdp8546-core.h | 44 +- drivers/phy/freescale/Kconfig | 20 + drivers/phy/freescale/Makefile | 2 + drivers/phy/freescale/phy-fsl-imx8mq-dp.c | 720 +++++++++++++ drivers/phy/freescale/phy-fsl-imx8mq-hdmi.c | 961 ++++++++++++++++++ include/drm/bridge/cdns-mhdp-helper.h | 94 ++ include/linux/phy/phy-hdmi.h | 24 + include/linux/phy/phy.h | 7 +- 18 files changed, 4445 insertions(+), 375 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp8501.yaml create mode 100644 Documentation/devicetree/bindings/phy/fsl,imx8mq-dp-hdmi-phy.yaml create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp-helper.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-core.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-core.h create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-dp.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-hdmi.c create mode 100644 drivers/phy/freescale/phy-fsl-imx8mq-dp.c create mode 100644 drivers/phy/freescale/phy-fsl-imx8mq-hdmi.c create mode 100644 include/drm/bridge/cdns-mhdp-helper.h create mode 100644 include/linux/phy/phy-hdmi.h