Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp681754ybi; Fri, 2 Aug 2019 02:32:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/vR4WaIHO0TtO7InrF7x1wrTV41elurDnFqObkypXE8VHTfJq3lQ462JF5kfvzkSWBuzA X-Received: by 2002:a17:90a:bf92:: with SMTP id d18mr3549139pjs.128.1564738320716; Fri, 02 Aug 2019 02:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564738320; cv=none; d=google.com; s=arc-20160816; b=BOXBzelvYzmyTYyB9JpkiOS0QzP1c4VKLBq5YofzyZfCW/P9iYhKe57XMvDQiQCInv NcftO1/mE5tPS2HBLXIY2OwqL7Ufx/PIi5jU9Q3A+nOZxZigx7QHh5n7GDMwuovgfeJi MwuzyMepe/PVJ36OEaOXxWkZVkoDrjz6ZYcVCby0swpbTm2KrqZGtl6CERtTsyIDjFA0 1opuFkSWK2CEYTfgf9IkJcHG6VvkO80F1TeuLf+xj+cAiOmxiwVNEVGFEE6hV1pBKj3h 3TO8oteSe9wbRmI4znLg5YIO81Ol1qwRoFtUNC7BmwQFPwDnDKLP0svOCzJGIz9Gp9ND HivA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=x7yIFp06jAZKSqew09T75C3FfzTFStoib5Fs7oRChaE=; b=ySHkLJlrknj9hpiNmV+W5Y+MrM05J4+MLtAuEFHR7e52c0pXJoqEo5BzBnUTS3GNRc WHAj2BFSxGQp69Na47zolKkyMWiHfZtH4RmDqDmZA8ALJug0n/rJl4uKWvL5rH/Wxt40 GhfvZpsbm4FUKKlx7j96skkz5Tuc43qCSbpnLPGZzjPtHyiIplcMmf9DuKP6beWwm2YD ZxnEbufiWh4FEkaqwFYctnPPAy1Iok5yFc1Gb2s5sPJxyApkM0LlQhi1XiioAPxjNvDH 7o6fijJ+fSuJh6hhJXt1Hu9AQe8Y6uQGASJfYGIuLmq3lZjYbcnrKOSB8oD7RAoYH8QQ Nzjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qxJvg6D+; 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 k23si38849564pgb.228.2019.08.02.02.31.44; Fri, 02 Aug 2019 02:32:00 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qxJvg6D+; 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 S2390043AbfHBHoe (ORCPT + 99 others); Fri, 2 Aug 2019 03:44:34 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:41970 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726601AbfHBHoe (ORCPT ); Fri, 2 Aug 2019 03:44:34 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3A89BCC; Fri, 2 Aug 2019 09:44:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1564731871; bh=gzvUj9jd2PrydwNYpFTgEXGs5eg5KFldPERSdboetlo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qxJvg6D+26dP4y9USt76anVWBn0L0OikGL59FHRGFoAhYRXaRfWX8Bqq04mgxBUDZ VZiKM+TQ8c+HjkjimTUyjcrDktGsaYxwgaA9L5SDaUGN1ip/ahbBVwDEI6x1VxAW5j /JsZIUmCNIky3Q1rv0w8CTnHlNO5Zc6m3+FWCOLk= Date: Fri, 2 Aug 2019 10:44:28 +0300 From: Laurent Pinchart To: Fabrizio Castro Cc: Kieran Bingham , Jacopo Mondi , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Simon Horman , Geert Uytterhoeven , Chris Paterson , Biju Das Subject: Re: [PATCH/RFC 02/12] dt-bindings: display: renesas: lvds: Document renesas,swap-data Message-ID: <20190802074428.GB5008@pendragon.ideasonboard.com> References: <1564731249-22671-1-git-send-email-fabrizio.castro@bp.renesas.com> <1564731249-22671-3-git-send-email-fabrizio.castro@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1564731249-22671-3-git-send-email-fabrizio.castro@bp.renesas.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrizio, Thank you for the patch. On Fri, Aug 02, 2019 at 08:33:59AM +0100, Fabrizio Castro wrote: > R-Car D3, R-Car E3, and RZ/G2E support dual-link mode. > In such a mode, the first LVDS encoder emits even data, and the > second LVDS encoder emits odd data. This patch documents property > renesas,swap-data, used to swap even and odd data around. > > Signed-off-by: Fabrizio Castro > --- > Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt > index dece79e..8980179 100644 > --- a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt > +++ b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt > @@ -52,6 +52,11 @@ Optional properties: > mandatory for the first LVDS encoder on R-Car D3, R-Car E3, and RZ/G2E SoCs, > and shall point to the second encoder to be used as a companion in dual-link > mode. It shall not be set for any other LVDS encoder. > +- renesas,swap-data : when in dual-link mode, the first LVDS encoder normally > + emits even data, and the second LVDS encoder emits odd data. When property > + renesas,swap-data is specified, the data emitted by the two encoders will be > + swapped around. This property can only be used in conjunction with property > + renesas,companion. From an LVDS encoder point of view this is more a configuration option than a description of the hardware. Wouldn't it be better for the LVDS sink to report which of the odd or even pixels it expects on each of its endpoints ? The LVDS encoder driver could then query that at runtime and configure itself accordingly. Ideally this should be queried through the drm_bridge_timings structure (or through a similar mean), not through DT. An LVDS sink that has a fixed mapping of odd/even pixels to endpoints wouldn't need the information to be specified in DT at all. > > > Example: -- Regards, Laurent Pinchart