Re: [PATCH v6 03/17] dts: mpc512x: add clock related device tree specs

2013-12-07 Thread Anatolij Gustschin
On Sat, 30 Nov 2013 23:51:23 +0100
Gerhard Sittig  wrote:

> this addresses the clock driver aka provider's side of clocks
> - introduce a 'clocks' subtree with an 'osc' node for the crystal
>   or oscillator SoC input (fixed frequency)
> - the 'clock@f00' clock-control-module node references the 'osc' for
>   its input, and is another provider for all the clocks which the
>   CCM component manages
> - prepare for future references to clocks from peripheral nodes
>   by means of the <&clks ID> syntax and symbolic ID names which a
>   header file provides
> - provide default values with 33MHz oscillator frequency in the
>   common include (the 66MHz IPS bus already was there), and add
>   override values for the ifm AC14xx board which deviates from
>   the reference design (25MHz xtal, 80MHz IPS bus)
> 
> Cc: Rob Herring 
> Cc: Pawel Moll 
> Cc: Mark Rutland 
> Cc: Stephen Warren 
> Cc: Ian Campbell 
> Cc: linux-arm-ker...@lists.infradead.org
> Cc: devicet...@vger.kernel.org
> Reviewed-by: Mike Turquette  # for v3, before &osc
> Signed-off-by: Gerhard Sittig 
> ---
>  arch/powerpc/boot/dts/ac14xx.dts   |7 +++
>  arch/powerpc/boot/dts/mpc5121.dtsi |   18 +-
>  2 files changed, 24 insertions(+), 1 deletion(-)

applied to next. Thanks!

Anatolij
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


[PATCH v6 03/17] dts: mpc512x: add clock related device tree specs

2013-11-30 Thread Gerhard Sittig
this addresses the clock driver aka provider's side of clocks
- introduce a 'clocks' subtree with an 'osc' node for the crystal
  or oscillator SoC input (fixed frequency)
- the 'clock@f00' clock-control-module node references the 'osc' for
  its input, and is another provider for all the clocks which the
  CCM component manages
- prepare for future references to clocks from peripheral nodes
  by means of the <&clks ID> syntax and symbolic ID names which a
  header file provides
- provide default values with 33MHz oscillator frequency in the
  common include (the 66MHz IPS bus already was there), and add
  override values for the ifm AC14xx board which deviates from
  the reference design (25MHz xtal, 80MHz IPS bus)

Cc: Rob Herring 
Cc: Pawel Moll 
Cc: Mark Rutland 
Cc: Stephen Warren 
Cc: Ian Campbell 
Cc: linux-arm-ker...@lists.infradead.org
Cc: devicet...@vger.kernel.org
Reviewed-by: Mike Turquette  # for v3, before &osc
Signed-off-by: Gerhard Sittig 
---
 arch/powerpc/boot/dts/ac14xx.dts   |7 +++
 arch/powerpc/boot/dts/mpc5121.dtsi |   18 +-
 2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/boot/dts/ac14xx.dts b/arch/powerpc/boot/dts/ac14xx.dts
index a543c4088cba..a1b883730b31 100644
--- a/arch/powerpc/boot/dts/ac14xx.dts
+++ b/arch/powerpc/boot/dts/ac14xx.dts
@@ -139,7 +139,14 @@
};
};
 
+   clocks {
+   osc {
+   clock-frequency = <2500>;
+   };
+   };
+
soc@8000 {
+   bus-frequency = <8000>; /* 80 MHz ips bus */
 
clock@f00 {
compatible = "fsl,mpc5121rev2-clock", 
"fsl,mpc5121-clock";
diff --git a/arch/powerpc/boot/dts/mpc5121.dtsi 
b/arch/powerpc/boot/dts/mpc5121.dtsi
index bd14c00e5146..9bfcb7558197 100644
--- a/arch/powerpc/boot/dts/mpc5121.dtsi
+++ b/arch/powerpc/boot/dts/mpc5121.dtsi
@@ -9,6 +9,8 @@
  * option) any later version.
  */
 
+#include 
+
 /dts-v1/;
 
 / {
@@ -73,6 +75,17 @@
ranges = <0x0 0x0 0xfc00 0x0400>;
};
 
+   clocks {
+   #address-cells = <1>;
+   #size-cells = <0>;
+
+   osc: osc {
+   compatible = "fixed-clock";
+   #clock-cells = <0>;
+   clock-frequency = <3300>;
+   };
+   };
+
soc@8000 {
compatible = "fsl,mpc5121-immr";
#address-cells = <1>;
@@ -118,9 +131,12 @@
};
 
/* Clock control */
-   clock@f00 {
+   clks: clock@f00 {
compatible = "fsl,mpc5121-clock";
reg = <0xf00 0x100>;
+   #clock-cells = <1>;
+   clocks = <&osc>;
+   clock-names = "osc";
};
 
/* Power Management Controller */
-- 
1.7.10.4

___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev