From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from galahad.ideasonboard.com ([185.26.127.97]:54765 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeBUXxl (ORCPT ); Wed, 21 Feb 2018 18:53:41 -0500 From: Laurent Pinchart To: Rob Herring Cc: Laurent Pinchart , dri-devel , "open list:MEDIA DRIVERS FOR RENESAS - FCP" , Frank Rowand , devicetree@vger.kernel.org Subject: Re: [PATCH v4 08/16] drm: rcar-du: Fix legacy DT to create LVDS encoder nodes Date: Thu, 22 Feb 2018 01:54:23 +0200 Message-ID: <31008700.E3yMoWPLls@avalon> In-Reply-To: References: <20180220231046.32638-1-laurent.pinchart+renesas@ideasonboard.com> <20180220231046.32638-9-laurent.pinchart+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: Hi Rob, On Thursday, 22 February 2018 01:28:48 EET Rob Herring wrote: > On Tue, Feb 20, 2018 at 5:10 PM, Laurent Pinchart wrote: > > The internal LVDS encoders now have their own DT bindings. Before > > switching the driver infrastructure to those new bindings, implement > > backward-compatibility through live DT patching. > > > > Patching is disabled and will be enabled along with support for the new > > DT bindings in the DU driver. > > > > Signed-off-by: Laurent Pinchart > > > > --- > > [...] > > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a7790.dts > > b/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a7790.dts new file mode > > 100644 > > index 000000000000..6ebb355b652a > > --- /dev/null > > +++ b/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a7790.dts > > @@ -0,0 +1,81 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * rcar_du_of_lvds_r8a7790.dts - Legacy LVDS DT bindings conversion for > > R8A7790 > > + * > > + * Copyright (C) 2018 Laurent Pinchart > > > > + * > > + * Based on work from Jyri Sarha > > + * Copyright (C) 2015 Texas Instruments > > + */ > > + > > +#include > > Doesn't seem to be used in any of these. It's a leftover from a previous test. I'll remove it in all the .dts files. > Otherwise, > > Reviewed-by: Rob Herring > > > + > > +/dts-v1/; > > +/plugin/; > > +/ { > > + fragment@0 { > > + target-path = "/"; > > + __overlay__ { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + > > + lvds@feb90000 { > > + compatible = "renesas,r8a7790-lvds"; > > + reg = <0 0xfeb90000 0 0x1c>; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@0 { > > + reg = <0>; > > + lvds0_input: endpoint { > > + }; > > + }; > > + port@1 { > > + reg = <1>; > > + lvds0_out: endpoint { > > + }; > > + }; > > + }; > > + }; > > + > > + lvds@feb94000 { > > + compatible = "renesas,r8a7790-lvds"; > > + reg = <0 0xfeb94000 0 0x1c>; > > + > > + ports { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + port@0 { > > + reg = <0>; > > + lvds1_input: endpoint { > > + }; > > + }; > > + port@1 { > > + reg = <1>; > > + lvds1_out: endpoint { > > + }; > > + }; > > + }; > > + }; > > + }; > > + }; > > + > > + fragment@1 { > > + target-path = "/display@feb00000/ports"; > > + __overlay__ { > > + port@1 { > > + endpoint { > > + remote-endpoint = <&lvds0_input>; > > + }; > > + }; > > + port@2 { > > + endpoint { > > + remote-endpoint = <&lvds1_input>; > > + }; > > + }; > > + }; > > + }; > > +}; -- Regards, Laurent Pinchart