linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms
@ 2023-04-11 10:03 Biju Das
  2023-04-11 10:03 ` [PATCH v2 1/8] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, David Airlie, Daniel Vetter,
	Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, dri-devel, linux-kernel,
	devicetree, Prabhakar Mahadev Lad

This patch series aims to Enable DSI by linking with ADV7535 on SMARC EVK
based on RZ/G2{L, LC} and RZ/V2L platforms.

patch#1 and #2 depend upon the binding patch [1]
[1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230406171324.837247-1-biju.das.jz@bp.renesas.com/

patch #4 depend upon the binding patch [2]
[2] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230406171324.837247-2-biju.das.jz@bp.renesas.com/

Biju Das (8):
  arm64: dts: renesas: r9a07g044: Add fcpvd node
  arm64: dts: renesas: r9a07g054: Add fcpvd node
  arm64: dts: renesas: r9a07g044: Add vspd node
  arm64: dts: renesas: r9a07g054: Add vspd node
  arm64: dts: renesas: r9a07g044: Add DSI node
  arm64: dts: renesas: r9a07g054: Add DSI node
  arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535
  arm64: dts: renesas: rzg2lc-smarc: Link DSI with ADV7535

 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    | 53 +++++++++++++
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    | 54 +++++++++++++
 arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi  | 79 +++++++++++++++++++
 arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 79 +++++++++++++++++++
 4 files changed, 265 insertions(+)

-- 
2.25.1


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

* [PATCH v2 1/8] arm64: dts: renesas: r9a07g044: Add fcpvd node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 2/8] arm64: dts: renesas: r9a07g054: " Biju Das
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, David Airlie, Daniel Vetter,
	Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, dri-devel, linux-kernel,
	devicetree, Prabhakar Mahadev Lad

Add fcpvd node to RZ/G2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
---
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
index 487536696d90..e90c517077ab 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
@@ -618,6 +618,18 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		fcpvd: fcp@10880000 {
+			compatible = "renesas,r9a07g044-fcpvd",
+				     "renesas,fcpv";
+			reg = <0 0x10880000 0 0x10000>;
+			clocks = <&cpg CPG_MOD R9A07G044_LCDC_CLK_A>,
+				 <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>,
+				 <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>;
+			clock-names = "aclk", "pclk", "vclk";
+			power-domains = <&cpg>;
+			resets = <&cpg R9A07G044_LCDC_RESET_N>;
+		};
+
 		cpg: clock-controller@11010000 {
 			compatible = "renesas,r9a07g044-cpg";
 			reg = <0 0x11010000 0 0x10000>;
-- 
2.25.1


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

* [PATCH v2 2/8] arm64: dts: renesas: r9a07g054: Add fcpvd node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
  2023-04-11 10:03 ` [PATCH v2 1/8] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 3/8] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Add fcpvd node to RZ/V2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
 * Reorder the patch based on the module fcpvd, vspd and then DSI
   for both RZ/G2L and RZ/V2L.
---
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
index 304ade54425b..9001673a9e3c 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
@@ -623,6 +623,18 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		fcpvd: fcp@10880000 {
+			compatible = "renesas,r9a07g054-fcpvd",
+				     "renesas,fcpv";
+			reg = <0 0x10880000 0 0x10000>;
+			clocks = <&cpg CPG_MOD R9A07G054_LCDC_CLK_A>,
+				 <&cpg CPG_MOD R9A07G054_LCDC_CLK_P>,
+				 <&cpg CPG_MOD R9A07G054_LCDC_CLK_D>;
+			clock-names = "aclk", "pclk", "vclk";
+			power-domains = <&cpg>;
+			resets = <&cpg R9A07G054_LCDC_RESET_N>;
+		};
+
 		cpg: clock-controller@11010000 {
 			compatible = "renesas,r9a07g054-cpg";
 			reg = <0 0x11010000 0 0x10000>;
-- 
2.25.1


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

* [PATCH v2 3/8] arm64: dts: renesas: r9a07g044: Add vspd node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
  2023-04-11 10:03 ` [PATCH v2 1/8] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
  2023-04-11 10:03 ` [PATCH v2 2/8] arm64: dts: renesas: r9a07g054: " Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 4/8] arm64: dts: renesas: r9a07g054: " Biju Das
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Add vspd node to RZ/G2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
 * Reorder the patch based on the module fcpvd, vspd and then DSI
   for both RZ/G2L and RZ/V2L.
---
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
index e90c517077ab..7698752742df 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
@@ -618,6 +618,19 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		vspd: vsp@10870000 {
+			compatible = "renesas,r9a07g044-vsp2";
+			reg = <0 0x10870000 0 0x10000>;
+			interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD R9A07G044_LCDC_CLK_A>,
+				 <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>,
+				 <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>;
+			clock-names = "aclk", "pclk", "vclk";
+			power-domains = <&cpg>;
+			resets = <&cpg R9A07G044_LCDC_RESET_N>;
+			renesas,fcp = <&fcpvd>;
+		};
+
 		fcpvd: fcp@10880000 {
 			compatible = "renesas,r9a07g044-fcpvd",
 				     "renesas,fcpv";
-- 
2.25.1


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

* [PATCH v2 4/8] arm64: dts: renesas: r9a07g054: Add vspd node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
                   ` (2 preceding siblings ...)
  2023-04-11 10:03 ` [PATCH v2 3/8] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 5/8] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Add vspd node to RZ/V2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
 * Reorder the patch based on the module fcpvd, vspd and then DSI
   for both RZ/G2L and RZ/V2L.
---
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
index 9001673a9e3c..cc085be7a0d8 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
@@ -623,6 +623,20 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		vspd: vsp@10870000 {
+			compatible = "renesas,r9a07g054-vsp2",
+				     "renesas,r9a07g044-vsp2";
+			reg = <0 0x10870000 0 0x10000>;
+			interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD R9A07G054_LCDC_CLK_A>,
+				 <&cpg CPG_MOD R9A07G054_LCDC_CLK_P>,
+				 <&cpg CPG_MOD R9A07G054_LCDC_CLK_D>;
+			clock-names = "aclk", "pclk", "vclk";
+			power-domains = <&cpg>;
+			resets = <&cpg R9A07G054_LCDC_RESET_N>;
+			renesas,fcp = <&fcpvd>;
+		};
+
 		fcpvd: fcp@10880000 {
 			compatible = "renesas,r9a07g054-fcpvd",
 				     "renesas,fcpv";
-- 
2.25.1


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

* [PATCH v2 5/8] arm64: dts: renesas: r9a07g044: Add DSI node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
                   ` (3 preceding siblings ...)
  2023-04-11 10:03 ` [PATCH v2 4/8] arm64: dts: renesas: r9a07g054: " Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 6/8] arm64: dts: renesas: r9a07g054: " Biju Das
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Add DSI node to RZ/G2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
 * Reorder the patch based on the module fcpvd, vspd and then DSI
   for both RZ/G2L and RZ/V2L.
---
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
index 7698752742df..23bd28dd4d95 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi
@@ -618,6 +618,34 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		dsi: dsi@10850000 {
+			compatible = "renesas,r9a07g044-mipi-dsi",
+				     "renesas,rzg2l-mipi-dsi";
+			reg = <0 0x10850000 0 0x20000>;
+			interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "seq0", "seq1", "vin1", "rcv",
+					  "ferr", "ppi", "debug";
+			clocks = <&cpg CPG_MOD R9A07G044_MIPI_DSI_PLLCLK>,
+				 <&cpg CPG_MOD R9A07G044_MIPI_DSI_SYSCLK>,
+				 <&cpg CPG_MOD R9A07G044_MIPI_DSI_ACLK>,
+				 <&cpg CPG_MOD R9A07G044_MIPI_DSI_PCLK>,
+				 <&cpg CPG_MOD R9A07G044_MIPI_DSI_VCLK>,
+				 <&cpg CPG_MOD R9A07G044_MIPI_DSI_LPCLK>;
+			clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
+			resets = <&cpg R9A07G044_MIPI_DSI_CMN_RSTB>,
+				 <&cpg R9A07G044_MIPI_DSI_ARESET_N>,
+				 <&cpg R9A07G044_MIPI_DSI_PRESET_N>;
+			reset-names = "rst", "arst", "prst";
+			power-domains = <&cpg>;
+			status = "disabled";
+		};
+
 		vspd: vsp@10870000 {
 			compatible = "renesas,r9a07g044-vsp2";
 			reg = <0 0x10870000 0 0x10000>;
-- 
2.25.1


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

* [PATCH v2 6/8] arm64: dts: renesas: r9a07g054: Add DSI node
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
                   ` (4 preceding siblings ...)
  2023-04-11 10:03 ` [PATCH v2 5/8] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-11 10:03 ` [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
  2023-04-11 10:03 ` [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
  7 siblings, 0 replies; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Add DSI node to RZ/V2L SoC DTSI.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1->v2:
 * Added Rb tag from Geert.
 * Reorder the patch based on the module fcpvd, vspd and then DSI
   for both RZ/G2L and RZ/V2L.
---
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
index cc085be7a0d8..244934ce5991 100644
--- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
+++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi
@@ -623,6 +623,34 @@ sbc: spi@10060000 {
 			status = "disabled";
 		};
 
+		dsi: dsi@10850000 {
+			compatible = "renesas,r9a07g054-mipi-dsi",
+				     "renesas,rzg2l-mipi-dsi";
+			reg = <0 0x10850000 0 0x20000>;
+			interrupts = <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "seq0", "seq1", "vin1", "rcv",
+					  "ferr", "ppi", "debug";
+			clocks = <&cpg CPG_MOD R9A07G054_MIPI_DSI_PLLCLK>,
+				 <&cpg CPG_MOD R9A07G054_MIPI_DSI_SYSCLK>,
+				 <&cpg CPG_MOD R9A07G054_MIPI_DSI_ACLK>,
+				 <&cpg CPG_MOD R9A07G054_MIPI_DSI_PCLK>,
+				 <&cpg CPG_MOD R9A07G054_MIPI_DSI_VCLK>,
+				 <&cpg CPG_MOD R9A07G054_MIPI_DSI_LPCLK>;
+			clock-names = "pllclk", "sysclk", "aclk", "pclk", "vclk", "lpclk";
+			resets = <&cpg R9A07G054_MIPI_DSI_CMN_RSTB>,
+				 <&cpg R9A07G054_MIPI_DSI_ARESET_N>,
+				 <&cpg R9A07G054_MIPI_DSI_PRESET_N>;
+			reset-names = "rst", "arst", "prst";
+			power-domains = <&cpg>;
+			status = "disabled";
+		};
+
 		vspd: vsp@10870000 {
 			compatible = "renesas,r9a07g054-vsp2",
 				     "renesas,r9a07g044-vsp2";
-- 
2.25.1


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

* [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
                   ` (5 preceding siblings ...)
  2023-04-11 10:03 ` [PATCH v2 6/8] arm64: dts: renesas: r9a07g054: " Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-20 13:27   ` Geert Uytterhoeven
  2023-04-11 10:03 ` [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
  7 siblings, 1 reply; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2L SMARC EVK.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
v1->v2:
 * Linked DSI with ADV7535.
 * Added CEC clock and clock names
 * Added hotplug detection interrupt.
 * Removed pinctrl properties as it is defined in common.
 * Removed Rb tag from Geert as there are too many changes.
---
 arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi | 79 ++++++++++++++++++++
 1 file changed, 79 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi
index e180a955b6ac..2a158a954b2f 100644
--- a/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi
@@ -16,12 +16,91 @@ aliases {
 		serial1 = &scif2;
 		i2c3 = &i2c3;
 	};
+
+	osc1: cec-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <12000000>;
+	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "d";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&adv7535_out>;
+			};
+		};
+	};
 };
 
 &cpu_dai {
 	sound-dai = <&ssi0>;
 };
 
+&dsi {
+	status = "okay";
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@0 {
+			reg = <0>;
+			dsi0_in: endpoint {
+			};
+		};
+
+		port@1 {
+			reg = <1>;
+			dsi0_out: endpoint {
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&adv7535_in>;
+			};
+		};
+	};
+};
+
+&i2c1 {
+	adv7535: hdmi@3d {
+		compatible = "adi,adv7535";
+		reg = <0x3d>;
+
+		interrupt-parent = <&pinctrl>;
+		interrupts = <RZG2L_GPIO(2, 1) IRQ_TYPE_EDGE_FALLING>;
+		clocks = <&osc1>;
+		clock-names = "cec";
+		avdd-supply = <&reg_1p8v>;
+		dvdd-supply = <&reg_1p8v>;
+		pvdd-supply = <&reg_1p8v>;
+		a2vdd-supply = <&reg_1p8v>;
+		v3p3-supply = <&reg_3p3v>;
+		v1p2-supply = <&reg_1p8v>;
+
+		adi,dsi-lanes = <4>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7535_in: endpoint {
+					remote-endpoint = <&dsi0_out>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7535_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+};
+
 &i2c3 {
 	pinctrl-0 = <&i2c3_pins>;
 	pinctrl-names = "default";
-- 
2.25.1


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

* [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: Link DSI with ADV7535
  2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
                   ` (6 preceding siblings ...)
  2023-04-11 10:03 ` [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
@ 2023-04-11 10:03 ` Biju Das
  2023-04-20 13:29   ` Geert Uytterhoeven
  7 siblings, 1 reply; 11+ messages in thread
From: Biju Das @ 2023-04-11 10:03 UTC (permalink / raw)
  To: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski
  Cc: Biju Das, Geert Uytterhoeven, Laurent Pinchart, Magnus Damm,
	linux-renesas-soc, linux-media, linux-kernel, devicetree,
	Prabhakar Mahadev Lad

Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2LC SMARC EVK.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
v2:
 * New patch
---
 arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi | 79 +++++++++++++++++++
 1 file changed, 79 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
index b6bd27196d88..6818fd49b2be 100644
--- a/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
+++ b/arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi
@@ -17,6 +17,23 @@ aliases {
 		serial1 = &scif1;
 		i2c2 = &i2c2;
 	};
+
+	osc1: cec-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <12000000>;
+	};
+
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "d";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&adv7535_out>;
+			};
+		};
+	};
 };
 
 #if (SW_SCIF_CAN || SW_RSPI_CAN)
@@ -36,6 +53,68 @@ &cpu_dai {
 	sound-dai = <&ssi0>;
 };
 
+&dsi {
+	status = "okay";
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@0 {
+			reg = <0>;
+			dsi0_in: endpoint {
+			};
+		};
+
+		port@1 {
+			reg = <1>;
+			dsi0_out: endpoint {
+				data-lanes = <1 2 3 4>;
+				remote-endpoint = <&adv7535_in>;
+			};
+		};
+	};
+};
+
+&i2c1 {
+	adv7535: hdmi@3d {
+		compatible = "adi,adv7535";
+		reg = <0x3d>;
+
+		interrupt-parent = <&pinctrl>;
+		interrupts = <RZG2L_GPIO(43, 1) IRQ_TYPE_EDGE_FALLING>;
+		clocks = <&osc1>;
+		clock-names = "cec";
+		avdd-supply = <&reg_1p8v>;
+		dvdd-supply = <&reg_1p8v>;
+		pvdd-supply = <&reg_1p8v>;
+		a2vdd-supply = <&reg_1p8v>;
+		v3p3-supply = <&reg_3p3v>;
+		v1p2-supply = <&reg_1p8v>;
+
+		adi,dsi-lanes = <4>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				adv7535_in: endpoint {
+					remote-endpoint = <&dsi0_out>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+				adv7535_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+};
+
 &i2c2 {
 	pinctrl-0 = <&i2c2_pins>;
 	pinctrl-names = "default";
-- 
2.25.1


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

* Re: [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535
  2023-04-11 10:03 ` [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
@ 2023-04-20 13:27   ` Geert Uytterhoeven
  0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2023-04-20 13:27 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski,
	Laurent Pinchart, Magnus Damm, linux-renesas-soc, linux-media,
	linux-kernel, devicetree, Prabhakar Mahadev Lad

On Tue, Apr 11, 2023 at 12:04 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2L SMARC EVK.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v1->v2:
>  * Linked DSI with ADV7535.
>  * Added CEC clock and clock names
>  * Added hotplug detection interrupt.
>  * Removed pinctrl properties as it is defined in common.
>  * Removed Rb tag from Geert as there are too many changes.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.5, after patches 1-6.

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] 11+ messages in thread

* Re: [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: Link DSI with ADV7535
  2023-04-11 10:03 ` [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
@ 2023-04-20 13:29   ` Geert Uytterhoeven
  0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2023-04-20 13:29 UTC (permalink / raw)
  To: Biju Das
  Cc: Rob Herring, Mauro Carvalho Chehab, Krzysztof Kozlowski,
	Laurent Pinchart, Magnus Damm, linux-renesas-soc, linux-media,
	linux-kernel, devicetree, Prabhakar Mahadev Lad

On Tue, Apr 11, 2023 at 12:04 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> Enable DSI and ADV7535 and link DSI with ADV7535 on RZ/G2LC SMARC EVK.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v2:
>  * New patch

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.5.

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] 11+ messages in thread

end of thread, other threads:[~2023-04-20 13:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-11 10:03 [PATCH v2 0/8] Enable DSI and ADV7535 on RZ/G2{L, LC} and RZ/V2L platforms Biju Das
2023-04-11 10:03 ` [PATCH v2 1/8] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
2023-04-11 10:03 ` [PATCH v2 2/8] arm64: dts: renesas: r9a07g054: " Biju Das
2023-04-11 10:03 ` [PATCH v2 3/8] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
2023-04-11 10:03 ` [PATCH v2 4/8] arm64: dts: renesas: r9a07g054: " Biju Das
2023-04-11 10:03 ` [PATCH v2 5/8] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
2023-04-11 10:03 ` [PATCH v2 6/8] arm64: dts: renesas: r9a07g054: " Biju Das
2023-04-11 10:03 ` [PATCH v2 7/8] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
2023-04-20 13:27   ` Geert Uytterhoeven
2023-04-11 10:03 ` [PATCH v2 8/8] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-04-20 13:29   ` Geert Uytterhoeven

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).