Received: by 10.223.185.116 with SMTP id b49csp6436278wrg; Thu, 8 Mar 2018 07:25:44 -0800 (PST) X-Google-Smtp-Source: AG47ELuHKix6UMJ/FmIPLZAIFfBdeWvgStCfIDBK/UzmFDN1ys/lMmXb1/QukuBgsyqz1sN+xwuC X-Received: by 2002:a17:902:720b:: with SMTP id ba11-v6mr24758809plb.148.1520522744814; Thu, 08 Mar 2018 07:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520522744; cv=none; d=google.com; s=arc-20160816; b=zAfememhDiQfJdIlU/q+YHnp3oOmn1NB1sQOPHb7ocpjnqp4O5LWFGoBp+U2R0Imbu jz8eIzv8MjCH1k+1RM3OBMlRg1VdurEP6o66anL7N6hA+ZLjlUs5yHIz2/XhlM3PQHCf y6icGoeVTr/5PHkRYi1mDyL0t1p4EXRseTSLJEMw24oOYm5lHNlx/fnTB76qwp7x9xNl PVJIZyvYPKgqWZj+WsAE+1HW+uhYlTYoyI+FpsmuLIMIY/SG2HcVTE0JfFT9fWFXqyAw iLgqE3PpWSAjQsYUbcz5yfvnFdHFsuXapWFHwNYkVs5tfIVpXf4iQPmDr3sx2UHXDm2q Jx+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FcA1oamNCx0ekgIB3GSxDzKAhm6R+PAA+c3fCUFwxPY=; b=uRLVlKyur82E03oq6yGqWNhhnR/Zp69DNHlOEbCZtogZ/IEkY8OMgWoQ81qr0XOSQs 029Hr7xSoOA2cx5Az8G1eGIvsmDON5VBgWjhWmA817op7CMDUYHg8BXzifP0XDePSWDM vog5PY1naajg/9Y8t1xVFqRI1inoff5zMDy7tjtqA4W86u6+qhh1V0h2o4x3bEdm9poi cwcbZIOsMteWFTkRLMgf7or+i3agQDFRN06uNr+U3rWj5EbL5aUeyDmi+oJAEo0PSLi/ i/Zi1EhNcG/vCr/N4/PguDZz+SoPmZRol+2RgqbPIVjxL3Ax/03spP+dOqMCjOnLRsFn cbIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si15676129pfn.89.2018.03.08.07.25.29; Thu, 08 Mar 2018 07:25:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755892AbeCHPY1 (ORCPT + 99 others); Thu, 8 Mar 2018 10:24:27 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:32769 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754052AbeCHPYZ (ORCPT ); Thu, 8 Mar 2018 10:24:25 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:2e0:f265:4533:772b:1ba:5201]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 845D1C5A77; Thu, 8 Mar 2018 16:24:16 +0100 (CET) From: Jacopo Mondi To: architt@codeaurora.org, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, airlied@linux.ie, horms@verge.net.au, magnus.damm@gmail.com, geert@linux-m68k.org, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: Jacopo Mondi , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] drm: Add LVDS decoder bridge Date: Thu, 8 Mar 2018 16:24:00 +0100 Message-Id: <1520522643-11756-1-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this small series add a driver for transparent LVDS decoders, as Thine THC63LVD1024 device. The R-Car Gen3 V3M Eagle board feature such a converter, that has been so far not described as part of the display output pipeline. Now that a driver has been added, the Eagle DTS file has been updated to include the transparent decoder chip. So far so good, but currently the current DRM Bridge API do not provide support to query a mode from another bridge as it is possible to do on panel devices. In our case the LVDS decoder is connected to the output of R-Car DU lvds encoder (drivers/gpu/drm/rcar-du/rcar_lvds.c). As its 'mode_set' function shows, LVDS modes cannot be propagated from bridge to another bridge, but are instead inferred from the bus_format field of the panel's connector. It is my intention to propose an API extension to allow formats to be propagated through bridges, but knowing the DRM/KMS subsystem very superficially I would appreciate any pointer from more experienced developers. For Renesas side: The series is based on Laurent's drm/next/du branch with patches on top for: - Sergei: Enable PFC, I2c, GPIOs for r8a77970 - Sergei: Add support for r8a77970 in DU and add display device nodes in r8a77970 DTSI - Niklas: Connect DU LVDS output to HDMI bridge adv7511w in Eagle DTS - Sergei: fix video output on R8A77970 A base branch with these patches applied is available at git://jmondi.org/linux v3m/v4.16-rc3/base Tested on Eagle board, making sure DU probes and testing all available output modes (of which only a few are actually working, I suspect due to faulty mode propagation through DRM bridges). Thanks j Jacopo Mondi (3): dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder drm: bridge: Add LVDS decoder driver arm64: dts: renesas: Add LVDS decoder to R-Car V3M Eagle .../bindings/display/bridge/thine,thc63lvd1024.txt | 59 +++++ arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 31 ++- drivers/gpu/drm/bridge/Kconfig | 8 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/lvds-decoder.c | 239 +++++++++++++++++++++ 5 files changed, 336 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt create mode 100644 drivers/gpu/drm/bridge/lvds-decoder.c -- 2.7.4