Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
@ 2017-01-12  1:51 Laurent Pinchart
  2017-01-12  1:56 ` Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Laurent Pinchart @ 2017-01-12  1:51 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Marek Vasut

The clocks are generated by an I2C-controlled programmable clock
generator.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
---
 arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 26 ++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

This patch depends on the clk-versaclock5 driver posted by Marek.

Changes since v1:

- Dropped the assigned-clocks properties

diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 2dc0887fc400..5a13ddc5b497 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -178,6 +178,12 @@
 		clock-frequency = <33000000>;
 	};
 
+	x23_clk: x23-clock {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <25000000>;
+	};
+
 	hdmi0-out {
 		compatible = "hdmi-connector";
 		label = "HDMI0 OUT";
@@ -271,10 +277,12 @@
 		 <&cpg CPG_MOD 722>,
 		 <&cpg CPG_MOD 721>,
 		 <&cpg CPG_MOD 727>,
+		 <&versaclock5 1>,
 		 <&x21_clk>,
-		 <&x22_clk>;
+		 <&x22_clk>,
+		 <&versaclock5 2>;
 	clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0",
-		      "dclkin.1", "dclkin.2";
+		      "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
 
 	ports {
 		port@0 {
@@ -460,6 +468,20 @@
 	};
 };
 
+&i2c4 {
+	status = "okay";
+
+	clock-frequency = <100000>;
+
+	versaclock5: clock-generator@6a {
+		compatible = "idt,5p49v5923";
+		reg = <0x6a>;
+		#clock-cells = <1>;
+		clocks = <&x23_clk>;
+		clock-names = "xin";
+	};
+};
+
 &rcar_sound {
 	pinctrl-0 = <&sound_pins &sound_clk_pins>;
 	pinctrl-names = "default";
-- 
Regards,

Laurent Pinchart

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

* Re: [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
  2017-01-12  1:51 [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks Laurent Pinchart
@ 2017-01-12  1:56 ` Marek Vasut
  2017-01-12  8:36 ` Geert Uytterhoeven
  2017-01-12  9:04 ` Simon Horman
  2 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2017-01-12  1:56 UTC (permalink / raw)
  To: Laurent Pinchart, linux-renesas-soc

On 01/12/2017 02:51 AM, Laurent Pinchart wrote:
> The clocks are generated by an I2C-controlled programmable clock
> generator.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Reviewed-by: Marek Vasut <marek.vasut@gmail.com>

> ---
>  arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 26 ++++++++++++++++++++--
>  1 file changed, 24 insertions(+), 2 deletions(-)
> 
> This patch depends on the clk-versaclock5 driver posted by Marek.
> 
> Changes since v1:
> 
> - Dropped the assigned-clocks properties
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> index 2dc0887fc400..5a13ddc5b497 100644
> --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> @@ -178,6 +178,12 @@
>  		clock-frequency = <33000000>;
>  	};
>  
> +	x23_clk: x23-clock {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +		clock-frequency = <25000000>;
> +	};
> +
>  	hdmi0-out {
>  		compatible = "hdmi-connector";
>  		label = "HDMI0 OUT";
> @@ -271,10 +277,12 @@
>  		 <&cpg CPG_MOD 722>,
>  		 <&cpg CPG_MOD 721>,
>  		 <&cpg CPG_MOD 727>,
> +		 <&versaclock5 1>,
>  		 <&x21_clk>,
> -		 <&x22_clk>;
> +		 <&x22_clk>,
> +		 <&versaclock5 2>;
>  	clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0",
> -		      "dclkin.1", "dclkin.2";
> +		      "dclkin.0", "dclkin.1", "dclkin.2", "dclkin.3";
>  
>  	ports {
>  		port@0 {
> @@ -460,6 +468,20 @@
>  	};
>  };
>  
> +&i2c4 {
> +	status = "okay";
> +
> +	clock-frequency = <100000>;
> +
> +	versaclock5: clock-generator@6a {
> +		compatible = "idt,5p49v5923";
> +		reg = <0x6a>;
> +		#clock-cells = <1>;
> +		clocks = <&x23_clk>;
> +		clock-names = "xin";
> +	};
> +};
> +
>  &rcar_sound {
>  	pinctrl-0 = <&sound_pins &sound_clk_pins>;
>  	pinctrl-names = "default";
> 


-- 
Best regards,
Marek Vasut

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

* Re: [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
  2017-01-12  1:51 [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks Laurent Pinchart
  2017-01-12  1:56 ` Marek Vasut
@ 2017-01-12  8:36 ` Geert Uytterhoeven
  2017-01-12  9:04 ` Simon Horman
  2 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2017-01-12  8:36 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Linux-Renesas, Marek Vasut

On Thu, Jan 12, 2017 at 2:51 AM, Laurent Pinchart
<laurent.pinchart+renesas@ideasonboard.com> wrote:
> The clocks are generated by an I2C-controlled programmable clock
> generator.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

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: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
  2017-01-12  1:51 [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks Laurent Pinchart
  2017-01-12  1:56 ` Marek Vasut
  2017-01-12  8:36 ` Geert Uytterhoeven
@ 2017-01-12  9:04 ` Simon Horman
  2017-01-12  9:23   ` Laurent Pinchart
  2 siblings, 1 reply; 6+ messages in thread
From: Simon Horman @ 2017-01-12  9:04 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: linux-renesas-soc, Marek Vasut

On Thu, Jan 12, 2017 at 03:51:21AM +0200, Laurent Pinchart wrote:
> The clocks are generated by an I2C-controlled programmable clock
> generator.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
>  arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 26 ++++++++++++++++++++--
>  1 file changed, 24 insertions(+), 2 deletions(-)
> 
> This patch depends on the clk-versaclock5 driver posted by Marek.

Can the patch be safely applied without the above driver present?

FWIW, this patch does not seem to apply cleanly on
renesas-next-20170110-v4.10-rc2.

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

* Re: [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
  2017-01-12  9:04 ` Simon Horman
@ 2017-01-12  9:23   ` Laurent Pinchart
  2017-01-12  9:41     ` Simon Horman
  0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2017-01-12  9:23 UTC (permalink / raw)
  To: Simon Horman; +Cc: Laurent Pinchart, linux-renesas-soc, Marek Vasut

Hi Simon,

On Thursday 12 Jan 2017 10:04:34 Simon Horman wrote:
> On Thu, Jan 12, 2017 at 03:51:21AM +0200, Laurent Pinchart wrote:
> > The clocks are generated by an I2C-controlled programmable clock
> > generator.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 26 +++++++++++++++--
> >  1 file changed, 24 insertions(+), 2 deletions(-)
> > 
> > This patch depends on the clk-versaclock5 driver posted by Marek.
> 
> Can the patch be safely applied without the above driver present?

It will result in DU probing being deferred forever, so I'd say no :-)

> FWIW, this patch does not seem to apply cleanly on
> renesas-next-20170110-v4.10-rc2.

I'll fix the conflicts and resubmit when the driver lands.

-- 
Regards,

Laurent Pinchart

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

* Re: [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks
  2017-01-12  9:23   ` Laurent Pinchart
@ 2017-01-12  9:41     ` Simon Horman
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Horman @ 2017-01-12  9:41 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: Laurent Pinchart, linux-renesas-soc, Marek Vasut

On Thu, Jan 12, 2017 at 11:23:57AM +0200, Laurent Pinchart wrote:
> Hi Simon,
> 
> On Thursday 12 Jan 2017 10:04:34 Simon Horman wrote:
> > On Thu, Jan 12, 2017 at 03:51:21AM +0200, Laurent Pinchart wrote:
> > > The clocks are generated by an I2C-controlled programmable clock
> > > generator.
> > > 
> > > Signed-off-by: Laurent Pinchart
> > > <laurent.pinchart+renesas@ideasonboard.com>
> > > ---
> > > 
> > >  arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 26 +++++++++++++++--
> > >  1 file changed, 24 insertions(+), 2 deletions(-)
> > > 
> > > This patch depends on the clk-versaclock5 driver posted by Marek.
> > 
> > Can the patch be safely applied without the above driver present?
> 
> It will result in DU probing being deferred forever, so I'd say no :-)

Agreed.

> > FWIW, this patch does not seem to apply cleanly on
> > renesas-next-20170110-v4.10-rc2.
> 
> I'll fix the conflicts and resubmit when the driver lands.

Thanks.

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

end of thread, other threads:[~2017-01-12  9:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-12  1:51 [PATCH v2] arm64: dts: r8a7795: salvator-x: Add DU0 and DU3 external dot clocks Laurent Pinchart
2017-01-12  1:56 ` Marek Vasut
2017-01-12  8:36 ` Geert Uytterhoeven
2017-01-12  9:04 ` Simon Horman
2017-01-12  9:23   ` Laurent Pinchart
2017-01-12  9:41     ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox