[PATCH 1/6] ARM: dts: Add CPU OPP table for omap37xx100

2014-01-21 Thread Christoph Fritz
This patch adds file omap37xx100.dtsi which includs a SoC specific table
for CPU OPP.

Please keep in mind that am/dm37xx100 variants differ from am/dm37xx
SoCs without nomenclature marker prefix 100. This marker indicates
the maximum cpu frequency. 100 stands for 1 GHz-Cortex-A8, blank means
maximum 800 MHz.

For more info, see Datasheet http://www.ti.com/lit/ds/sprs685d/sprs685d.pdf
section 7.2.1 Device and Development-Support Tool Nomenclature.

Signed-off-by: Christoph Fritz chf.fr...@googlemail.com
---
 arch/arm/boot/dts/omap37xx100.dtsi |   44 
 1 file changed, 44 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap37xx100.dtsi

diff --git a/arch/arm/boot/dts/omap37xx100.dtsi 
b/arch/arm/boot/dts/omap37xx100.dtsi
new file mode 100644
index 000..064661e
--- /dev/null
+++ b/arch/arm/boot/dts/omap37xx100.dtsi
@@ -0,0 +1,44 @@
+/*
+ * Device Tree Source for OMAP37x SoC
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2.  This program is licensed as is without any warranty of any
+ * kind, whether express or implied.
+ */
+
+#include omap3.dtsi
+
+/ {
+   aliases {
+   serial3 = uart4;
+   };
+
+   cpus {
+   /* AM/DM37xx */
+   cpu@0 {
+   operating-points = 
+   /* kHzuV */
+125000   975000
+25  1075000
+50  110
+60  114
+80  127
+   100  138
+   ;
+   clock-latency = 30; /* From legacy driver */
+   };
+   };
+
+   ocp {
+   /* uart4 is only available on CBP and CBC packages */
+   uart4: serial@49042000 {
+   compatible = ti,omap3-uart;
+   reg = 0x49042000 0x400;
+   interrupts = 80;
+   dmas = sdma 81 sdma 82;
+   dma-names = tx, rx;
+   ti,hwmods = uart4;
+   clock-frequency = 4800;
+   };
+   };
+};
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/6] ARM: dts: Add CPU OPP table for omap37xx100

2014-01-21 Thread Nishanth Menon
On 01/21/2014 01:47 PM, Christoph Fritz wrote:
 This patch adds file omap37xx100.dtsi which includs a SoC specific table
 for CPU OPP.
 
 Please keep in mind that am/dm37xx100 variants differ from am/dm37xx
 SoCs without nomenclature marker prefix 100. This marker indicates
 the maximum cpu frequency. 100 stands for 1 GHz-Cortex-A8, blank means
 maximum 800 MHz.
 
 For more info, see Datasheet http://www.ti.com/lit/ds/sprs685d/sprs685d.pdf
 section 7.2.1 Device and Development-Support Tool Nomenclature.
 
 Signed-off-by: Christoph Fritz chf.fr...@googlemail.com
 ---
  arch/arm/boot/dts/omap37xx100.dtsi |   44 
 
  1 file changed, 44 insertions(+)
  create mode 100644 arch/arm/boot/dts/omap37xx100.dtsi
 
 diff --git a/arch/arm/boot/dts/omap37xx100.dtsi 
 b/arch/arm/boot/dts/omap37xx100.dtsi
 new file mode 100644
 index 000..064661e
 --- /dev/null
 +++ b/arch/arm/boot/dts/omap37xx100.dtsi
 @@ -0,0 +1,44 @@
 +/*
 + * Device Tree Source for OMAP37x SoC
 + *
 + * This file is licensed under the terms of the GNU General Public License
 + * version 2.  This program is licensed as is without any warranty of any
 + * kind, whether express or implied.
 + */
 +
 +#include omap3.dtsi
 +
 +/ {
 + aliases {
 + serial3 = uart4;
 + };
 +
 + cpus {
 + /* AM/DM37xx */
 + cpu@0 {
 + operating-points = 
 + /* kHzuV */
 +  125000   975000
 +  25  1075000
 +  50  110
 +  60  114
 +  80  127
 + 100  138

This is valid even for 3630/DM3730 as well - unfortunately - you
cannot enable 1GHz without enabling ABB and AVS 1.5.

There is a bunch of internal discussion with respect to lack of this
information available.. but as it stands right now, I dont think this
is valid.

 + ;
 + clock-latency = 30; /* From legacy driver */
 + };
 + };
 +
 + ocp {
 + /* uart4 is only available on CBP and CBC packages */
 + uart4: serial@49042000 {
 + compatible = ti,omap3-uart;
 + reg = 0x49042000 0x400;
 + interrupts = 80;
 + dmas = sdma 81 sdma 82;
 + dma-names = tx, rx;
 + ti,hwmods = uart4;
 + clock-frequency = 4800;
 + };
 + };
 +};
 
Further, we should be able to reuse 3630.dtsi for this.


-- 
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html