Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp283853pxa; Wed, 12 Aug 2020 01:42:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ0JkxM37FOky/4zEoZSDzJKaHZwFMKGYUjvR5pcGjZWE06ThvS+ILyfTDqP5oJGgjK9nr X-Received: by 2002:a17:906:24d0:: with SMTP id f16mr29156047ejb.325.1597221763485; Wed, 12 Aug 2020 01:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597221763; cv=none; d=google.com; s=arc-20160816; b=KuG3rh8Ovas1iTSc9NIUdVVXv9AcWU/mRnDzeu9L6xAi6TRCc/1Hrhx4NHV8C5ao+u npGWPtxCqglgQ6JPRRbFM64xjGQ3Hk9JoUVMk9KCyG4p6ggshz6XS7lalx3xqNBO//cD u0nm19LMt0I9IFTHzfPvyXLVKEPlwivKovhoolB58K+Rjm9oeqqMfCd1GWIzuyvbjFQ9 7UgvL0cBn8V/U1AGVTF6jFeuwh+FdAd6T3lEZWoEurJLR6lr8ETNu5VLPSyRI94QY54A tR+/wMHaVm7wjLcP9i8OXhmFPW48tcvutx++9ajl3a5Al78eFeHPWXYpZor7sS488kk/ lxGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Yk8nij9i4tzG39uJzoZ/x20SerC+HsrUEv9PzZqk3iw=; b=ZgMturjxowqwSZ6eo3qtm0I0JqYjdemxa2GzWvdT78Vw2u2g9QQlTXv+VR/Vp43uHE GBy/UAzP4QPXo3gXyWA7Ob+NqcaopxC378vnbVhdRfkQxp3V+mncS5Zdcc1cRmlAB0eY fAOYHhi0cswQsPOkS8DjG1QlxRFFGJr6iufEbtFGcAghTiq4+0f1vlbzSBNGubjRVBRs d38xnEAK6KSSuulPJj+XuPWmQbziE0ypYtsAmkiGpILXE3dYjpgL6je6hTpd58NJrL93 sElLApZ4NLAKflSBlKAh3Yyv8NT4FsjdwJmElNBBIzdA/F7MpGx+wQppJSaODllrtO5b hJjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j19si794225edr.368.2020.08.12.01.42.20; Wed, 12 Aug 2020 01:42:43 -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; 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 S1727021AbgHLIjo (ORCPT + 99 others); Wed, 12 Aug 2020 04:39:44 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:37226 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726629AbgHLIjn (ORCPT ); Wed, 12 Aug 2020 04:39:43 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id F22C3FB03; Wed, 12 Aug 2020 10:39:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YTzYe0sNo_dQ; Wed, 12 Aug 2020 10:39:38 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id BD74045770; Wed, 12 Aug 2020 10:39:37 +0200 (CEST) Date: Wed, 12 Aug 2020 10:39:37 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Swapnil Jakhade Cc: airlied@linux.ie, daniel@ffwll.ch, Laurent.pinchart@ideasonboard.com, robh+dt@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, jonas@kwiboo.se, jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mparab@cadence.com, yamonkar@cadence.com, praneeth@ti.com, nsekhar@ti.com, jsarha@ti.com, tomi.valkeinen@ti.com, sandor.yu@nxp.com Subject: Re: [PATCH v8 0/3] drm: Add support for Cadence MHDP DPI/DP bridge and J721E wrapper. Message-ID: <20200812083937.GA8816@bogon.m.sigxcpu.org> References: <1596713672-8146-1-git-send-email-sjakhade@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1596713672-8146-1-git-send-email-sjakhade@cadence.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Aug 06, 2020 at 01:34:29PM +0200, Swapnil Jakhade wrote: > This patch series adds new DRM bridge driver for Cadence MHDP DPI/DP > bridge. The Cadence Display Port IP is also referred as MHDP (Mobile High > Definition Link, High-Definition Multimedia Interface, Display Port). > Cadence Display Port complies with VESA DisplayPort (DP) and embedded > Display Port (eDP) standards. Is there any relation to the cadence mhdp ip core used inthe imx8mq: https://lore.kernel.org/dri-devel/cover.1590982881.git.Sandor.yu@nxp.com/ It looks very similar in several places so should that use the same driver? Cheers, -- Guido > > The MHDP bridge driver currently implements Single Stream Transport (SST) > mode. It also adds Texas Instruments j721e SoC specific wrapper and adds > the device tree bindings in YAML format. > > Some of the features that will be added later on include (but are not > limited to): > - Power Management (PM) support: We will implement the PM functions in > next stage once there will be a stable driver in upstream > - Audio and MST support > > The patch series has three patches in the below sequence: > 1. 0001-dt-bindings-drm-bridge-Document-Cadence-MHDP-brid.patch > Documents the bindings in yaml format. > 2. 0002-drm-bridge-Add-support-for-Cadence-MHDP-DPI-DP-br.patch > This patch adds new DRM bridge driver for Cadence MHDP Display Port. > The patch implements support for single stream transport mode. > 3. 0003-drm-bridge-cdns-mhdp-Add-j721e-wrapper.patch > Adds Texas Instruments (TI) j721e wrapper for MHDP. The wrapper configures > MHDP clocks and muxes as required by SoC. > > This patch series is dependent on PHY patch series [1] to add new PHY APIs > to get/set PHY attributes which is under review and not merged yet. > > [1] https://lkml.org/lkml/2020/7/17/158 > > Version History: > > v8: > > In 1/3 > - Fix error reported by dt_binding_check > - Fix indent in the example > - Fix other comments given for v7 patches. > > In 2/3: > - Implement bridge connector operations .get_edid() and .detect(). > - Make connector creation optional based on DRM_BRIDGE_ATTACH_NO_CONNECTOR > flag. > - Fix other comments given for v7 patches. > > In 3/3 > - Fix comments given for v7 patches. > > v7: > > In 1/3 > - No change > > In 2/3 > - Switch to atomic versions of bridge operations > - Implement atomic_check() handler to perform all validation checks > - Add struct cdns_mhdp_bridge_state with subclassed bridge state > - Use PHY API[1] to get PHY attributes instead of reading from PHY DT node > - Updated HPD handling and link configuration in IRQ handler > - Add "link_mutex" protecting the access to all the link parameters > - Add support to check and print FW version information > - Add separate function to initialize host parameters to simplify probe > - Use waitqueue instead of manual loop in cdns_mhdp_remove > - Add forward declarations and header files in cdns-mhdp-core.h file > - Use bool instead of single bit values in struct cdns_mhdp_device > - Fix for other minor comments given for v6 patches > > In 3/3 > - Use of_device_is_compatible() to set compatible string specific values > - Move mhdp_ti_j721e_ops structure to cdns-mhdp-j721e.c > - Remove duplicate Copyright message > - Remove CONFIG_DRM_CDNS_MHDP_J721E check > - Add Reviewed-by: Laurent Pinchart > > v6: > - Added minor fixes in YAML file. > - Added Reviewed-by: Laurent Pinchart > to the YAML patch. > - Removed all the FIXME comments which are invalid in drm driver. > - Reduced the mailbox timeout from 5s to 2s. > - Added Reviewed-by: Tomi Valkeinen > to the 003-drm-mhdp-add-j721e-wrapper patch. > - Added Signed-off all the module authors. > - Fixed the compiler error Reported-by: kbuild test robot . > > v5: > - Added Signed-off-by: Jyri Sarha tag to > the code patches. > > v4: > - Added SPDX dual license tag to YAML bindings. > - Corrected indentation of the child node properties. > - Removed the maxItems in the conditional statement. > - Add Reviewed-by: Rob Herring tag to the > Document Cadence MHDP bridge bindings patch. > - Renamed the DRM driver executable name from mhdp8546 to cdns-mhdp in > Makefile. > - Renamed the DRM driver and header file from cdns-mhdp to cdns-mhdp-core. > > v3: > - Added if / then clause to validate that the reg length is proper > based on the value of the compatible property. > - Updated phy property description in YAML to a generic one. > - Renamed num_lanes and max_bit_rate property strings to cdns,num-lanes > and cdns,max-bit-rate. > > v2: > - Use enum in compatible property of YAML file. > - Add reg-names property to YAML file > - Add minItems and maxItems to reg property in YAML. > - Remove cdns_mhdp_link_probe function to remove > duplication of reading dpcd capabilities. > > Swapnil Jakhade (2): > drm: bridge: Add support for Cadence MHDP DPI/DP bridge > drm: bridge: cdns-mhdp: Add j721e wrapper > > Yuti Amonkar (1): > dt-bindings: drm/bridge: Document Cadence MHDP bridge bindings > > .../bindings/display/bridge/cdns,mhdp.yaml | 139 + > drivers/gpu/drm/bridge/Kconfig | 24 + > drivers/gpu/drm/bridge/Makefile | 4 + > drivers/gpu/drm/bridge/cdns-mhdp-core.c | 2562 +++++++++++++++++ > drivers/gpu/drm/bridge/cdns-mhdp-core.h | 397 +++ > drivers/gpu/drm/bridge/cdns-mhdp-j721e.c | 72 + > drivers/gpu/drm/bridge/cdns-mhdp-j721e.h | 19 + > 7 files changed, 3217 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,mhdp.yaml > create mode 100644 drivers/gpu/drm/bridge/cdns-mhdp-core.c > create mode 100644 drivers/gpu/drm/bridge/cdns-mhdp-core.h > create mode 100644 drivers/gpu/drm/bridge/cdns-mhdp-j721e.c > create mode 100644 drivers/gpu/drm/bridge/cdns-mhdp-j721e.h > > -- > 2.26.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >