Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1235136pxa; Thu, 13 Aug 2020 04:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRBXPH0NCZmBPB48wVgQeS0zDY/W1rkdOb/JKE2d1RG7ZKHSLTFi0XE7pp1rbSX5zg8NC6 X-Received: by 2002:aa7:cc98:: with SMTP id p24mr4260856edt.333.1597317223719; Thu, 13 Aug 2020 04:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597317223; cv=none; d=google.com; s=arc-20160816; b=Q5A3GFolZBmM3L/4Fy2TEa7dLbERKc7FjVIRjsOu/i0qw44zOzM6oI0yJCmhnM3hdS UarATz6Mm9k8/L9tJ+eJevMQws9W/4HomnJdsEPPBvocI7SeIZOsP8DuyiNqR6scJyJ9 zTNyuW3xN05vsghmnApXWy/joFEsi+PjS8ziYEuhpHaco9tHylXY002EXLK1auBuXgou BWH5LGngF/zuVGrJmq51/tZLv8LMNNULGvW7PNe0am3syZV7vpVoT2KznFsv0tWHDy/U vtihwH1SN3LG01iAMkg/W/9AlYItG/toygKw3GGPVs60RDkCMqBTtUy+BSoyuunQAmwt dDJA== 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=DFc+BEAm+Z6kP/JJYAlhZvAfjszkK02Mr7Fg8Czvu/0=; b=0yFB878VJMSdC6gMA9pE+m7yLQ0yaVphRPcHnRQLK5Sp0cA8p5Oa+AYF3P3tOaIcpH ZaEF986WH2k2ffmw3LGWOR/BcdoeL8RBFt/Cgz/Ytq0cxpnKFIeQER/VrOHosFFS/Gg9 /jQY6nLOVP5aY99fn3n3/3ZqXntFuKLRGWNjhWh1W7f37ePeGJv1EWhzX2N4EhvpZ1gu BkvHJWc+cMFB+YHqOw5L8VKoLbad5DlptZQwV1ivrEx6OAUyspfz4NMrsy9T97fv4spF V5xo1rWJ+Z6lmcTFWqMMfirS6O1MuJCIugQLRrfygSNIZINp2SDn8HUA9WzKKWI1BLfy Pp5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="tl/wB7wg"; 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 bt12si2946502edb.547.2020.08.13.04.13.20; Thu, 13 Aug 2020 04:13:43 -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="tl/wB7wg"; 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 S1726631AbgHMLLm (ORCPT + 99 others); Thu, 13 Aug 2020 07:11:42 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:38300 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgHMLLl (ORCPT ); Thu, 13 Aug 2020 07:11:41 -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 84B3EF9; Thu, 13 Aug 2020 13:11:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1597317097; bh=6+OyEWqifsz3+mafd2j5D1bEiypt87Aw3SXgHFWIW6s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tl/wB7wg5y7Z1dm89rsHU0IV98Fg7Y6izj9y/srCp246Udbz0oA5E57i+ff8FBm1T 2GXimbBrECYY5IZTz3QllBEuq854zYzNYOUxotY+djZOrWWZ75rJxCR5xtllswM5b4 0jYTymcQwCuNJmx/ZEu22vVObI+/sg0OOVB7aXaQ= Date: Thu, 13 Aug 2020 14:11:23 +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: <20200813111123.GD6057@pendragon.ideasonboard.com> References: <20200812140217.24251-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200812140217.24251-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200813105910.GB6057@pendragon.ideasonboard.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 Hi Prabhakar, On Thu, Aug 13, 2020 at 12:08:58PM +0100, Lad, Prabhakar wrote: > On Thu, Aug 13, 2020 at 11:59 AM Laurent Pinchart wrote: > > 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. > > > The binding document (renesas,du.txt) does state that "The following > table lists for each supported model the port number corresponding to > each DU output.", hence the confusion. It can be a bit confusing indeed. "DU output" here refers to the output of the whoel DU, made of individual DU channels. Each DU channel is listed as a DU device in the datasheet, and collectively they are the DU device that Linux handles. > >> 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