* [PATCH 0/4] Add RZ/G2N DU support
@ 2019-09-30 9:15 Biju Das
2019-09-30 9:15 ` [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings Biju Das
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Biju Das @ 2019-09-30 9:15 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Rob Herring, Mark Rutland
Cc: Biju Das, Laurent Pinchart, Kieran Bingham, dri-devel,
linux-renesas-soc, devicetree, Geert Uytterhoeven, Simon Horman,
Chris Paterson, Fabrizio Castro
This patch series aims to add binding/driver support for
R8A774B1(a.k.a RZ/G2N) DU (which is very similar to the R8A77965 DU);
it has one RGB output, one LVDS output and one HDMI output.
Biju Das (4):
dt-bindings: display: renesas: du: Document the r8a774b1 bindings
drm: rcar-du: Add R8A774B1 support
dt-bindings: display: renesas: lvds: Document r8a774b1 bindings
drm: rcar-du: lvds: Add r8a774b1 support
.../bindings/display/bridge/renesas,lvds.txt | 1 +
.../devicetree/bindings/display/renesas,du.txt | 2 ++
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 30 ++++++++++++++++++++++
drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 +
4 files changed, 34 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
@ 2019-09-30 9:15 ` Biju Das
2019-10-15 18:56 ` Rob Herring
2019-09-30 9:15 ` [PATCH 2/4] drm: rcar-du: Add R8A774B1 support Biju Das
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Biju Das @ 2019-09-30 9:15 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Rob Herring, Mark Rutland
Cc: Biju Das, Laurent Pinchart, Kieran Bingham, dri-devel,
linux-renesas-soc, devicetree, Geert Uytterhoeven, Simon Horman,
Chris Paterson, Fabrizio Castro
Document the RZ/G2N (R8A774B1) SoC in the R-Car DU bindings.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
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 c97dfac..17cb277 100644
--- a/Documentation/devicetree/bindings/display/renesas,du.txt
+++ b/Documentation/devicetree/bindings/display/renesas,du.txt
@@ -8,6 +8,7 @@ Required Properties:
- "renesas,du-r8a7745" for R8A7745 (RZ/G1E) compatible DU
- "renesas,du-r8a77470" for R8A77470 (RZ/G1C) compatible DU
- "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-r8a7779" for R8A7779 (R-Car H1) compatible DU
- "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
@@ -60,6 +61,7 @@ corresponding to each DU output.
R8A7745 (RZ/G1E) DPAD 0 DPAD 1 - -
R8A77470 (RZ/G1C) DPAD 0 DPAD 1 LVDS 0 -
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 -
R8A7779 (R-Car H1) DPAD 0 DPAD 1 - -
R8A7790 (R-Car H2) DPAD 0 LVDS 0 LVDS 1 -
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/4] drm: rcar-du: Add R8A774B1 support
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
2019-09-30 9:15 ` [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings Biju Das
@ 2019-09-30 9:15 ` Biju Das
2019-09-30 9:15 ` [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings Biju Das
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Biju Das @ 2019-09-30 9:15 UTC (permalink / raw)
To: David Airlie, Daniel Vetter
Cc: Biju Das, Laurent Pinchart, Kieran Bingham, dri-devel,
linux-renesas-soc, devicetree, Geert Uytterhoeven, Simon Horman,
Chris Paterson, Fabrizio Castro
Add support for the R8A774B1 DU (which is very similar to the R8A77965 DU
except that it lacks TCON and CMM); it has one RGB output, one LVDS output
and one HDMI output.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 6df37c2..3b6bad2 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -131,6 +131,35 @@ static const struct rcar_du_device_info rcar_du_r8a774a1_info = {
.dpll_mask = BIT(1),
};
+static const struct rcar_du_device_info rcar_du_r8a774b1_info = {
+ .gen = 3,
+ .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
+ | RCAR_DU_FEATURE_VSP1_SOURCE
+ | RCAR_DU_FEATURE_INTERLACED
+ | RCAR_DU_FEATURE_TVM_SYNC,
+ .channels_mask = BIT(3) | BIT(1) | BIT(0),
+ .routes = {
+ /*
+ * R8A774B1 has one RGB output, one LVDS output and one HDMI
+ * output.
+ */
+ [RCAR_DU_OUTPUT_DPAD0] = {
+ .possible_crtcs = BIT(2),
+ .port = 0,
+ },
+ [RCAR_DU_OUTPUT_HDMI0] = {
+ .possible_crtcs = BIT(1),
+ .port = 1,
+ },
+ [RCAR_DU_OUTPUT_LVDS0] = {
+ .possible_crtcs = BIT(0),
+ .port = 2,
+ },
+ },
+ .num_lvds = 1,
+ .dpll_mask = BIT(1),
+};
+
static const struct rcar_du_device_info rcar_du_r8a774c0_info = {
.gen = 3,
.features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
@@ -416,6 +445,7 @@ static const struct of_device_id rcar_du_of_table[] = {
{ .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },
{ .compatible = "renesas,du-r8a77470", .data = &rzg1_du_r8a77470_info },
{ .compatible = "renesas,du-r8a774a1", .data = &rcar_du_r8a774a1_info },
+ { .compatible = "renesas,du-r8a774b1", .data = &rcar_du_r8a774b1_info },
{ .compatible = "renesas,du-r8a774c0", .data = &rcar_du_r8a774c0_info },
{ .compatible = "renesas,du-r8a7779", .data = &rcar_du_r8a7779_info },
{ .compatible = "renesas,du-r8a7790", .data = &rcar_du_r8a7790_info },
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
2019-09-30 9:15 ` [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings Biju Das
2019-09-30 9:15 ` [PATCH 2/4] drm: rcar-du: Add R8A774B1 support Biju Das
@ 2019-09-30 9:15 ` Biju Das
2019-10-15 18:56 ` Rob Herring
2019-09-30 9:15 ` [PATCH 4/4] drm: rcar-du: lvds: Add r8a774b1 support Biju Das
` (2 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Biju Das @ 2019-09-30 9:15 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Rob Herring, Mark Rutland
Cc: Biju Das, Laurent Pinchart, Kieran Bingham, dri-devel,
linux-renesas-soc, devicetree, Geert Uytterhoeven, Simon Horman,
Chris Paterson, Fabrizio Castro
Document the RZ/G2N (R8A774B1) LVDS bindings.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt
index c6a196d..c62ce24 100644
--- a/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt
+++ b/Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt
@@ -10,6 +10,7 @@ Required properties:
- "renesas,r8a7743-lvds" for R8A7743 (RZ/G1M) compatible LVDS encoders
- "renesas,r8a7744-lvds" for R8A7744 (RZ/G1N) compatible LVDS encoders
- "renesas,r8a774a1-lvds" for R8A774A1 (RZ/G2M) compatible LVDS encoders
+ - "renesas,r8a774b1-lvds" for R8A774B1 (RZ/G2N) compatible LVDS encoders
- "renesas,r8a774c0-lvds" for R8A774C0 (RZ/G2E) compatible LVDS encoders
- "renesas,r8a7790-lvds" for R8A7790 (R-Car H2) compatible LVDS encoders
- "renesas,r8a7791-lvds" for R8A7791 (R-Car M2-W) compatible LVDS encoders
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/4] drm: rcar-du: lvds: Add r8a774b1 support
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
` (2 preceding siblings ...)
2019-09-30 9:15 ` [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings Biju Das
@ 2019-09-30 9:15 ` Biju Das
2019-10-04 6:30 ` [PATCH 0/4] Add RZ/G2N DU support Biju Das
2019-10-04 7:02 ` Laurent Pinchart
5 siblings, 0 replies; 9+ messages in thread
From: Biju Das @ 2019-09-30 9:15 UTC (permalink / raw)
To: David Airlie, Daniel Vetter
Cc: Biju Das, Laurent Pinchart, Kieran Bingham, dri-devel,
linux-renesas-soc, devicetree, Geert Uytterhoeven, Simon Horman,
Chris Paterson, Fabrizio Castro
The LVDS encoders on RZ/G2N SoC is similar to R-Car M3-N. Add support for
RZ/G2N (R8A774B1) SoC to the LVDS encoder driver.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c
index 082d02c..3c24a6d 100644
--- a/drivers/gpu/drm/rcar-du/rcar_lvds.c
+++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c
@@ -929,6 +929,7 @@ static const struct of_device_id rcar_lvds_of_table[] = {
{ .compatible = "renesas,r8a7743-lvds", .data = &rcar_lvds_gen2_info },
{ .compatible = "renesas,r8a7744-lvds", .data = &rcar_lvds_gen2_info },
{ .compatible = "renesas,r8a774a1-lvds", .data = &rcar_lvds_gen3_info },
+ { .compatible = "renesas,r8a774b1-lvds", .data = &rcar_lvds_gen3_info },
{ .compatible = "renesas,r8a774c0-lvds", .data = &rcar_lvds_r8a77990_info },
{ .compatible = "renesas,r8a7790-lvds", .data = &rcar_lvds_r8a7790_info },
{ .compatible = "renesas,r8a7791-lvds", .data = &rcar_lvds_gen2_info },
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* RE: [PATCH 0/4] Add RZ/G2N DU support
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
` (3 preceding siblings ...)
2019-09-30 9:15 ` [PATCH 4/4] drm: rcar-du: lvds: Add r8a774b1 support Biju Das
@ 2019-10-04 6:30 ` Biju Das
2019-10-04 7:02 ` Laurent Pinchart
5 siblings, 0 replies; 9+ messages in thread
From: Biju Das @ 2019-10-04 6:30 UTC (permalink / raw)
To: David Airlie, Daniel Vetter, Rob Herring, Mark Rutland
Cc: Laurent Pinchart, Kieran Bingham, dri-devel, linux-renesas-soc,
devicetree, Geert Uytterhoeven, Simon Horman, Chris Paterson,
Fabrizio Castro
Hi Laurent,
Are you happy with this patch? Please let me know.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=180271
regards,
Biju
> Subject: [PATCH 0/4] Add RZ/G2N DU support
>
> This patch series aims to add binding/driver support for R8A774B1(a.k.a
> RZ/G2N) DU (which is very similar to the R8A77965 DU); it has one RGB
> output, one LVDS output and one HDMI output.
>
> Biju Das (4):
> dt-bindings: display: renesas: du: Document the r8a774b1 bindings
> drm: rcar-du: Add R8A774B1 support
> dt-bindings: display: renesas: lvds: Document r8a774b1 bindings
> drm: rcar-du: lvds: Add r8a774b1 support
>
> .../bindings/display/bridge/renesas,lvds.txt | 1 +
> .../devicetree/bindings/display/renesas,du.txt | 2 ++
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 30
> ++++++++++++++++++++++
> drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 +
> 4 files changed, 34 insertions(+)
>
> --
> 2.7.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/4] Add RZ/G2N DU support
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
` (4 preceding siblings ...)
2019-10-04 6:30 ` [PATCH 0/4] Add RZ/G2N DU support Biju Das
@ 2019-10-04 7:02 ` Laurent Pinchart
5 siblings, 0 replies; 9+ messages in thread
From: Laurent Pinchart @ 2019-10-04 7:02 UTC (permalink / raw)
To: Biju Das
Cc: David Airlie, Daniel Vetter, Rob Herring, Mark Rutland,
Kieran Bingham, dri-devel, linux-renesas-soc, devicetree,
Geert Uytterhoeven, Simon Horman, Chris Paterson,
Fabrizio Castro
Hi Biju,
Thank you for the patches;
On Mon, Sep 30, 2019 at 10:15:01AM +0100, Biju Das wrote:
> This patch series aims to add binding/driver support for
> R8A774B1(a.k.a RZ/G2N) DU (which is very similar to the R8A77965 DU);
> it has one RGB output, one LVDS output and one HDMI output.
>
> Biju Das (4):
> dt-bindings: display: renesas: du: Document the r8a774b1 bindings
> drm: rcar-du: Add R8A774B1 support
> dt-bindings: display: renesas: lvds: Document r8a774b1 bindings
> drm: rcar-du: lvds: Add r8a774b1 support
For the whole series,
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
and applied to my tree.
> .../bindings/display/bridge/renesas,lvds.txt | 1 +
> .../devicetree/bindings/display/renesas,du.txt | 2 ++
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 30 ++++++++++++++++++++++
> drivers/gpu/drm/rcar-du/rcar_lvds.c | 1 +
> 4 files changed, 34 insertions(+)
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings
2019-09-30 9:15 ` [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings Biju Das
@ 2019-10-15 18:56 ` Rob Herring
0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2019-10-15 18:56 UTC (permalink / raw)
To: Biju Das
Cc: David Airlie, Daniel Vetter, Mark Rutland, Biju Das,
Laurent Pinchart, Kieran Bingham, dri-devel, linux-renesas-soc,
devicetree, Geert Uytterhoeven, Simon Horman, Chris Paterson,
Fabrizio Castro
On Mon, 30 Sep 2019 10:15:02 +0100, Biju Das wrote:
> Document the RZ/G2N (R8A774B1) SoC in the R-Car DU bindings.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> ---
> Documentation/devicetree/bindings/display/renesas,du.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings
2019-09-30 9:15 ` [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings Biju Das
@ 2019-10-15 18:56 ` Rob Herring
0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2019-10-15 18:56 UTC (permalink / raw)
To: Biju Das
Cc: David Airlie, Daniel Vetter, Mark Rutland, Biju Das,
Laurent Pinchart, Kieran Bingham, dri-devel, linux-renesas-soc,
devicetree, Geert Uytterhoeven, Simon Horman, Chris Paterson,
Fabrizio Castro
On Mon, 30 Sep 2019 10:15:04 +0100, Biju Das wrote:
> Document the RZ/G2N (R8A774B1) LVDS bindings.
>
> Signed-off-by: Biju Das <biju.das@bp.renesas.com>
> ---
> Documentation/devicetree/bindings/display/bridge/renesas,lvds.txt | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-10-15 18:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 9:15 [PATCH 0/4] Add RZ/G2N DU support Biju Das
2019-09-30 9:15 ` [PATCH 1/4] dt-bindings: display: renesas: du: Document the r8a774b1 bindings Biju Das
2019-10-15 18:56 ` Rob Herring
2019-09-30 9:15 ` [PATCH 2/4] drm: rcar-du: Add R8A774B1 support Biju Das
2019-09-30 9:15 ` [PATCH 3/4] dt-bindings: display: renesas: lvds: Document r8a774b1 bindings Biju Das
2019-10-15 18:56 ` Rob Herring
2019-09-30 9:15 ` [PATCH 4/4] drm: rcar-du: lvds: Add r8a774b1 support Biju Das
2019-10-04 6:30 ` [PATCH 0/4] Add RZ/G2N DU support Biju Das
2019-10-04 7:02 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).