All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: renesas: r8a77961: Add lvsd0 device node
@ 2021-12-13 21:18 Nikita Yushchenko
  2021-12-14 13:35 ` Sergey Shtylyov
  0 siblings, 1 reply; 6+ messages in thread
From: Nikita Yushchenko @ 2021-12-13 21:18 UTC (permalink / raw)
  To: Geert Uytterhoeven, Magnus Damm, Rob Herring
  Cc: linux-renesas-soc, devicetree, linux-kernel, Nikita Yushchenko

Add the missing lvds0 node for the R-Car M3-W+ SoC.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 27 +++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
index 86d59e7e1a87..d324dfd0d1f7 100644
--- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
@@ -2718,6 +2718,33 @@ du_out_hdmi0: endpoint {
 				port@2 {
 					reg = <2>;
 					du_out_lvds0: endpoint {
+						remote-endpoint = <&lvds0_in>;
+					};
+				};
+			};
+		};
+
+		lvds0: lvds@feb90000 {
+			compatible = "renesas,r8a7796-lvds";
+			reg = <0 0xfeb90000 0 0x14>;
+			clocks = <&cpg CPG_MOD 727>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 727>;
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					lvds0_in: endpoint {
+						remote-endpoint = <&du_out_lvds0>;
+					};
+				};
+				port@1 {
+					reg = <1>;
+					lvds0_out: endpoint {
 					};
 				};
 			};
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] arm64: dts: renesas: r8a77961: Add lvsd0 device node
  2021-12-13 21:18 [PATCH] arm64: dts: renesas: r8a77961: Add lvsd0 device node Nikita Yushchenko
@ 2021-12-14 13:35 ` Sergey Shtylyov
  2021-12-14 14:06   ` [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 " Nikita Yushchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Shtylyov @ 2021-12-14 13:35 UTC (permalink / raw)
  To: Nikita Yushchenko, Geert Uytterhoeven, Magnus Damm, Rob Herring
  Cc: linux-renesas-soc, devicetree, linux-kernel

Hello!

On 14.12.2021 0:18, Nikita Yushchenko wrote:

> Add the missing lvds0 node for the R-Car M3-W+ SoC.

    Typo in the subject (lvsd0)...

> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
[...]

MBR, Sergey


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 device node
  2021-12-14 13:35 ` Sergey Shtylyov
@ 2021-12-14 14:06   ` Nikita Yushchenko
  2021-12-20 14:21     ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: Nikita Yushchenko @ 2021-12-14 14:06 UTC (permalink / raw)
  To: Geert Uytterhoeven, Magnus Damm, Rob Herring, Sergey Shtylyov
  Cc: linux-renesas-soc, devicetree, linux-kernel, Nikita Yushchenko

Add the missing lvds0 node for the R-Car M3-W+ SoC.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
---
Changes in v2:
- fix typo in subject

 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 27 +++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
index 86d59e7e1a87..d324dfd0d1f7 100644
--- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
@@ -2718,6 +2718,33 @@ du_out_hdmi0: endpoint {
 				port@2 {
 					reg = <2>;
 					du_out_lvds0: endpoint {
+						remote-endpoint = <&lvds0_in>;
+					};
+				};
+			};
+		};
+
+		lvds0: lvds@feb90000 {
+			compatible = "renesas,r8a7796-lvds";
+			reg = <0 0xfeb90000 0 0x14>;
+			clocks = <&cpg CPG_MOD 727>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 727>;
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					lvds0_in: endpoint {
+						remote-endpoint = <&du_out_lvds0>;
+					};
+				};
+				port@1 {
+					reg = <1>;
+					lvds0_out: endpoint {
 					};
 				};
 			};
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 device node
  2021-12-14 14:06   ` [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 " Nikita Yushchenko
@ 2021-12-20 14:21     ` Geert Uytterhoeven
  2021-12-24  5:00       ` Nikita Yushchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2021-12-20 14:21 UTC (permalink / raw)
  To: Nikita Yushchenko
  Cc: Magnus Damm, Rob Herring, Sergey Shtylyov, Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux Kernel Mailing List

Hi Nikita,

On Tue, Dec 14, 2021 at 3:06 PM Nikita Yushchenko
<nikita.yoush@cogentembedded.com> wrote:
> Add the missing lvds0 node for the R-Car M3-W+ SoC.
>
> Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>

Thanks for your patch!

> --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> @@ -2718,6 +2718,33 @@ du_out_hdmi0: endpoint {
>                                 port@2 {
>                                         reg = <2>;
>                                         du_out_lvds0: endpoint {
> +                                               remote-endpoint = <&lvds0_in>;
> +                                       };
> +                               };
> +                       };
> +               };
> +
> +               lvds0: lvds@feb90000 {
> +                       compatible = "renesas,r8a7796-lvds";

This should be "renesas,r8a77961-lvds".
To handle that, both the DT bindings[1] and the driver[2] should
be updated.

[1] Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
[2] drivers/gpu/drm/rcar-du/rcar_lvds.c

> +                       reg = <0 0xfeb90000 0 0x14>;
> +                       clocks = <&cpg CPG_MOD 727>;
> +                       power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
> +                       resets = <&cpg 727>;
> +                       status = "disabled";
> +
> +                       ports {
> +                               #address-cells = <1>;
> +                               #size-cells = <0>;
> +
> +                               port@0 {
> +                                       reg = <0>;
> +                                       lvds0_in: endpoint {
> +                                               remote-endpoint = <&du_out_lvds0>;
> +                                       };
> +                               };
> +                               port@1 {
> +                                       reg = <1>;
> +                                       lvds0_out: endpoint {
>                                         };
>                                 };
>                         };

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 device node
  2021-12-20 14:21     ` Geert Uytterhoeven
@ 2021-12-24  5:00       ` Nikita Yushchenko
  2021-12-24  9:56         ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: Nikita Yushchenko @ 2021-12-24  5:00 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Magnus Damm, Rob Herring, Sergey Shtylyov, Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux Kernel Mailing List

>> +               lvds0: lvds@feb90000 {
>> +                       compatible = "renesas,r8a7796-lvds";
> 
> This should be "renesas,r8a77961-lvds".
> To handle that, both the DT bindings[1] and the driver[2] should
> be updated.
> 
> [1] Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
> [2] drivers/gpu/drm/rcar-du/rcar_lvds.c

Ok, will redo that way, although I don't really understand what for to have different compatible strings 
for exactly same IP inside different chips.

Also note that arch/arm64/boot/dts/renesas/r8a77951.dtsi currently has renesas,r8a7795-lvds

Nikita

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 device node
  2021-12-24  5:00       ` Nikita Yushchenko
@ 2021-12-24  9:56         ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2021-12-24  9:56 UTC (permalink / raw)
  To: Nikita Yushchenko
  Cc: Magnus Damm, Rob Herring, Sergey Shtylyov, Linux-Renesas,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Linux Kernel Mailing List

Hi Nikita,

On Fri, Dec 24, 2021 at 6:00 AM Nikita Yushchenko
<nikita.yoush@cogentembedded.com> wrote:
> >> +               lvds0: lvds@feb90000 {
> >> +                       compatible = "renesas,r8a7796-lvds";
> >
> > This should be "renesas,r8a77961-lvds".
> > To handle that, both the DT bindings[1] and the driver[2] should
> > be updated.
> >
> > [1] Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
> > [2] drivers/gpu/drm/rcar-du/rcar_lvds.c
>
> Ok, will redo that way, although I don't really understand what for to have different compatible strings

Thank you!

> for exactly same IP inside different chips.

Ca. 30% of the "presumed identical" IP blocks in R-Car Gen3 SoCs
turned out not to be that identical...

> Also note that arch/arm64/boot/dts/renesas/r8a77951.dtsi currently has renesas,r8a7795-lvds

That was an early judgment error, which we regret making.
Initially, R-Car H3 ES2.0 (r8a77951) was assumed to be a slightly
improved variant of R-Car H3 ES1.x (r8a77950), while it turned out
to be a completely different SoC.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-24  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 21:18 [PATCH] arm64: dts: renesas: r8a77961: Add lvsd0 device node Nikita Yushchenko
2021-12-14 13:35 ` Sergey Shtylyov
2021-12-14 14:06   ` [PATCH v2] arm64: dts: renesas: r8a77961: Add lvds0 " Nikita Yushchenko
2021-12-20 14:21     ` Geert Uytterhoeven
2021-12-24  5:00       ` Nikita Yushchenko
2021-12-24  9:56         ` Geert Uytterhoeven

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.