diff mbox

[v2,2/7] ARM: shmobile: r8a7790: Add default PCIe bus clock

Message ID 1402484753-7471-3-git-send-email-phil.edworthy@renesas.com (mailing list archive)
State Superseded
Headers show

Commit Message

Phil Edworthy June 11, 2014, 11:05 a.m. UTC
This patch adds a default PCIe bus clock node.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
v2:
 - Use a default PCIe bus clock in the device's dtsi

 arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Laurent Pinchart June 12, 2014, 3:35 p.m. UTC | #1
Hi Phil,

Thank you for the patch.

On Wednesday 11 June 2014 12:05:48 Phil Edworthy wrote:
> This patch adds a default PCIe bus clock node.
> 
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> ---
> v2:
>  - Use a default PCIe bus clock in the device's dtsi
> 
>  arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
> index 7eb882c..13b4e63 100644
> --- a/arch/arm/boot/dts/r8a7790.dtsi
> +++ b/arch/arm/boot/dts/r8a7790.dtsi
> @@ -487,6 +487,14 @@
>  			clock-output-names = "extal";
>  		};
> 
> +		/* External PCIe clock - can be overridden by the board */
> +		pcie_bus_clk: pcie_bus_clk {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +			clock-frequency = <100000000>;
> +			clock-output-names = "pcie_bus";

As the clock isn't present on all r8a7790 boards, how about making it disabled 
(status = "disabled") by default ?

> +		};
> +
>  		/*
>  		 * The external audio clocks are configured as 0 Hz fixed frequency
> clocks by * default. Boards that provide audio clocks should override them.
Phil Edworthy June 12, 2014, 4:23 p.m. UTC | #2
Hi Laurent,

On 12 June 2014 16:35, Laurent wrote:
> On Wednesday 11 June 2014 12:05:48 Phil Edworthy wrote:
> > This patch adds a default PCIe bus clock node.
> >
> > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > ---
> > v2:
> >  - Use a default PCIe bus clock in the device's dtsi
> >
> >  arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/r8a7790.dtsi
> b/arch/arm/boot/dts/r8a7790.dtsi
> > index 7eb882c..13b4e63 100644
> > --- a/arch/arm/boot/dts/r8a7790.dtsi
> > +++ b/arch/arm/boot/dts/r8a7790.dtsi
> > @@ -487,6 +487,14 @@
> >  			clock-output-names = "extal";
> >  		};
> >
> > +		/* External PCIe clock - can be overridden by the board */
> > +		pcie_bus_clk: pcie_bus_clk {
> > +			compatible = "fixed-clock";
> > +			#clock-cells = <0>;
> > +			clock-frequency = <100000000>;
> > +			clock-output-names = "pcie_bus";
> 
> As the clock isn't present on all r8a7790 boards, how about making it disabled
> (status = "disabled") by default ?

Ah, right. I hadn't considered that the clock could also be disabled. Ok...

> > +		};
> > +
> >  		/*
> >  		 * The external audio clocks are configured as 0 Hz fixed
> frequency
> > clocks by * default. Boards that provide audio clocks should override them.

Thanks
Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman June 13, 2014, 7:45 a.m. UTC | #3
On Thu, Jun 12, 2014 at 04:23:59PM +0000, Phil Edworthy wrote:
> Hi Laurent,
> 
> On 12 June 2014 16:35, Laurent wrote:
> > On Wednesday 11 June 2014 12:05:48 Phil Edworthy wrote:
> > > This patch adds a default PCIe bus clock node.
> > >
> > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > > ---
> > > v2:
> > >  - Use a default PCIe bus clock in the device's dtsi
> > >
> > >  arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
> > >  1 file changed, 8 insertions(+)
> > >
> > > diff --git a/arch/arm/boot/dts/r8a7790.dtsi
> > b/arch/arm/boot/dts/r8a7790.dtsi
> > > index 7eb882c..13b4e63 100644
> > > --- a/arch/arm/boot/dts/r8a7790.dtsi
> > > +++ b/arch/arm/boot/dts/r8a7790.dtsi
> > > @@ -487,6 +487,14 @@
> > >  			clock-output-names = "extal";
> > >  		};
> > >
> > > +		/* External PCIe clock - can be overridden by the board */
> > > +		pcie_bus_clk: pcie_bus_clk {
> > > +			compatible = "fixed-clock";
> > > +			#clock-cells = <0>;
> > > +			clock-frequency = <100000000>;
> > > +			clock-output-names = "pcie_bus";
> > 
> > As the clock isn't present on all r8a7790 boards, how about making it disabled
> > (status = "disabled") by default ?
> 
> Ah, right. I hadn't considered that the clock could also be disabled. Ok...

Hi Phil,

Am I right in thinking that this change is the only
issue outstanding for the entire series?

If so, could you repost the entire series with that change?

> 
> > > +		};
> > > +
> > >  		/*
> > >  		 * The external audio clocks are configured as 0 Hz fixed
> > frequency
> > > clocks by * default. Boards that provide audio clocks should override them.
> 
> Thanks
> Phil
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Phil Edworthy June 13, 2014, 7:48 a.m. UTC | #4
Hi Simon,

On 13 June 2014 08:45, Simon wrote:
> On Thu, Jun 12, 2014 at 04:23:59PM +0000, Phil Edworthy wrote:
> > Hi Laurent,
> >
> > On 12 June 2014 16:35, Laurent wrote:
> > > On Wednesday 11 June 2014 12:05:48 Phil Edworthy wrote:
> > > > This patch adds a default PCIe bus clock node.
> > > >
> > > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > > > ---
> > > > v2:
> > > >  - Use a default PCIe bus clock in the device's dtsi
> > > >
> > > >  arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
> > > >  1 file changed, 8 insertions(+)
> > > >
> > > > diff --git a/arch/arm/boot/dts/r8a7790.dtsi
> > > b/arch/arm/boot/dts/r8a7790.dtsi
> > > > index 7eb882c..13b4e63 100644
> > > > --- a/arch/arm/boot/dts/r8a7790.dtsi
> > > > +++ b/arch/arm/boot/dts/r8a7790.dtsi
> > > > @@ -487,6 +487,14 @@
> > > >  			clock-output-names = "extal";
> > > >  		};
> > > >
> > > > +		/* External PCIe clock - can be overridden by the board */
> > > > +		pcie_bus_clk: pcie_bus_clk {
> > > > +			compatible = "fixed-clock";
> > > > +			#clock-cells = <0>;
> > > > +			clock-frequency = <100000000>;
> > > > +			clock-output-names = "pcie_bus";
> > >
> > > As the clock isn't present on all r8a7790 boards, how about making it
> disabled
> > > (status = "disabled") by default ?
> >
> > Ah, right. I hadn't considered that the clock could also be disabled. Ok...
> 
> Hi Phil,
> 
> Am I right in thinking that this change is the only
> issue outstanding for the entire series?
> 
> If so, could you repost the entire series with that change?

Sure, I was planning on doing that this morning, after I've finished some other work!

Cheers
Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Simon Horman June 13, 2014, 7:52 a.m. UTC | #5
On Fri, Jun 13, 2014 at 07:48:58AM +0000, Phil Edworthy wrote:
> Hi Simon,
> 
> On 13 June 2014 08:45, Simon wrote:
> > On Thu, Jun 12, 2014 at 04:23:59PM +0000, Phil Edworthy wrote:
> > > Hi Laurent,
> > >
> > > On 12 June 2014 16:35, Laurent wrote:
> > > > On Wednesday 11 June 2014 12:05:48 Phil Edworthy wrote:
> > > > > This patch adds a default PCIe bus clock node.
> > > > >
> > > > > Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
> > > > > ---
> > > > > v2:
> > > > >  - Use a default PCIe bus clock in the device's dtsi
> > > > >
> > > > >  arch/arm/boot/dts/r8a7790.dtsi | 8 ++++++++
> > > > >  1 file changed, 8 insertions(+)
> > > > >
> > > > > diff --git a/arch/arm/boot/dts/r8a7790.dtsi
> > > > b/arch/arm/boot/dts/r8a7790.dtsi
> > > > > index 7eb882c..13b4e63 100644
> > > > > --- a/arch/arm/boot/dts/r8a7790.dtsi
> > > > > +++ b/arch/arm/boot/dts/r8a7790.dtsi
> > > > > @@ -487,6 +487,14 @@
> > > > >  			clock-output-names = "extal";
> > > > >  		};
> > > > >
> > > > > +		/* External PCIe clock - can be overridden by the board */
> > > > > +		pcie_bus_clk: pcie_bus_clk {
> > > > > +			compatible = "fixed-clock";
> > > > > +			#clock-cells = <0>;
> > > > > +			clock-frequency = <100000000>;
> > > > > +			clock-output-names = "pcie_bus";
> > > >
> > > > As the clock isn't present on all r8a7790 boards, how about making it
> > disabled
> > > > (status = "disabled") by default ?
> > >
> > > Ah, right. I hadn't considered that the clock could also be disabled. Ok...
> > 
> > Hi Phil,
> > 
> > Am I right in thinking that this change is the only
> > issue outstanding for the entire series?
> > 
> > If so, could you repost the entire series with that change?
> 
> Sure, I was planning on doing that this morning, after I've finished some other work!

Great, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index 7eb882c..13b4e63 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/arch/arm/boot/dts/r8a7790.dtsi
@@ -487,6 +487,14 @@ 
 			clock-output-names = "extal";
 		};
 
+		/* External PCIe clock - can be overridden by the board */
+		pcie_bus_clk: pcie_bus_clk {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency = <100000000>;
+			clock-output-names = "pcie_bus";
+		};
+
 		/*
 		 * The external audio clocks are configured as 0 Hz fixed frequency clocks by
 		 * default. Boards that provide audio clocks should override them.