diff mbox series

[2/3] arm64: dts: renesas: r8a774a1: Add HDMI encoder instance

Message ID 1560871119-16570-3-git-send-email-fabrizio.castro@bp.renesas.com (mailing list archive)
State Superseded
Delegated to: Simon Horman
Headers show
Series Add HDMI support to HiHope RZ/G2M | expand

Commit Message

Fabrizio Castro June 18, 2019, 3:18 p.m. UTC
Add the HDMI encoder to the R8A774A1 DT in disabled state.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

---
This patch depends on:
https://patchwork.kernel.org/patch/10995149/

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

Comments

Laurent Pinchart June 19, 2019, 12:38 p.m. UTC | #1
Hi Fabrizio,

Thank you for the patch.

On Tue, Jun 18, 2019 at 04:18:38PM +0100, Fabrizio Castro wrote:
> Add the HDMI encoder to the R8A774A1 DT in disabled state.
> 
> Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> 
> ---
> This patch depends on:
> https://patchwork.kernel.org/patch/10995149/

Is that the correct one ? I don't see how CAN support is related.

In any case,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

>  arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 32 +++++++++++++++++++++++++++++++
>  1 file changed, 32 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> index d6dd4b6..a849ca7 100644
> --- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> @@ -2397,6 +2397,37 @@
>  			};
>  		};
>  
> +		hdmi0: hdmi@fead0000 {
> +			compatible = "renesas,r8a774a1-hdmi",
> +				     "renesas,rcar-gen3-hdmi";
> +			reg = <0 0xfead0000 0 0x10000>;
> +			interrupts = <GIC_SPI 389 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 729>,
> +				 <&cpg CPG_CORE R8A774A1_CLK_HDMI>;
> +			clock-names = "iahb", "isfr";
> +			power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>;
> +			resets = <&cpg 729>;
> +			status = "disabled";
> +
> +			ports {
> +				#address-cells = <1>;
> +				#size-cells = <0>;
> +				port@0 {
> +					reg = <0>;
> +					dw_hdmi0_in: endpoint {
> +						remote-endpoint = <&du_out_hdmi0>;
> +					};
> +				};
> +				port@1 {
> +					reg = <1>;
> +				};
> +				port@2 {
> +					/* HDMI sound */
> +					reg = <2>;
> +				};
> +			};
> +		};
> +
>  		du: display@feb00000 {
>  			compatible = "renesas,du-r8a774a1";
>  			reg = <0 0xfeb00000 0 0x70000>;
> @@ -2423,6 +2454,7 @@
>  				port@1 {
>  					reg = <1>;
>  					du_out_hdmi0: endpoint {
> +						remote-endpoint = <&dw_hdmi0_in>;
>  					};
>  				};
>  				port@2 {
Fabrizio Castro June 19, 2019, 12:42 p.m. UTC | #2
Hello Laurent,

Thank you for your feedback.

> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Sent: 19 June 2019 13:39
> Subject: Re: [PATCH 2/3] arm64: dts: renesas: r8a774a1: Add HDMI encoder instance
> 
> Hi Fabrizio,
> 
> Thank you for the patch.
> 
> On Tue, Jun 18, 2019 at 04:18:38PM +0100, Fabrizio Castro wrote:
> > Add the HDMI encoder to the R8A774A1 DT in disabled state.
> >
> > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> >
> > ---
> > This patch depends on:
> > https://patchwork.kernel.org/patch/10995149/
> 
> Is that the correct one ? I don't see how CAN support is related.

It's only to please git ;-)

Thank you for reviewing this.

Fab

> 
> In any case,
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> >  arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 32 +++++++++++++++++++++++++++++++
> >  1 file changed, 32 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> > index d6dd4b6..a849ca7 100644
> > --- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> > +++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
> > @@ -2397,6 +2397,37 @@
> >  			};
> >  		};
> >
> > +		hdmi0: hdmi@fead0000 {
> > +			compatible = "renesas,r8a774a1-hdmi",
> > +				     "renesas,rcar-gen3-hdmi";
> > +			reg = <0 0xfead0000 0 0x10000>;
> > +			interrupts = <GIC_SPI 389 IRQ_TYPE_LEVEL_HIGH>;
> > +			clocks = <&cpg CPG_MOD 729>,
> > +				 <&cpg CPG_CORE R8A774A1_CLK_HDMI>;
> > +			clock-names = "iahb", "isfr";
> > +			power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>;
> > +			resets = <&cpg 729>;
> > +			status = "disabled";
> > +
> > +			ports {
> > +				#address-cells = <1>;
> > +				#size-cells = <0>;
> > +				port@0 {
> > +					reg = <0>;
> > +					dw_hdmi0_in: endpoint {
> > +						remote-endpoint = <&du_out_hdmi0>;
> > +					};
> > +				};
> > +				port@1 {
> > +					reg = <1>;
> > +				};
> > +				port@2 {
> > +					/* HDMI sound */
> > +					reg = <2>;
> > +				};
> > +			};
> > +		};
> > +
> >  		du: display@feb00000 {
> >  			compatible = "renesas,du-r8a774a1";
> >  			reg = <0 0xfeb00000 0 0x70000>;
> > @@ -2423,6 +2454,7 @@
> >  				port@1 {
> >  					reg = <1>;
> >  					du_out_hdmi0: endpoint {
> > +						remote-endpoint = <&dw_hdmi0_in>;
> >  					};
> >  				};
> >  				port@2 {
> 
> --
> Regards,
> 
> Laurent Pinchart
Simon Horman June 19, 2019, 2:07 p.m. UTC | #3
On Wed, Jun 19, 2019 at 12:42:24PM +0000, Fabrizio Castro wrote:
> Hello Laurent,
> 
> Thank you for your feedback.
> 
> > From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Sent: 19 June 2019 13:39
> > Subject: Re: [PATCH 2/3] arm64: dts: renesas: r8a774a1: Add HDMI encoder instance
> > 
> > Hi Fabrizio,
> > 
> > Thank you for the patch.
> > 
> > On Tue, Jun 18, 2019 at 04:18:38PM +0100, Fabrizio Castro wrote:
> > > Add the HDMI encoder to the R8A774A1 DT in disabled state.
> > >
> > > Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
> > >
> > > ---
> > > This patch depends on:
> > > https://patchwork.kernel.org/patch/10995149/
> > 
> > Is that the correct one ? I don't see how CAN support is related.
> 
> It's only to please git ;-)
> 
> Thank you for reviewing this.
> 
> Fab
> 
> > 
> > In any case,
> > 
> > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Thanks, I have queued this up for inclusion in v5.3.
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
index d6dd4b6..a849ca7 100644
--- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
@@ -2397,6 +2397,37 @@ 
 			};
 		};
 
+		hdmi0: hdmi@fead0000 {
+			compatible = "renesas,r8a774a1-hdmi",
+				     "renesas,rcar-gen3-hdmi";
+			reg = <0 0xfead0000 0 0x10000>;
+			interrupts = <GIC_SPI 389 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 729>,
+				 <&cpg CPG_CORE R8A774A1_CLK_HDMI>;
+			clock-names = "iahb", "isfr";
+			power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>;
+			resets = <&cpg 729>;
+			status = "disabled";
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				port@0 {
+					reg = <0>;
+					dw_hdmi0_in: endpoint {
+						remote-endpoint = <&du_out_hdmi0>;
+					};
+				};
+				port@1 {
+					reg = <1>;
+				};
+				port@2 {
+					/* HDMI sound */
+					reg = <2>;
+				};
+			};
+		};
+
 		du: display@feb00000 {
 			compatible = "renesas,du-r8a774a1";
 			reg = <0 0xfeb00000 0 0x70000>;
@@ -2423,6 +2454,7 @@ 
 				port@1 {
 					reg = <1>;
 					du_out_hdmi0: endpoint {
+						remote-endpoint = <&dw_hdmi0_in>;
 					};
 				};
 				port@2 {