Re: [PATCHv5 06/31] ARM: dts: omap4 clock data

2013-08-19 Thread Tero Kristo

On 08/03/2013 05:16 PM, Tomasz Figa wrote:

On Friday 02 of August 2013 19:25:25 Tero Kristo wrote:

This patch creates a unique node for each clock in the OMAP4 power,
reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly
different clock tree which is taken into account in the data.

Signed-off-by: Tero Kristo t-kri...@ti.com
---
  arch/arm/boot/dts/omap443x-clocks.dtsi |   17 +
  arch/arm/boot/dts/omap443x.dtsi|8 +
  arch/arm/boot/dts/omap4460.dtsi|8 +
  arch/arm/boot/dts/omap446x-clocks.dtsi |   27 +
  arch/arm/boot/dts/omap44xx-clocks.dtsi | 1648
 5 files changed, 1708 insertions(+)
  create mode 100644 arch/arm/boot/dts/omap443x-clocks.dtsi
  create mode 100644 arch/arm/boot/dts/omap446x-clocks.dtsi
  create mode 100644 arch/arm/boot/dts/omap44xx-clocks.dtsi

diff --git a/arch/arm/boot/dts/omap443x-clocks.dtsi
b/arch/arm/boot/dts/omap443x-clocks.dtsi new file mode 100644
index 000..2bd82b2
--- /dev/null
+++ b/arch/arm/boot/dts/omap443x-clocks.dtsi
@@ -0,0 +1,17 @@
+/*
+ * Device Tree Source for OMAP443x clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as +
* published by the Free Software Foundation.
+ */
+
+bandgap_fclk: bandgap_fclk@4a307888 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = sys_32k_ck;
+   bit-shift = 8;
+   reg = 0x4a307888 0x4;
+};
diff --git a/arch/arm/boot/dts/omap443x.dtsi
b/arch/arm/boot/dts/omap443x.dtsi index bcf455e..dfd648c 100644
--- a/arch/arm/boot/dts/omap443x.dtsi
+++ b/arch/arm/boot/dts/omap443x.dtsi
@@ -30,4 +30,12 @@
   0x4a00232C 0x4;
compatible = ti,omap4430-bandgap;
};
+
+   clocks {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges;
+   /include/ omap44xx-clocks.dtsi
+   /include/ omap443x-clocks.dtsi
+   };
  };
diff --git a/arch/arm/boot/dts/omap4460.dtsi
b/arch/arm/boot/dts/omap4460.dtsi index c2f0f39..d9d00b2 100644
--- a/arch/arm/boot/dts/omap4460.dtsi
+++ b/arch/arm/boot/dts/omap4460.dtsi
@@ -38,4 +38,12 @@
interrupts = 0 126 IRQ_TYPE_LEVEL_HIGH; /* talert */
gpios = gpio3 22 0; /* tshut */
};
+
+   clocks {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges;
+   /include/ omap44xx-clocks.dtsi
+   /include/ omap446x-clocks.dtsi
+   };
  };
diff --git a/arch/arm/boot/dts/omap446x-clocks.dtsi
b/arch/arm/boot/dts/omap446x-clocks.dtsi new file mode 100644
index 000..86d0805
--- /dev/null
+++ b/arch/arm/boot/dts/omap446x-clocks.dtsi
@@ -0,0 +1,27 @@
+/*
+ * Device Tree Source for OMAP446x clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as +
* published by the Free Software Foundation.
+ */
+
+div_ts_ck: div_ts_ck@4a307888 {
+   #clock-cells = 0;
+   compatible = divider-clock;
+   clocks = l4_wkup_clk_mux_ck;
+   bit-shift = 24;
+   reg = 0x4a307888 0x4;
+   table =  8 0 ,  16 1 ,  32 2 ;
+   bit-mask = 0x3;
+};
+
+bandgap_ts_fclk: bandgap_ts_fclk@4a307888 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = div_ts_ck;
+   bit-shift = 8;
+   reg = 0x4a307888 0x4;
+};
diff --git a/arch/arm/boot/dts/omap44xx-clocks.dtsi
b/arch/arm/boot/dts/omap44xx-clocks.dtsi new file mode 100644
index 000..23f623c
--- /dev/null
+++ b/arch/arm/boot/dts/omap44xx-clocks.dtsi
@@ -0,0 +1,1648 @@
+/*
+ * Device Tree Source for OMAP4 clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as +
* published by the Free Software Foundation.
+ */
+
+extalt_clkin_ck: extalt_clkin_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 5900;
+};
+
+pad_clks_src_ck: pad_clks_src_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 1200;
+};
+
+pad_clks_ck: pad_clks_ck@4a004108 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = pad_clks_src_ck;
+   bit-shift = 8;
+   reg = 0x4a004108 0x4;
+};
+
+pad_slimbus_core_clks_ck: pad_slimbus_core_clks_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 1200;
+};
+
+secure_32k_clk_src_ck: secure_32k_clk_src_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 32768;
+};
+
+slimbus_src_clk: slimbus_src_clk {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 

Re: [PATCHv5 06/31] ARM: dts: omap4 clock data

2013-08-03 Thread Tomasz Figa
On Friday 02 of August 2013 19:25:25 Tero Kristo wrote:
 This patch creates a unique node for each clock in the OMAP4 power,
 reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly
 different clock tree which is taken into account in the data.
 
 Signed-off-by: Tero Kristo t-kri...@ti.com
 ---
  arch/arm/boot/dts/omap443x-clocks.dtsi |   17 +
  arch/arm/boot/dts/omap443x.dtsi|8 +
  arch/arm/boot/dts/omap4460.dtsi|8 +
  arch/arm/boot/dts/omap446x-clocks.dtsi |   27 +
  arch/arm/boot/dts/omap44xx-clocks.dtsi | 1648
  5 files changed, 1708 insertions(+)
  create mode 100644 arch/arm/boot/dts/omap443x-clocks.dtsi
  create mode 100644 arch/arm/boot/dts/omap446x-clocks.dtsi
  create mode 100644 arch/arm/boot/dts/omap44xx-clocks.dtsi
 
 diff --git a/arch/arm/boot/dts/omap443x-clocks.dtsi
 b/arch/arm/boot/dts/omap443x-clocks.dtsi new file mode 100644
 index 000..2bd82b2
 --- /dev/null
 +++ b/arch/arm/boot/dts/omap443x-clocks.dtsi
 @@ -0,0 +1,17 @@
 +/*
 + * Device Tree Source for OMAP443x clock data
 + *
 + * Copyright (C) 2013 Texas Instruments, Inc.
 + *
 + * This program is free software; you can redistribute it and/or modify
 + * it under the terms of the GNU General Public License version 2 as +
 * published by the Free Software Foundation.
 + */
 +
 +bandgap_fclk: bandgap_fclk@4a307888 {
 + #clock-cells = 0;
 + compatible = gate-clock;
 + clocks = sys_32k_ck;
 + bit-shift = 8;
 + reg = 0x4a307888 0x4;
 +};
 diff --git a/arch/arm/boot/dts/omap443x.dtsi
 b/arch/arm/boot/dts/omap443x.dtsi index bcf455e..dfd648c 100644
 --- a/arch/arm/boot/dts/omap443x.dtsi
 +++ b/arch/arm/boot/dts/omap443x.dtsi
 @@ -30,4 +30,12 @@
  0x4a00232C 0x4;
   compatible = ti,omap4430-bandgap;
   };
 +
 + clocks {
 + #address-cells = 1;
 + #size-cells = 1;
 + ranges;
 + /include/ omap44xx-clocks.dtsi
 + /include/ omap443x-clocks.dtsi
 + };
  };
 diff --git a/arch/arm/boot/dts/omap4460.dtsi
 b/arch/arm/boot/dts/omap4460.dtsi index c2f0f39..d9d00b2 100644
 --- a/arch/arm/boot/dts/omap4460.dtsi
 +++ b/arch/arm/boot/dts/omap4460.dtsi
 @@ -38,4 +38,12 @@
   interrupts = 0 126 IRQ_TYPE_LEVEL_HIGH; /* talert */
   gpios = gpio3 22 0; /* tshut */
   };
 +
 + clocks {
 + #address-cells = 1;
 + #size-cells = 1;
 + ranges;
 + /include/ omap44xx-clocks.dtsi
 + /include/ omap446x-clocks.dtsi
 + };
  };
 diff --git a/arch/arm/boot/dts/omap446x-clocks.dtsi
 b/arch/arm/boot/dts/omap446x-clocks.dtsi new file mode 100644
 index 000..86d0805
 --- /dev/null
 +++ b/arch/arm/boot/dts/omap446x-clocks.dtsi
 @@ -0,0 +1,27 @@
 +/*
 + * Device Tree Source for OMAP446x clock data
 + *
 + * Copyright (C) 2013 Texas Instruments, Inc.
 + *
 + * This program is free software; you can redistribute it and/or modify
 + * it under the terms of the GNU General Public License version 2 as +
 * published by the Free Software Foundation.
 + */
 +
 +div_ts_ck: div_ts_ck@4a307888 {
 + #clock-cells = 0;
 + compatible = divider-clock;
 + clocks = l4_wkup_clk_mux_ck;
 + bit-shift = 24;
 + reg = 0x4a307888 0x4;
 + table =  8 0 ,  16 1 ,  32 2 ;
 + bit-mask = 0x3;
 +};
 +
 +bandgap_ts_fclk: bandgap_ts_fclk@4a307888 {
 + #clock-cells = 0;
 + compatible = gate-clock;
 + clocks = div_ts_ck;
 + bit-shift = 8;
 + reg = 0x4a307888 0x4;
 +};
 diff --git a/arch/arm/boot/dts/omap44xx-clocks.dtsi
 b/arch/arm/boot/dts/omap44xx-clocks.dtsi new file mode 100644
 index 000..23f623c
 --- /dev/null
 +++ b/arch/arm/boot/dts/omap44xx-clocks.dtsi
 @@ -0,0 +1,1648 @@
 +/*
 + * Device Tree Source for OMAP4 clock data
 + *
 + * Copyright (C) 2013 Texas Instruments, Inc.
 + *
 + * This program is free software; you can redistribute it and/or modify
 + * it under the terms of the GNU General Public License version 2 as +
 * published by the Free Software Foundation.
 + */
 +
 +extalt_clkin_ck: extalt_clkin_ck {
 + #clock-cells = 0;
 + compatible = fixed-clock;
 + clock-frequency = 5900;
 +};
 +
 +pad_clks_src_ck: pad_clks_src_ck {
 + #clock-cells = 0;
 + compatible = fixed-clock;
 + clock-frequency = 1200;
 +};
 +
 +pad_clks_ck: pad_clks_ck@4a004108 {
 + #clock-cells = 0;
 + compatible = gate-clock;
 + clocks = pad_clks_src_ck;
 + bit-shift = 8;
 + reg = 0x4a004108 0x4;
 +};
 +
 +pad_slimbus_core_clks_ck: pad_slimbus_core_clks_ck {
 + #clock-cells = 0;
 + compatible = fixed-clock;
 + clock-frequency = 1200;
 +};
 +
 +secure_32k_clk_src_ck: secure_32k_clk_src_ck {
 + #clock-cells = 0;
 + compatible = fixed-clock;
 + clock-frequency = 32768;
 +};
 +
 +slimbus_src_clk: slimbus_src_clk {
 + #clock-cells = 0;
 + compatible = fixed-clock;
 + clock-frequency = 1200;
 +};
 +
 

[PATCHv5 06/31] ARM: dts: omap4 clock data

2013-08-02 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP4 power,
reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly
different clock tree which is taken into account in the data.

Signed-off-by: Tero Kristo t-kri...@ti.com
---
 arch/arm/boot/dts/omap443x-clocks.dtsi |   17 +
 arch/arm/boot/dts/omap443x.dtsi|8 +
 arch/arm/boot/dts/omap4460.dtsi|8 +
 arch/arm/boot/dts/omap446x-clocks.dtsi |   27 +
 arch/arm/boot/dts/omap44xx-clocks.dtsi | 1648 
 5 files changed, 1708 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap443x-clocks.dtsi
 create mode 100644 arch/arm/boot/dts/omap446x-clocks.dtsi
 create mode 100644 arch/arm/boot/dts/omap44xx-clocks.dtsi

diff --git a/arch/arm/boot/dts/omap443x-clocks.dtsi 
b/arch/arm/boot/dts/omap443x-clocks.dtsi
new file mode 100644
index 000..2bd82b2
--- /dev/null
+++ b/arch/arm/boot/dts/omap443x-clocks.dtsi
@@ -0,0 +1,17 @@
+/*
+ * Device Tree Source for OMAP443x clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+bandgap_fclk: bandgap_fclk@4a307888 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = sys_32k_ck;
+   bit-shift = 8;
+   reg = 0x4a307888 0x4;
+};
diff --git a/arch/arm/boot/dts/omap443x.dtsi b/arch/arm/boot/dts/omap443x.dtsi
index bcf455e..dfd648c 100644
--- a/arch/arm/boot/dts/omap443x.dtsi
+++ b/arch/arm/boot/dts/omap443x.dtsi
@@ -30,4 +30,12 @@
   0x4a00232C 0x4;
compatible = ti,omap4430-bandgap;
};
+
+   clocks {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges;
+   /include/ omap44xx-clocks.dtsi
+   /include/ omap443x-clocks.dtsi
+   };
 };
diff --git a/arch/arm/boot/dts/omap4460.dtsi b/arch/arm/boot/dts/omap4460.dtsi
index c2f0f39..d9d00b2 100644
--- a/arch/arm/boot/dts/omap4460.dtsi
+++ b/arch/arm/boot/dts/omap4460.dtsi
@@ -38,4 +38,12 @@
interrupts = 0 126 IRQ_TYPE_LEVEL_HIGH; /* talert */
gpios = gpio3 22 0; /* tshut */
};
+
+   clocks {
+   #address-cells = 1;
+   #size-cells = 1;
+   ranges;
+   /include/ omap44xx-clocks.dtsi
+   /include/ omap446x-clocks.dtsi
+   };
 };
diff --git a/arch/arm/boot/dts/omap446x-clocks.dtsi 
b/arch/arm/boot/dts/omap446x-clocks.dtsi
new file mode 100644
index 000..86d0805
--- /dev/null
+++ b/arch/arm/boot/dts/omap446x-clocks.dtsi
@@ -0,0 +1,27 @@
+/*
+ * Device Tree Source for OMAP446x clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+div_ts_ck: div_ts_ck@4a307888 {
+   #clock-cells = 0;
+   compatible = divider-clock;
+   clocks = l4_wkup_clk_mux_ck;
+   bit-shift = 24;
+   reg = 0x4a307888 0x4;
+   table =  8 0 ,  16 1 ,  32 2 ;
+   bit-mask = 0x3;
+};
+
+bandgap_ts_fclk: bandgap_ts_fclk@4a307888 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = div_ts_ck;
+   bit-shift = 8;
+   reg = 0x4a307888 0x4;
+};
diff --git a/arch/arm/boot/dts/omap44xx-clocks.dtsi 
b/arch/arm/boot/dts/omap44xx-clocks.dtsi
new file mode 100644
index 000..23f623c
--- /dev/null
+++ b/arch/arm/boot/dts/omap44xx-clocks.dtsi
@@ -0,0 +1,1648 @@
+/*
+ * Device Tree Source for OMAP4 clock data
+ *
+ * Copyright (C) 2013 Texas Instruments, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+extalt_clkin_ck: extalt_clkin_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 5900;
+};
+
+pad_clks_src_ck: pad_clks_src_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 1200;
+};
+
+pad_clks_ck: pad_clks_ck@4a004108 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+   clocks = pad_clks_src_ck;
+   bit-shift = 8;
+   reg = 0x4a004108 0x4;
+};
+
+pad_slimbus_core_clks_ck: pad_slimbus_core_clks_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 1200;
+};
+
+secure_32k_clk_src_ck: secure_32k_clk_src_ck {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 32768;
+};
+
+slimbus_src_clk: slimbus_src_clk {
+   #clock-cells = 0;
+   compatible = fixed-clock;
+   clock-frequency = 1200;
+};
+
+slimbus_clk: slimbus_clk@4a004108 {
+   #clock-cells = 0;
+   compatible = gate-clock;
+