Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2532099ybh; Mon, 5 Aug 2019 02:36:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz51rRsoqjI5BVK7+L/PvQxWJYMYAqvSy8in+Mz6CQoPXoQO/NnmeOxCPCQxig0knhURiFx X-Received: by 2002:a65:6454:: with SMTP id s20mr135746350pgv.15.1564997801455; Mon, 05 Aug 2019 02:36:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564997801; cv=none; d=google.com; s=arc-20160816; b=SAz6zPs7hUhL/Qx7Rqokfg8BkF5WBdgU2zCSB+YjbXiPPIi/UyzO+v+LZkMafwd/fu 5hQklVUtl+he8kXL6ZiDu1F1neMaN8SmXmLRY8ZKFp8m4tcUuu8fRhRogW06rf7MizcM nWctZPQOTiAk8X+Kei018QHrP9OnlCwCp3qywFHhtHErHC3Ptu7CJUGk0hz9JT7VX1jm +OLYxyYO2J82orBD+6Bp5WfHZlXvOsrXda4LXJVKzzgzjnI189d+YMZjlZq+aKPP2d7S njasHEEsn0L09H8gfwl4Ui84L9FnX37ufsZC6k6Ij4yOpzw7QaVWc5C72uwiHMp4dEY7 tTqw== 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=wF4duBhKNTaIHhb+C1lvDiZkdsS97Sz79ZTRQRr/Rmk=; b=mK8G+jqkyNCXU/HrXRNmariQ8igtRuyCsFRiUtvAQjPYmuUBsGSF8ZkTflfa+r3PRc PetbOUc29p6Tfh3kNXoZIthvbin8jWDe4ZNpZoVX0BRshlHdFSb1r0jj09ewVRTkqwMc wvpLOv858aK2PeignQomLkJb3IeedsFPaaucq/e9qhfxe7+vTwB45EZ6WxoVp03zqbTu 4z+2RdjOnlxW0+//PeLy5mws1mKD6L+C7Vyz25hHHEKC+Rho6pqRbHHHmz0hU62wWgYJ KGHop64UH/6qE7H/LyCRDIXK7pXopeGIkVJ4imKGeYrf/uppUYCFKOWYnP4DgbuWuYVN QVow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=eD6hF6pN; 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 e62si46754688pfh.254.2019.08.05.02.36.25; Mon, 05 Aug 2019 02:36:41 -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=eD6hF6pN; 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 S1727995AbfHEJft (ORCPT + 99 others); Mon, 5 Aug 2019 05:35:49 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:46978 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfHEJfs (ORCPT ); Mon, 5 Aug 2019 05:35:48 -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 A559B2F9; Mon, 5 Aug 2019 11:35:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1564997745; bh=9lyHNth0BO3OFQvy53sY8ChramaGr6/aYpcQayRs7Wk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eD6hF6pNE4bGlluLrMGZh1kev4mdIMcD6210/F7TcCD0TUmHaq+x3qIKSNpNLjI9O cnLNzSztiNtar/f+edH9FcfE2L3wsdjsgGvImAuR1LSyQQTdl0Gz3LscYddaQXoudC YclyoiDWszwHtibWSIFQLKCqKqh7obs/JjZw3NfI= Date: Mon, 5 Aug 2019 12:35:43 +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: <20190805093543.GB29747@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> <20190802074428.GB5008@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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, On Mon, Aug 05, 2019 at 08:59:51AM +0000, Fabrizio Castro wrote: > > From: Laurent Pinchart > > Sent: 02 August 2019 08:44 > > Subject: Re: [PATCH/RFC 02/12] dt-bindings: display: renesas: lvds: Document renesas,swap-data > > > > 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 ? > > Yes, that would be my preference too, and it would be better, I am just not entirely > what's the best place for this information though > > > 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. > > Isn't drm_bridge_timings specific for bridges? Its name makes it specific to bridges, but the information it contains could equally apply to panels. I would thus use it for both, possibly after renaming it. -- Regards, Laurent Pinchart