Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5922052rwd; Sun, 18 Jun 2023 22:46:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7IXOBnqY3dlj5gWEKB3W1bEb8QtWypiDEavtEVO6iGx6YwrdrPN3ptPYef+Y9RQ5jppBAn X-Received: by 2002:a17:903:32c4:b0:1b1:76c2:2966 with SMTP id i4-20020a17090332c400b001b176c22966mr10864309plr.20.1687153559826; Sun, 18 Jun 2023 22:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687153559; cv=none; d=google.com; s=arc-20160816; b=szVX5KYWS3LQvRjWt1Z8gh3SLevt+WTeL2zlDR8iNF6Ic8v4heeHNdqUftRJV8fDeJ 4PdQyOa/8CfHyLcFBox2yrrr3AUElasChE+wqqquqZijsZRYuRuU0JPSsnAlJtudMiSn KlFw6chv9BCgDmRXD9CIH+RLCCVAkJ3Ro7eI1/6GjxWM5Wr4p0+9L9RNbeR5gjxYrtne LU2Ar4xGDUOU3Eb8mhrgMmstsNZltX0B2tafDIRjzaDSu00jT3b3w+WeXXacAOiioEgj o0h0AdTpbtGLh7xS/wcSbd8mmL8NEQrxuXKOWdLr6XRROkgTLWaKRN8K/TNK8EwYqWKy kTAw== 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:subject:cc:to :from:dkim-signature; bh=mYA1EuGe/J05gnoC+NV7CFMwGzxknODHfy9o+vF7QBI=; b=yQeiEu6Tzg6GixI5rX7QmW1b9HKjluYd0ekYv9R4K/sAYYtXMpqAxFnpRzEDjqFi84 OGQXRu2XKOcH+OSwvjrUIf3IXuzzHmyStoN4Q2OsymYeZQ15t8xeN8odDY1NwTWlKgLN 9NsOAGtwKJqRHM6pRN5akA258NeGAs/AQBWeEmATZNhnm12IqPOpWri5k8nLVJh0S+SR d/TDcdYqs6GDyImzo9pGRsLWgSFZqjOV5y9MHAJLBNM9W0igjK4dbxoZRzVy58VfBt18 V5TkPUIEOQMO4SF3LUf5DTQLsiQ0K9C3FNdREoqCjDwlkSd0LsBHfYgzsKI01qURSYyP tirA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jZ51H7Y9; 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 i8-20020a170902c94800b001b521cf9578si8153035pla.443.2023.06.18.22.45.46; Sun, 18 Jun 2023 22:45:59 -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=@tq-group.com header.s=key1 header.b=jZ51H7Y9; 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 S229659AbjFSFfo (ORCPT + 99 others); Mon, 19 Jun 2023 01:35:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjFSFfm (ORCPT ); Mon, 19 Jun 2023 01:35:42 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0EBE188; Sun, 18 Jun 2023 22:35:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1687152940; x=1718688940; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mYA1EuGe/J05gnoC+NV7CFMwGzxknODHfy9o+vF7QBI=; b=jZ51H7Y9QcPHOqI1Lhe2xKl1q5fYpJWQM02vZ/XjUtPe0lok1tniYYjS rADPGjk/Ui/9QnK8cESV0Sdmi9DFS77BgkVyZ1I0ohhP9v9JoPpwzGeOx zmzI0vE1wzxyFY+C724lMF0Wr77/g0J73RMEuVGdEmTR9CmVmGUT85uJr X/u/iQ+KzSpS1LAL5sCXGK2KeJ2Q16diYVNppm7AezE9Rxv8sx6XwTRxZ Gd14SE0kEC6437M7EanRM99ifk1HYTVZoeBF8cby7d9L6RWYCGhFoLwiN cSQnFC5k+R+6Zcq5gkKt84XQjm1JAKLMp4oJTsV7TI/JbOKCOhXzcDeCc Q==; X-IronPort-AV: E=Sophos;i="6.00,254,1681164000"; d="scan'208";a="31479630" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 19 Jun 2023 07:35:37 +0200 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C9D5B28007C; Mon, 19 Jun 2023 07:35:36 +0200 (CEST) From: Alexander Stein To: "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" , "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" , Sandor Yu Cc: Oliver Brown , dl-linux-imx , "kernel@pengutronix.de" Subject: RE: [EXT] Re: [PATCH v6 5/8] drm: bridge: Cadence: Add MHDP8501 HDMI driver Date: Mon, 19 Jun 2023 07:35:36 +0200 Message-ID: <5686988.DvuYhMxLoT@steina-w> Organization: TQ-Systems GmbH In-Reply-To: References: <11795277.nUPlyArG6x@steina-w> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE 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 Hi Sandor, Am Montag, 19. Juni 2023, 05:11:02 CEST schrieb Sandor Yu: > Hi Alexander, >=20 > Thanks for your comments, >=20 >=20 > > -----Original Message----- > > From: Alexander Stein > > Sent: 2023=E5=B9=B46=E6=9C=8816=E6=97=A5 17:30 > > To: 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; > > 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: Oliver Brown ; Sandor Yu ; > > dl-linux-imx ; kernel@pengutronix.de; Sandor Yu > > > > Subject: [EXT] Re: [PATCH v6 5/8] drm: bridge: Cadence: Add MHDP8501 > > HDMI driver > > > > > > > > Caution: This is an external email. Please take care when clicking links > > or opening attachments. When in doubt, report the message using the > > 'Report this email' button > > > > > > > > > > Hi Sandor, > > > > > > > > thanks for sending a new version. > > > > > > > > Am Donnerstag, 15. Juni 2023, 03:38:15 CEST schrieb Sandor Yu: > >=20 > > > Add a new DRM HDMI bridge driver for Cadence MHDP8501 that used in > > > Freescale i.MX8MQ SoC. > > > MHDP8501 could support HDMI or DisplayPort standards according > > > embedded Firmware running in the uCPU. > > > > > > > > > > > > For iMX8MQ SoC, the HDMI FW was loaded and activated by SOC ROM > >=20 > > code. > >=20 > > > Bootload binary included HDMI FW was required for the driver. > > > > > > > > > > > > Signed-off-by: Sandor Yu > > > --- > > >=20 > > > drivers/gpu/drm/bridge/cadence/Kconfig | 12 + > > > drivers/gpu/drm/bridge/cadence/Makefile | 1 + > > > .../drm/bridge/cadence/cdns-mhdp8501-hdmi.c | 1024 > >=20 > > +++++++++++++++++ > >=20 > > > 3 files changed, 1037 insertions(+) > > > create mode 100644 > > >=20 > > > drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-hdmi.c > > > > > > > > > > > > diff --git a/drivers/gpu/drm/bridge/cadence/Kconfig > > > b/drivers/gpu/drm/bridge/cadence/Kconfig index > > > 5b7ec4e49aa1..bee05e834055 > > > 100644 > > > --- a/drivers/gpu/drm/bridge/cadence/Kconfig > > > +++ b/drivers/gpu/drm/bridge/cadence/Kconfig > > > @@ -59,3 +59,15 @@ config DRM_CDNS_MHDP8501_DP > > >=20 > > > Support Cadence MHDP8501 DisplayPort driver. > > > Cadence MHDP8501 Controller support one or more protocols, > > > DisplayPort firmware is required for this driver. > > >=20 > > > + > > > +config DRM_CDNS_MHDP8501_HDMI > > > + tristate "Cadence MHDP8501 HDMI DRM driver" > > > + select DRM_KMS_HELPER > > > + select DRM_PANEL_BRIDGE > > > + select DRM_DISPLAY_HELPER > > > + select DRM_CDNS_AUDIO > > > + depends on OF > > > + help > > > + Support Cadence MHDP8501 HDMI driver. > > > + Cadence MHDP8501 Controller support one or more protocols, > > > + HDMI firmware is required for this driver. > > > diff --git a/drivers/gpu/drm/bridge/cadence/Makefile > > > b/drivers/gpu/drm/bridge/cadence/Makefile index > > > 5842e4540c62..8a129c14ac14 > > > 100644 > > > --- a/drivers/gpu/drm/bridge/cadence/Makefile > > > +++ b/drivers/gpu/drm/bridge/cadence/Makefile > > > @@ -7,3 +7,4 @@ cdns-mhdp8546-y :=3D cdns-mhdp8546-core.o > > > cdns-mhdp8546-hdcp.o > > > cdns-mhdp8546-$(CONFIG_DRM_CDNS_MHDP8546_J721E) +=3D > > > cdns-mhdp8546-j721e.o > > > > > > > > > > > > obj-$(CONFIG_DRM_CDNS_MHDP8501_DP) +=3D cdns-mhdp8501-dp.o > > >=20 > > > +obj-$(CONFIG_DRM_CDNS_MHDP8501_HDMI) +=3D cdns-mhdp8501-hdmi.o > > > diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-hdmi.c > > > b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-hdmi.c new file mode > > > 100644 index 000000000000..43673f1b50f6 > > > --- /dev/null > > > +++ b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8501-hdmi.c > >=20 > > [...] > >=20 > > > +static int cdns_hdmi_bridge_attach(struct drm_bridge *bridge, > > > + enum drm_bridge_attach_flags flags) > >=20 > > { > >=20 > > > + struct cdns_mhdp_device *mhdp =3D bridge->driver_private; > > > + struct drm_mode_config *config =3D &bridge->dev->mode_config; > > > + struct drm_encoder *encoder =3D bridge->encoder; > > > + struct drm_connector *connector =3D &mhdp->connector; > > > + > > > + if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)) { > > > + connector->interlace_allowed =3D 0; > > > + connector->polled =3D DRM_CONNECTOR_POLL_HPD; > > > + > > > + drm_connector_helper_add(connector, > >=20 > > &cdns_hdmi_connector_helper_funcs); > >=20 > > > + > > > + drm_connector_init(bridge->dev, connector, > >=20 > > &cdns_hdmi_connector_funcs, > >=20 > > > + > >=20 > > DRM_MODE_CONNECTOR_HDMIA); > >=20 > > > + > > > + drm_object_attach_property(&connector->base, > > > + config- > > > > > >hdr_output_metadata_property, 0); > > > > > > + > > > + if > > > + (!drm_mode_create_hdmi_colorspace_property(connector)) > > > > > > > > This is missing a 2nd parameter. >=20 > I have not found function drm_mode_create_hdmi_colorspace_property need 2= nd > parameter in L6.1. Ah, I see. The new parameter is/will be part of v6.3. > And those connector init functions will be remove in > the next version according Sam's comments, because they are not really > needed.=20 Okay, nice. Please put me on cc as well. Thanks. Best regards, Alexander > B.R > Sandor >=20 > > > > > > > + > >=20 > > drm_object_attach_property(&connector->base, > >=20 > > > + connector- > > > > > >colorspace_property, 0); > > > > > > + > > > + drm_connector_attach_encoder(connector, encoder); > > > + } > > > + > > > + return 0; > > > +} > >=20 > > [...] > > > > > > > > Best regards, > > Alexander > > -- > > TQ-Systems GmbH | M=C3=BChlstra=C3=9Fe 2, Gut Delling | 82229 Seefeld, = Germany > > Amtsgericht M=C3=BCnchen, HRB 105018 > > Gesch=C3=A4ftsf=C3=BChrer: Detlef Schneider, R=C3=BCdiger Stahl, Stefan= Schneider > > http://www.tq/ > > -group.com%2F&data=3D05%7C01%7CSandor.yu%40nxp.com%7C77fbaace052c > > 4ccf338c08db6e4c40cb%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C > > 0%7C638225046010817530%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w > > LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C > > %7C%7C&sdata=3DJJjeV2InXzHyefL4uiK9%2BRtSVjoBYd%2FwIqSbIQhDH90%3D > > &reserved=3D0 > > > > >=20 >=20 =2D-=20 TQ-Systems GmbH | M=C3=BChlstra=C3=9Fe 2, Gut Delling | 82229 Seefeld, Germ= any Amtsgericht M=C3=BCnchen, HRB 105018 Gesch=C3=A4ftsf=C3=BChrer: Detlef Schneider, R=C3=BCdiger Stahl, Stefan Sch= neider http://www.tq-group.com/