diff mbox series

[v5] arm64: dts: renesas: r9a07g043u11-smarc: Enable DU

Message ID 20240826101648.176647-1-biju.das.jz@bp.renesas.com (mailing list archive)
State Mainlined
Commit cc49fcd0bc2db23489a87f6fa17119a76b70ec6b
Delegated to: Geert Uytterhoeven
Headers show
Series [v5] arm64: dts: renesas: r9a07g043u11-smarc: Enable DU | expand

Commit Message

Biju Das Aug. 26, 2024, 10:16 a.m. UTC
Enable DU and link with the HDMI add-on board connected with
the parallel connector on RZ/G2UL SMARC EV by using Device
Tree overlay.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
v4->v5:
 * Created Overlay for ADV 7513 transmiiter connected to DU
v3->v4:
 * Restored ports property in du node and port@0 for DPI interface.
v2->v3:
 * Replaced ports->port in du node as it support only DPI output.
v1->v2:
 * No change.
---
 arch/arm64/boot/dts/renesas/Makefile          |  3 +
 .../r9a07g043u11-smarc-du-adv7513.dtso        | 62 +++++++++++++++
 .../boot/dts/renesas/rz-smarc-du-adv7513.dtsi | 75 +++++++++++++++++++
 3 files changed, 140 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
 create mode 100644 arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi

Comments

Biju Das Aug. 26, 2024, 3:19 p.m. UTC | #1
Hi Geert,

> -----Original Message-----
> From: Biju Das <biju.das.jz@bp.renesas.com>
> Sent: Monday, August 26, 2024 11:17 AM
> Subject: [PATCH v5] arm64: dts: renesas: r9a07g043u11-smarc: Enable DU
> 
> Enable DU and link with the HDMI add-on board connected with the parallel connector on RZ/G2UL SMARC
> EV by using Device Tree overlay.

Oops Typo EV->EVK. Shall I resend the patch, please let me know.

Cheers,
Biju

> 
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> ---
> v4->v5:
>  * Created Overlay for ADV 7513 transmiiter connected to DU
> v3->v4:
>  * Restored ports property in du node and port@0 for DPI interface.
> v2->v3:
>  * Replaced ports->port in du node as it support only DPI output.
> v1->v2:
>  * No change.
> ---
>  arch/arm64/boot/dts/renesas/Makefile          |  3 +
>  .../r9a07g043u11-smarc-du-adv7513.dtso        | 62 +++++++++++++++
>  .../boot/dts/renesas/rz-smarc-du-adv7513.dtsi | 75 +++++++++++++++++++
>  3 files changed, 140 insertions(+)
>  create mode 100644 arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
>  create mode 100644 arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi
> 
> diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile
> index fbd214a1a638..fdf597e019d7 100644
> --- a/arch/arm64/boot/dts/renesas/Makefile
> +++ b/arch/arm64/boot/dts/renesas/Makefile
> @@ -112,9 +112,12 @@ dtb-$(CONFIG_ARCH_R8A77965) += r8a779m5-salvator-xs-panel-aa104xd12.dtb
> 
>  dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc.dtb
>  dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-cru-csi-ov5645.dtbo
> +dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-du-adv7513.dtbo
>  dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043-smarc-pmod.dtbo  r9a07g043u11-smarc-cru-csi-ov5645-dtbs :=
> r9a07g043u11-smarc.dtb r9a07g043u11-smarc-cru-csi-ov5645.dtbo
>  dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-cru-csi-ov5645.dtb
> +r9a07g043u11-smarc-du-adv7513-dtbs := r9a07g043u11-smarc.dtb
> +r9a07g043u11-smarc-du-adv7513.dtbo
> +dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-du-adv7513.dtb
>  r9a07g043u11-smarc-pmod-dtbs := r9a07g043u11-smarc.dtb r9a07g043-smarc-pmod.dtbo
>  dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-pmod.dtb
> 
> diff --git a/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
> b/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
> new file mode 100644
> index 000000000000..ecd43a671000
> --- /dev/null
> +++ b/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
> @@ -0,0 +1,62 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Device Tree overlay for the RZ/G2UL SMARC EVK with ADV7513
> +transmitter
> + * connected to DU enabled.
> + *
> + * Copyright (C) 2024 Renesas Electronics Corp.
> + */
> +
> +/dts-v1/;
> +/plugin/;
> +
> +#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
> +
> +#define ADV7513_PARENT_I2C i2c1
> +#include "rz-smarc-du-adv7513.dtsi"
> +
> +&pinctrl {
> +	du_pins: du {
> +		data {
> +			pinmux = <RZG2L_PORT_PINMUX(11, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(13, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(13, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(13, 4, 6)>,
> +				 <RZG2L_PORT_PINMUX(13, 3, 6)>,
> +				 <RZG2L_PORT_PINMUX(12, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(13, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(14, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(14, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(14, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(16, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(15, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(16, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(15, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(15, 3, 6)>,
> +				 <RZG2L_PORT_PINMUX(18, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(15, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(17, 0, 6)>,
> +				 <RZG2L_PORT_PINMUX(17, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(17, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(18, 1, 6)>,
> +				 <RZG2L_PORT_PINMUX(18, 2, 6)>,
> +				 <RZG2L_PORT_PINMUX(17, 3, 6)>,
> +				 <RZG2L_PORT_PINMUX(18, 3, 6)>;
> +			drive-strength = <2>;
> +		};
> +
> +		sync {
> +			pinmux = <RZG2L_PORT_PINMUX(11, 0, 6)>, /* HSYNC */
> +				 <RZG2L_PORT_PINMUX(12, 0, 6)>; /* VSYNC */
> +			drive-strength = <2>;
> +		};
> +
> +		de {
> +			pinmux = <RZG2L_PORT_PINMUX(11, 1, 6)>; /* DE */
> +			drive-strength = <2>;
> +		};
> +
> +		clk {
> +			pinmux = <RZG2L_PORT_PINMUX(11, 3, 6)>; /* CLK */
> +		};
> +	};
> +};
> diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi b/arch/arm64/boot/dts/renesas/rz-
> smarc-du-adv7513.dtsi
> new file mode 100644
> index 000000000000..a10314c77f54
> --- /dev/null
> +++ b/arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi
> @@ -0,0 +1,75 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/*
> + * Common Device Tree for the RZ/G2UL SMARC EVK (and alike EVKs) with
> + * ADV7513 transmitter connected to DU enabled.
> + *
> + * Copyright (C) 2024 Renesas Electronics Corp.
> + */
> +
> +&{/} {
> +	hdmi-out {
> +		compatible = "hdmi-connector";
> +		type = "d";
> +
> +		port {
> +			hdmi_con_out: endpoint {
> +				remote-endpoint = <&adv7513_out>;
> +			};
> +		};
> +	};
> +};
> +
> +&du {
> +	pinctrl-0 = <&du_pins>;
> +	pinctrl-names = "default";
> +	status = "okay";
> +
> +	ports {
> +		port@0 {
> +			du_out_rgb: endpoint {
> +				remote-endpoint = <&adv7513_in>;
> +			};
> +		};
> +	};
> +};
> +
> +&ADV7513_PARENT_I2C {
> +	#address-cells = <1>;
> +	#size-cells = <0>;
> +
> +	adv7513: adv7513@39 {
> +		compatible = "adi,adv7513";
> +		reg = <0x39>;
> +
> +		adi,input-depth = <8>;
> +		adi,input-colorspace = "rgb";
> +		adi,input-clock = "1x";
> +
> +		avdd-supply = <&reg_1p8v>;
> +		dvdd-supply = <&reg_1p8v>;
> +		pvdd-supply = <&reg_1p8v>;
> +		dvdd-3v-supply = <&reg_3p3v>;
> +		bgvdd-supply = <&reg_1p8v>;
> +
> +		ports {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +
> +			port@0 {
> +				reg = <0>;
> +
> +				adv7513_in: endpoint {
> +					remote-endpoint = <&du_out_rgb>;
> +				};
> +			};
> +
> +			port@1 {
> +				reg = <1>;
> +
> +				adv7513_out: endpoint {
> +					remote-endpoint = <&hdmi_con_out>;
> +				};
> +			};
> +		};
> +	};
> +};
> --
> 2.43.0
Geert Uytterhoeven Aug. 27, 2024, 7:38 a.m. UTC | #2
On Mon, Aug 26, 2024 at 5:19 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> > -----Original Message-----
> > From: Biju Das <biju.das.jz@bp.renesas.com>
> > Enable DU and link with the HDMI add-on board connected with the parallel connector on RZ/G2UL SMARC
> > EV by using Device Tree overlay.
>
> Oops Typo EV->EVK. Shall I resend the patch, please let me know.
>
> Cheers,
> Biju
>
> >
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > ---
> > v4->v5:
> >  * Created Overlay for ADV 7513 transmiiter connected to DU

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.12 with the typo fixed.

Gr{oetje,eeting}s,

                        Geert
Biju Das Aug. 27, 2024, 11:34 a.m. UTC | #3
> -----Original Message-----
> From: Geert Uytterhoeven <geert@linux-m68k.org>
> Sent: Tuesday, August 27, 2024 8:39 AM
> Subject: Re: [PATCH v5] arm64: dts: renesas: r9a07g043u11-smarc: Enable DU
> 
> On Mon, Aug 26, 2024 at 5:19 PM Biju Das <biju.das.jz@bp.renesas.com> wrote:
> > > -----Original Message-----
> > > From: Biju Das <biju.das.jz@bp.renesas.com> Enable DU and link with
> > > the HDMI add-on board connected with the parallel connector on
> > > RZ/G2UL SMARC EV by using Device Tree overlay.
> >
> > Oops Typo EV->EVK. Shall I resend the patch, please let me know.
> >
> > Cheers,
> > Biju
> >
> > >
> > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
> > > ---
> > > v4->v5:
> > >  * Created Overlay for ADV 7513 transmiiter connected to DU
> 
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> i.e. will queue in renesas-devel for v6.12
> with the typo fixed.

Thank you.

Cheers,
Biju
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile
index fbd214a1a638..fdf597e019d7 100644
--- a/arch/arm64/boot/dts/renesas/Makefile
+++ b/arch/arm64/boot/dts/renesas/Makefile
@@ -112,9 +112,12 @@  dtb-$(CONFIG_ARCH_R8A77965) += r8a779m5-salvator-xs-panel-aa104xd12.dtb
 
 dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc.dtb
 dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-cru-csi-ov5645.dtbo
+dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-du-adv7513.dtbo
 dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043-smarc-pmod.dtbo
 r9a07g043u11-smarc-cru-csi-ov5645-dtbs := r9a07g043u11-smarc.dtb r9a07g043u11-smarc-cru-csi-ov5645.dtbo
 dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-cru-csi-ov5645.dtb
+r9a07g043u11-smarc-du-adv7513-dtbs := r9a07g043u11-smarc.dtb r9a07g043u11-smarc-du-adv7513.dtbo
+dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-du-adv7513.dtb
 r9a07g043u11-smarc-pmod-dtbs := r9a07g043u11-smarc.dtb r9a07g043-smarc-pmod.dtbo
 dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043u11-smarc-pmod.dtb
 
diff --git a/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso b/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
new file mode 100644
index 000000000000..ecd43a671000
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r9a07g043u11-smarc-du-adv7513.dtso
@@ -0,0 +1,62 @@ 
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree overlay for the RZ/G2UL SMARC EVK with ADV7513 transmitter
+ * connected to DU enabled.
+ *
+ * Copyright (C) 2024 Renesas Electronics Corp.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
+
+#define ADV7513_PARENT_I2C i2c1
+#include "rz-smarc-du-adv7513.dtsi"
+
+&pinctrl {
+	du_pins: du {
+		data {
+			pinmux = <RZG2L_PORT_PINMUX(11, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(13, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(13, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(13, 4, 6)>,
+				 <RZG2L_PORT_PINMUX(13, 3, 6)>,
+				 <RZG2L_PORT_PINMUX(12, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(13, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(14, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(14, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(14, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(16, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(15, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(16, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(15, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(15, 3, 6)>,
+				 <RZG2L_PORT_PINMUX(18, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(15, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(17, 0, 6)>,
+				 <RZG2L_PORT_PINMUX(17, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(17, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(18, 1, 6)>,
+				 <RZG2L_PORT_PINMUX(18, 2, 6)>,
+				 <RZG2L_PORT_PINMUX(17, 3, 6)>,
+				 <RZG2L_PORT_PINMUX(18, 3, 6)>;
+			drive-strength = <2>;
+		};
+
+		sync {
+			pinmux = <RZG2L_PORT_PINMUX(11, 0, 6)>, /* HSYNC */
+				 <RZG2L_PORT_PINMUX(12, 0, 6)>; /* VSYNC */
+			drive-strength = <2>;
+		};
+
+		de {
+			pinmux = <RZG2L_PORT_PINMUX(11, 1, 6)>; /* DE */
+			drive-strength = <2>;
+		};
+
+		clk {
+			pinmux = <RZG2L_PORT_PINMUX(11, 3, 6)>; /* CLK */
+		};
+	};
+};
diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi b/arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi
new file mode 100644
index 000000000000..a10314c77f54
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/rz-smarc-du-adv7513.dtsi
@@ -0,0 +1,75 @@ 
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Common Device Tree for the RZ/G2UL SMARC EVK (and alike EVKs) with
+ * ADV7513 transmitter connected to DU enabled.
+ *
+ * Copyright (C) 2024 Renesas Electronics Corp.
+ */
+
+&{/} {
+	hdmi-out {
+		compatible = "hdmi-connector";
+		type = "d";
+
+		port {
+			hdmi_con_out: endpoint {
+				remote-endpoint = <&adv7513_out>;
+			};
+		};
+	};
+};
+
+&du {
+	pinctrl-0 = <&du_pins>;
+	pinctrl-names = "default";
+	status = "okay";
+
+	ports {
+		port@0 {
+			du_out_rgb: endpoint {
+				remote-endpoint = <&adv7513_in>;
+			};
+		};
+	};
+};
+
+&ADV7513_PARENT_I2C {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	adv7513: adv7513@39 {
+		compatible = "adi,adv7513";
+		reg = <0x39>;
+
+		adi,input-depth = <8>;
+		adi,input-colorspace = "rgb";
+		adi,input-clock = "1x";
+
+		avdd-supply = <&reg_1p8v>;
+		dvdd-supply = <&reg_1p8v>;
+		pvdd-supply = <&reg_1p8v>;
+		dvdd-3v-supply = <&reg_3p3v>;
+		bgvdd-supply = <&reg_1p8v>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				adv7513_in: endpoint {
+					remote-endpoint = <&du_out_rgb>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+
+				adv7513_out: endpoint {
+					remote-endpoint = <&hdmi_con_out>;
+				};
+			};
+		};
+	};
+};