Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3910437rwb; Mon, 21 Nov 2022 00:53:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf4A6azkkMu8GjP6TUiXyHNCAHUM4z7ZxtGs1m1ReyAe2J/cNkuJDl0HFoebDOcnfK8um8t/ X-Received: by 2002:a17:906:f207:b0:7ab:777:a7d7 with SMTP id gt7-20020a170906f20700b007ab0777a7d7mr14844177ejb.757.1669020820520; Mon, 21 Nov 2022 00:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669020820; cv=none; d=google.com; s=arc-20160816; b=kl5QSACpMphaB/vJnKrYgfVbSI2TaexePk2hcUTvbatPNOijpzrdMM/iVv3oehq/9s 5vU7SY0iAz0O2iL5B5PeC1rWpjQnniD1voSd0msPrgyz8D21KcV8TKaecb1KizsnZiUO wxesZdspDJ768/BrcLFA4iPborqwo37riZwRoyUEQQATRcBfW11gtPfEHSLqn0ssyEoe IC6oA4IP95gSsKqHazMVVs+QP/spVpHLp3Hc29NOypPKrdnN5NeB9DgycPADsZDxT5bF 47Gab51f8+ZTzbPgxMhZKc/SYGnOBrkV0Q4hMX7TLa0NiSUhoO4PBqqRcll/Z0nHYJ7b lm2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:cc:to:from :subject:dkim-signature:dkim-signature; bh=Cojv73ncYBlTMqJr0ZxMpVAT6qQR4qxJuKojHO4kyGg=; b=tEZwn5lPzSJHTGR55Vs9u1YCCm1Uh2Hd7aPAsq7MzD21XmzQNq1rFy1DvncBVqPo3k 6P2juOF3qXXbhIDV22OUN8ehjL1oMxTr7JuooqW5Zli5GMCHImCvLOxZcCWsHIbGy6wA Q45J4mbnFhG3Oj6RoGwlLnhzR+V2+YmsBFe/st6vFLv+bCUTeS8cqoS6zExLI7vuBUq0 wtBbzapAl3E7tsD0X+MQQAEoqsjjLiMV06xhDx+iDkwgwIGXga2sMgaONSNIYZ5EqZKS GNH6rUzaTp1evXyUi1o/8oM0Hazp/vIKC/pp0W8vakryeNNsaJ566gH3v7rF6m8mZPeF VvQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=Exlgj+r+; dkim=pass header.i=@tq-group.com header.s=key1 header.b="JAK/K/vs"; 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=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a17090646c900b0078e27f2fbe3si7534190ejs.115.2022.11.21.00.53.18; Mon, 21 Nov 2022 00:53:40 -0800 (PST) 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=@tq-group.com header.s=key1 header.b=Exlgj+r+; dkim=pass header.i=@tq-group.com header.s=key1 header.b="JAK/K/vs"; 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=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbiKUIga (ORCPT + 91 others); Mon, 21 Nov 2022 03:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbiKUIgZ (ORCPT ); Mon, 21 Nov 2022 03:36:25 -0500 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4324A205E0; Mon, 21 Nov 2022 00:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1669019781; x=1700555781; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Cojv73ncYBlTMqJr0ZxMpVAT6qQR4qxJuKojHO4kyGg=; b=Exlgj+r+BXDuwctnlu9S/VF+ruM2BM7AvUPEvXnBD7usrSYU8GY4Saqc agERQz7w8chwPQIM10L8Qa2lvl3mwFlzaKWIdGVv5ba1kAPSHrfaIdbDK l2pC4fKsB0U5CDbFDqcxDb5lG610celxYs7ImZlQJJdjzGMdzuX+/gKPA xFZt+0yEpeCloY2rz581w+htA4pTL1NSoB3tI4MmVr/CLtHf8DZofXiWK 9Z0NxQaqddiXsoLcQw1l9cL/hbd5N1Y9WI9mdcp4cYUgSemXNM4yFzeAA fXhdAtc7B24OycV1yV8n5BxohvdCgNS10OWIuIIpKkgKjMyvDhBAc6Hfl w==; X-IronPort-AV: E=Sophos;i="5.96,180,1665439200"; d="scan'208";a="27473758" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 21 Nov 2022 09:36:19 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 21 Nov 2022 09:36:19 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 21 Nov 2022 09:36:19 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1669019779; x=1700555779; h=from:to:cc:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding:subject; bh=Cojv73ncYBlTMqJr0ZxMpVAT6qQR4qxJuKojHO4kyGg=; b=JAK/K/vsqDV3DaE+TvrLpDD4sYQ1RNgeYU/pWK1K0/MKvMtjHobrVnWv YhCuwwD4Rer2Rm9nLlRsN/dMVUFo3t+pbNJ8ic4JSfSnIcT4OQo0wWo7Y d9nPsp5fJa8jzrB/w7Y76IUeZ/3uyzQDdQbhaJ11QgWGSyEzwjASaAO3C 15Jq0/oJsD/C8YgTk72V9chmfe/He8kZA2QY+netMkQQw6ENDXapWXZ2g tRs1r87jbQb51Is3+bfRC+Mok3pQzOmtRLaeDepQlGwFnAYHI5xn2P4v8 x//277kZ6aotT6G9tlt9PcuYMuTgqPOICaATUV/jqgEDR/IL7vLDj1IVf Q==; X-IronPort-AV: E=Sophos;i="5.96,180,1665439200"; d="scan'208";a="27473757" Subject: Re: [PATCH v4 00/10] Initial support for Cadence MHDP(HDMI/DP) for i.MX8MQ Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 21 Nov 2022 09:36:18 +0100 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 93D74280056; Mon, 21 Nov 2022 09:36:17 +0100 (CET) From: Alexander Stein To: Sandor Yu Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, robert.foss@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, kishon@ti.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, kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com Date: Mon, 21 Nov 2022 09:36:16 +0100 Message-ID: <4760535.GXAFRqVoOG@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,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 Hello Sandor, thanks for the updated series. Am Montag, 21. November 2022, 08:23:50 CET schrieb Sandor Yu: > The patch set initial support for Cadence MHDP(HDMI/DP) DRM bridge > drivers and Cadence HDP-TX PHY(HDMI/DP) drivers for iMX8MQ. > > 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 > > 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. With the apb_clk enabled now, I can use both HDMI and PHY driver as modules now. Thanks! Best regards, Alexander > 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 (10): > drm: bridge: cadence: convert mailbox functions to macro functions > dt-bindings: display: bridge: Add MHDP DP for i.MX8MQ > drm: bridge: cadence: Add MHDP DP driver for i.MX8MQ > phy: Add HDMI configuration options > dt-bindings: display: bridge: Add MHDP HDMI for i.MX8MQ > drm: bridge: cadence: Add MHDP HDMI driver for i.MX8MQ > dt-bindings: phy: Add Cadence HDP-TX DP PHY > phy: cadence: Add driver for HDP-TX DisplyPort PHY > dt-bindings: phy: Add Cadence HDP-TX HDMI PHY > phy: cadence: Add driver for HDP-TX HDMI PHY > > .../display/bridge/cdns,mhdp-imx8mq-dp.yaml | 93 ++ > .../display/bridge/cdns,mhdp-imx8mq-hdmi.yaml | 93 ++ > .../bindings/phy/cdns,hdptx-dp-phy.yaml | 68 ++ > .../bindings/phy/cdns,hdptx-hdmi-phy.yaml | 52 + > drivers/gpu/drm/bridge/cadence/Kconfig | 25 + > drivers/gpu/drm/bridge/cadence/Makefile | 3 + > drivers/gpu/drm/bridge/cadence/cdns-dp-core.c | 1071 +++++++++++++++++ > .../gpu/drm/bridge/cadence/cdns-hdmi-core.c | 1018 ++++++++++++++++ > .../gpu/drm/bridge/cadence/cdns-mhdp-common.h | 400 ++++++ > .../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 | 737 ++++++++++++ > drivers/phy/cadence/phy-cadence-hdptx-hdmi.c | 891 ++++++++++++++ > include/drm/bridge/cdns-mhdp-mailbox.h | 240 ++++ > include/linux/phy/phy-hdmi.h | 38 + > include/linux/phy/phy.h | 7 +- > 18 files changed, 4755 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/cdns,hdptx-dp-phy.yaml create mode > 100644 Documentation/devicetree/bindings/phy/cdns,hdptx-hdmi-phy.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