Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1225479pxa; Thu, 13 Aug 2020 04:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmdxB+Y6CDXz/OJQrND/WkNGE/P66LLPuuF87oKo9vyfh/UU7pFGD8dEOyBAp55+yACNl/ X-Received: by 2002:a17:906:b08:: with SMTP id u8mr4247051ejg.401.1597316446188; Thu, 13 Aug 2020 04:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597316446; cv=none; d=google.com; s=arc-20160816; b=fgyfOSNUsMy9l9Sn+m46a0/1VpF7piL+QdmMWH+++mOrOHx56AusJ0TlS+Jtd4ntzh IcK00f/3t7Gdd5Q9t+YvRVxBq9P7xLE2j78OVm7rAGuP9QfXCLK2j89Wmdh/DOGM3JK9 Ioe/ipIMNXy+EX4ezG3BiPJf+oeE8p16lQqRcZT+BT/kyw+dvV08ZbyfUbkK+0EZTxJ4 8sE0wAnGQkpE1Ze4bzVEWiH41ALHY+19Q4t/IUGOpE+81umrRyuL3NGH9XbV1TXRbE19 Y7J6L7hb7AisaTmFpA07TwQ1TUaLIDRVie379sUYjjUUemonAQGhR0D9syjKX9WMDZdH Uzyw== 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 :dkim-signature; bh=S3DaV180scj8IJ0AWY6jyMtB4FFTeaXg0AkVMP8RkWE=; b=MORRBoAign+ycjAym9HkSUDbt4IGz1B2ZBhus3NLrMOYgOIw14wGHo304228F5IXo2 5ucTUgdgdteN4qWRj+ATc5O8hmwQR2HYs79Wmo0UzMr2knV2A0oXkyy+ExqWL254DhTQ pi8Updi3pDb5NiFByVgTyg/qJ5/Zw8To3ZkoBpIMLKENpzSmT0B046Tjaoy4+P7BgpXs jelqkP8YtIOE6z196x/KUZUa0VqdVAXB4djPqLkj3z2TXAUQgarLsxIa+PiN5vIJzt69 nUtnAUDnYWVac/UTwpElwlyvy9Nkio+supuzZCA4WV5Tn5b3gP6fxf8TCaKCSV2w3PMe hG5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=OEs+ZoQn; 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 bv7si3364870ejb.523.2020.08.13.04.00.22; Thu, 13 Aug 2020 04:00:46 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=OEs+ZoQn; 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 S1726622AbgHMK7f (ORCPT + 99 others); Thu, 13 Aug 2020 06:59:35 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:37856 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgHMK71 (ORCPT ); Thu, 13 Aug 2020 06:59:27 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 83D07551; Thu, 13 Aug 2020 12:59:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1597316364; bh=MkCO5WRnwp35q3JzVhLn32/9iCBNr/ShuvAxpwbx+0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OEs+ZoQnEGKW2rKPrLo5ZB2ySsOpJ9yrxXrpapBX+kUbnKBvv70r3Vpd7R6fRFpsS QJKuhIM+9V/ZzqJ1LP/wkLMTGhx8/NE9nz9F6nLZA5BuiHnSkavsxaC8VJvulh8ppE /tEeOHeoESQX91aKUCO0J5nm9nRkgCTmbsdI3aTw= Date: Thu, 13 Aug 2020 13:59:10 +0300 From: Laurent Pinchart To: "Lad, Prabhakar" Cc: Geert Uytterhoeven , Laurent Pinchart , Kieran Bingham , Chris Paterson , Biju Das , Lad Prabhakar , David Airlie , Daniel Vetter , Rob Herring , Magnus Damm , DRI Development , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Subject: Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings Message-ID: <20200813105910.GB6057@pendragon.ideasonboard.com> References: <20200812140217.24251-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200812140217.24251-2-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, Aug 13, 2020 at 11:38:03AM +0100, Lad, Prabhakar wrote: > On Thu, Aug 13, 2020 at 10:05 AM Geert Uytterhoeven wrote: > > On Wed, Aug 12, 2020 at 4:02 PM Lad Prabhakar wrote: > > > From: Marian-Cristian Rotariu > > > > > > Document the RZ/G2H (a.k.a. r8a774e1) SoC in the R-Car DU bindings. > > > > > > Signed-off-by: Marian-Cristian Rotariu > > > Signed-off-by: Lad Prabhakar > > > --- > > > Documentation/devicetree/bindings/display/renesas,du.txt | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/display/renesas,du.txt b/Documentation/devicetree/bindings/display/renesas,du.txt > > > index 51cd4d162770..67cded5ad827 100644 > > > --- a/Documentation/devicetree/bindings/display/renesas,du.txt > > > +++ b/Documentation/devicetree/bindings/display/renesas,du.txt > > > @@ -10,6 +10,7 @@ Required Properties: > > > - "renesas,du-r8a774a1" for R8A774A1 (RZ/G2M) compatible DU > > > - "renesas,du-r8a774b1" for R8A774B1 (RZ/G2N) compatible DU > > > - "renesas,du-r8a774c0" for R8A774C0 (RZ/G2E) compatible DU > > > + - "renesas,du-r8a774e1" for R8A774E1 (RZ/G2H) compatible DU > > > - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU > > > - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU > > > - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU > > > @@ -75,6 +76,7 @@ corresponding to each DU output. > > > R8A774A1 (RZ/G2M) DPAD 0 HDMI 0 LVDS 0 - > > > R8A774B1 (RZ/G2N) DPAD 0 HDMI 0 LVDS 0 - > > > R8A774C0 (RZ/G2E) DPAD 0 LVDS 0 LVDS 1 - > > > + R8A774E1 (RZ/G2H) DPAD 0 HDMI 0 LVDS 0 - > > > > As LVDS 0 is the fourth channel (DU3), should it be listed under port 3 > > instead of port 2? > > > > I know we did it the same for R-Car M3-N and RZ/G2N. > > But my main worry is adding support for R-Car H3-N later. Why should we do so ? The port number here isn't tied to the DU channel number. It only identifies the output port. Many DUs can route DU channel outputs to different output ports. > I do agree too, with the below diff I tested the LVDS output on RZ/G2N > Rev2 board and things work fine. But only thing it doesn't explain is > why does LVDS work on DU2 for G2[H/N] boards :D > > Geert, Laurent, Kieran If you agree with the below changes I shall > post a proper patch fixing it for RZ/G2[HN] > > diff --git a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi > b/arch/arm64/boot/dts/renesas/r8a774b1.dtsi > index d661724fc28a..0b087d287202 100644 > --- a/arch/arm64/boot/dts/renesas/r8a774b1.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a774b1.dtsi > @@ -2540,8 +2540,8 @@ > remote-endpoint = > <&dw_hdmi0_in>; > }; > }; > - port@2 { > - reg = <2>; > + port@3 { > + reg = <3>; > du_out_lvds0: endpoint { > remote-endpoint = <&lvds0_in>; > }; > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c > b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > index 3e67cf70f040..419d81c7763e 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c > @@ -153,7 +153,7 @@ static const struct rcar_du_device_info > rcar_du_r8a774b1_info = { > }, > [RCAR_DU_OUTPUT_LVDS0] = { > .possible_crtcs = BIT(0), > - .port = 2, > + .port = 3, > }, > }, > .num_lvds = 1, > > > > R8A7779 (R-Car H1) DPAD 0 DPAD 1 - - > > > R8A7790 (R-Car H2) DPAD 0 LVDS 0 LVDS 1 - > > > R8A7791 (R-Car M2-W) DPAD 0 LVDS 0 - - > > > > Apart from that: > > Reviewed-by: Geert Uytterhoeven -- Regards, Laurent Pinchart