Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1234422pxa; Thu, 13 Aug 2020 04:12:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQWrNCg2QX34PDvrZwqKtNWzvZ7IdKMgoCLJYNwGvTgAzjJtNISl4KSwL8KqPhEH1M9Rk4 X-Received: by 2002:a05:6402:6cc:: with SMTP id n12mr4331404edy.258.1597317158104; Thu, 13 Aug 2020 04:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597317158; cv=none; d=google.com; s=arc-20160816; b=HkvmGoc5NWdIMQ/uUJJCKGI/gVYAKdteKYi2eA3A4kPRaDYxP3BMF7v9xD68WFrSlB 5N5DN++DvYMNUH/spjN6rgjoOaFGrM7LryC/ofSg/dv3YSNl9Mr0bQpwGRv1EJyz0xLO 4ElAQeOMe7tuKOIGfnCS2tbYaow6YLp1MfVAMnP348AQJVaWHsG235SyjftDGuPFCKzc 2Fb/pyTVWyy9kqUZ5FFwkDT3QsImCoCd+6pR0QtjPj6KpmMDfrPeEfO8p/15Y8V0f/9H 9dixAq/dRfhhjaAsMVXYhNlWUmAFM0k6He7hCMRZwxeBxrHVqZmQCV6YfkBFAz8Oep19 WNKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+FdrfrzUYGESkY5nR/Iw5dDnYK/s8TkEFw8YlZ8IoPA=; b=D4cr/CTHP/K3Ov8bZReNeoRUX2zOd+ZJ0gksRfJzZnG4CFOt70e/LEIe0YBJP7BDh1 uMXngNuCJKduO1i8RnE0f0JWWCRzLedHiaeLO/WyL08Es36rvsQ9MEd8toJQMvnCClpm yJ3QlnIN4K/yd8fJLq3ykDQG9ciprfw6x1cR9Ydl2UAYabFKKL+R2bkzlpMElPaNxC4W khkP90ZFBNYxVfGthSzcbIOJTUYAhDB+mBwuWBEBzYEY5b1rvboURi1M8T66e5OygT44 XH0wjjlsBAANIi90/YiA8Nl1kMsgA9KYv3fK9NCBhlaF4BbgGLbq4HjN8EsMQCwRJzLY TqDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hhFDjW9t; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si3192846edg.164.2020.08.13.04.12.13; Thu, 13 Aug 2020 04:12:38 -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 header.i=@gmail.com header.s=20161025 header.b=hhFDjW9t; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbgHMLJ2 (ORCPT + 99 others); Thu, 13 Aug 2020 07:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbgHMLJ1 (ORCPT ); Thu, 13 Aug 2020 07:09:27 -0400 Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA559C061757; Thu, 13 Aug 2020 04:09:26 -0700 (PDT) Received: by mail-yb1-xb44.google.com with SMTP id m200so3077433ybf.10; Thu, 13 Aug 2020 04:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+FdrfrzUYGESkY5nR/Iw5dDnYK/s8TkEFw8YlZ8IoPA=; b=hhFDjW9tbqs1Ztzrt/0JJWGsCwXM8Khk4AIkUF+5JlNcxp4f0JlCocua2RnfhPbG8x hoCLrrI2CzIo9DVV/uk1BD+2BFMmyKjhT4j+udkBY+B3lpOHX38IEwXpa4PapwCGN+72 SPpBRoX3A3V+ANN0jV1BzwxpMWCTnUpbusGIw0uAXBVVgahS5r8EG8rwLxVdIjcR9L0Y MR6UhaEwfR8ncUixSfXQpHx/7HrZccRMfNeDJYbCSHgRLdwOl6j9VRPTC/SuUQF8/wci TvjBP4NM55Ylx9aCH3BkmVtljB+/NbfyjXHkPHy318NyyQKn6XIMMirqtsaYE8yr40A5 demA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+FdrfrzUYGESkY5nR/Iw5dDnYK/s8TkEFw8YlZ8IoPA=; b=GuUf8WGefUDWOwnuYVCUiLyCYzU2MEzA448kUalB7DCf0KDYk+TbFSjMOtOotjGPLC FhC8G9HzjiBeF+MBM3RyrwQ0mib5G5YmceP/icT9ETciGeKsB9wRX5DmR0dDEz0ETCbG tiEbD2J1Qdy2p6Gc1iqN55esnB+B/VQE9ZBmz0rfiFbTbvnsRovXFe2BmzZuWkuiCMnE R7WE9Zfu0f+yKIfJko0QGpIO09/bnTQ/YKOfrzpb3mKc/w6+hFUZV2gimsWNCGN7TPPo 3r7aAEVwhTtIckBcaBOHOC4LBS53gWTP0kyA50T/7loudjzT3l5m02Z7e2IfBvy+dLVH cFTw== X-Gm-Message-State: AOAM533HEWF8sVGX4/r6pys8hHmnzOIc3J9eV8mWmeNXlg4AGihXI8Oi mq24RGQnuG8loKI12SUD2ldQV1SAY+nSHqr1LcY= X-Received: by 2002:a25:c743:: with SMTP id w64mr5573010ybe.127.1597316964657; Thu, 13 Aug 2020 04:09:24 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20200813105910.GB6057@pendragon.ideasonboard.com> From: "Lad, Prabhakar" Date: Thu, 13 Aug 2020 12:08:58 +0100 Message-ID: Subject: Re: [PATCH 1/9] dt-bindings: display: renesas,du: Document r8a774e1 bindings To: Laurent Pinchart 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Thu, Aug 13, 2020 at 11:59 AM Laurent Pinchart wrote: > > 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. > 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. Cheers, Prabhakar > > 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