From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Nguyen An Hoan <na-hoan@jinso.co.jp>
Cc: linux-renesas-soc@vger.kernel.org, geert+renesas@glider.be,
kieran.bingham+renesas@ideasonboard.com,
kuninori.morimoto.gx@renesas.com,
yoshihiro.shimoda.uh@renesas.com, h-inayoshi@jinso.co.jp,
nv-dung@jinso.co.jp, cv-dong@jinso.co.jp
Subject: Re: [PATCH] drm: rcar-du: Add r8a77965 LVDS dts overlay
Date: Fri, 14 Dec 2018 10:13:19 +0200 [thread overview]
Message-ID: <4635402.pIxGsWvrf0@avalon> (raw)
In-Reply-To: <1544771885-17023-1-git-send-email-na-hoan@jinso.co.jp>
Hi Hoan-san,
Thank you for the patch.
On Friday, 14 December 2018 09:18:05 EET Nguyen An Hoan wrote:
> From: Hoan Nguyen An <na-hoan@jinso.co.jp>
>
> Add r8a77965 LVDS dts overlay support.
This shouldn't be needed. r8a77965 support was added to the DU LVDS driver
after conversion to the new DT bindings. There has never been support for old
LVDS bindings in the DU driver, so there's no need to offer backward
compatibility.
> Signed-off-by: Hoan Nguyen An <na-hoan@jinso.co.jp>
> ---
> drivers/gpu/drm/rcar-du/Makefile | 4 +-
> drivers/gpu/drm/rcar-du/rcar_du_of.c | 2 +
> .../gpu/drm/rcar-du/rcar_du_of_lvds_r8a77965.dts | 50 +++++++++++++++++++
> 3 files changed, 55 insertions(+), 1 deletion(-)
> create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a77965.dts
>
> diff --git a/drivers/gpu/drm/rcar-du/Makefile
> b/drivers/gpu/drm/rcar-du/Makefile index 2a3b8d7..9e73a83 100644
> --- a/drivers/gpu/drm/rcar-du/Makefile
> +++ b/drivers/gpu/drm/rcar-du/Makefile
> @@ -11,7 +11,8 @@ rcar-du-drm-$(CONFIG_DRM_RCAR_LVDS) += rcar_du_of.o \
> rcar_du_of_lvds_r8a7791.dtb.o \
> rcar_du_of_lvds_r8a7793.dtb.o \
> rcar_du_of_lvds_r8a7795.dtb.o \
> - rcar_du_of_lvds_r8a7796.dtb.o
> + rcar_du_of_lvds_r8a7796.dtb.o \
> + rcar_du_of_lvds_r8a77965.dtb.o
> rcar-du-drm-$(CONFIG_DRM_RCAR_VSP) += rcar_du_vsp.o
>
> obj-$(CONFIG_DRM_RCAR_DU) += rcar-du-drm.o
> @@ -24,3 +25,4 @@ DTC_FLAGS_rcar_du_of_lvds_r8a7791 += -Wno-graph_endpoint
> DTC_FLAGS_rcar_du_of_lvds_r8a7793 += -Wno-graph_endpoint
> DTC_FLAGS_rcar_du_of_lvds_r8a7795 += -Wno-graph_endpoint
> DTC_FLAGS_rcar_du_of_lvds_r8a7796 += -Wno-graph_endpoint
> +DTC_FLAGS_rcar_du_of_lvds_r8a77965 += -Wno-graph_endpoint
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_of.c
> b/drivers/gpu/drm/rcar-du/rcar_du_of.c index afef696..56c341c 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_du_of.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_of.c
> @@ -107,6 +107,7 @@ RCAR_DU_OF_DTB(lvds, r8a7791);
> RCAR_DU_OF_DTB(lvds, r8a7793);
> RCAR_DU_OF_DTB(lvds, r8a7795);
> RCAR_DU_OF_DTB(lvds, r8a7796);
> +RCAR_DU_OF_DTB(lvds, r8a77965);
>
> static const struct rcar_du_of_overlay rcar_du_lvds_overlays[] __initconst
> = { RCAR_DU_OF_OVERLAY(lvds, r8a7790),
> @@ -114,6 +115,7 @@ static const struct rcar_du_of_overlay
> rcar_du_lvds_overlays[] __initconst = { RCAR_DU_OF_OVERLAY(lvds, r8a7793),
> RCAR_DU_OF_OVERLAY(lvds, r8a7795),
> RCAR_DU_OF_OVERLAY(lvds, r8a7796),
> + RCAR_DU_OF_OVERLAY(lvds, r8a77965),
> { /* Sentinel */ },
> };
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a77965.dts
> b/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a77965.dts new file mode 100644
> index 0000000..34aea91
> --- /dev/null
> +++ b/drivers/gpu/drm/rcar-du/rcar_du_of_lvds_r8a77965.dts
> @@ -0,0 +1,50 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * rcar_du_of_lvds_r8a77965.dts - Legacy LVDS DT bindings conversion for
> R8A77965 + *
> + * Copyright (C) 2018 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> + */
> +
> +/dts-v1/;
> +/plugin/;
> +/ {
> + fragment@0 {
> + target-path = "/soc";
> + __overlay__ {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + lvds@feb90000 {
> + compatible = "renesas,r8a77965-lvds";
> + reg = <0 0xfeb90000 0 0x14>;
> +
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + lvds0_input: endpoint {
> + };
> + };
> + port@1 {
> + reg = <1>;
> + lvds0_out: endpoint {
> + };
> + };
> + };
> + };
> + };
> + };
> +
> + fragment@1 {
> + target-path = "/soc/display@feb00000/ports";
> + __overlay__ {
> + port@2 {
> + endpoint {
> + remote-endpoint = <&lvds0_input>;
> + };
> + };
> + };
> + };
> +};
--
Regards,
Laurent Pinchart
prev parent reply other threads:[~2018-12-14 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-14 7:18 [PATCH] drm: rcar-du: Add r8a77965 LVDS dts overlay Nguyen An Hoan
2018-12-14 7:48 ` Kieran Bingham
2018-12-14 8:24 ` Kieran Bingham
2018-12-14 8:13 ` Laurent Pinchart [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4635402.pIxGsWvrf0@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=cv-dong@jinso.co.jp \
--cc=geert+renesas@glider.be \
--cc=h-inayoshi@jinso.co.jp \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=na-hoan@jinso.co.jp \
--cc=nv-dung@jinso.co.jp \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.