devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data
@ 2012-11-05 12:52 Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 1/3] ARM: dts: omap5-evm: Fix size of memory defined for EVM Lokesh Vutla
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lokesh Vutla @ 2012-11-05 12:52 UTC (permalink / raw)
  To: b-cousson
  Cc: linux-omap, linux-arm-kernel, santosh.shilimkar,
	devicetree-discuss, lokeshvutla

This patch series adds Device tree data for the EMIF 
sdram controllers in OMAP5 and LPDDR2 memory devices 
in OMAP5-evm board.

Testing:
- Boot tested on OMAP5430 evm.
- Built EMIF as a module.

Changes from v2:
* Rebased on top of
  git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git for_3.8/dts
* Addressed few other comments from Benoit.

Lokesh Vutla (3):
  ARM: dts: omap5-evm: Fix size of memory defined for EVM
  ARM: dts: omap5: EMIF device tree data for OMAP5 boards
  ARM: dts: omap5-evm: LPDDR2 memory device details for EVM

 arch/arm/boot/dts/omap5-evm.dts           |   13 +++++-
 arch/arm/boot/dts/omap5.dtsi              |   22 ++++++++++
 arch/arm/boot/dts/samsung_k3pe0e000b.dtsi |   67 +++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/samsung_k3pe0e000b.dtsi

-- 
1.7.9.5


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

* [PATCH V3 1/3] ARM: dts: omap5-evm: Fix size of memory defined for EVM
  2012-11-05 12:52 [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Lokesh Vutla
@ 2012-11-05 12:52 ` Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 2/3] ARM: dts: omap5: EMIF device tree data for OMAP5 boards Lokesh Vutla
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lokesh Vutla @ 2012-11-05 12:52 UTC (permalink / raw)
  To: b-cousson
  Cc: linux-omap, linux-arm-kernel, santosh.shilimkar,
	devicetree-discuss, lokeshvutla

Memory present for OMAP5-evm is 2GB. But in dts file
it is specified as 1GB. Correcting the same.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 arch/arm/boot/dts/omap5-evm.dts |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index c663eba..88d3d9b8 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -15,7 +15,7 @@
 
 	memory {
 		device_type = "memory";
-		reg = <0x80000000 0x40000000>; /* 1 GB */
+		reg = <0x80000000 0x80000000>; /* 2 GB */
 	};
 
 	vmmcsd_fixed: fixedregulator-mmcsd {
-- 
1.7.9.5


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

* [PATCH V3 2/3] ARM: dts: omap5: EMIF device tree data for OMAP5 boards
  2012-11-05 12:52 [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 1/3] ARM: dts: omap5-evm: Fix size of memory defined for EVM Lokesh Vutla
@ 2012-11-05 12:52 ` Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 3/3] ARM: dts: omap5-evm: LPDDR2 memory device details for EVM Lokesh Vutla
  2012-11-05 17:45 ` [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Benoit Cousson
  3 siblings, 0 replies; 5+ messages in thread
From: Lokesh Vutla @ 2012-11-05 12:52 UTC (permalink / raw)
  To: b-cousson
  Cc: linux-omap, linux-arm-kernel, santosh.shilimkar,
	devicetree-discuss, lokeshvutla

Adding EMIF device tree data for OMAP5 boards.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 arch/arm/boot/dts/omap5.dtsi |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index ead74c8..790bb2a 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -474,5 +474,27 @@
 			ti,hwmods = "timer11";
 			ti,timer-pwm;
 		};
+
+		emif1: emif@0x4c000000 {
+			compatible	= "ti,emif-4d5";
+			ti,hwmods	= "emif1";
+			phy-type	= <2>; /* DDR PHY type: Intelli PHY */
+			reg = <0x4c000000 0x400>;
+			interrupts = <0 110 0x4>;
+			hw-caps-read-idle-ctrl;
+			hw-caps-ll-interface;
+			hw-caps-temp-alert;
+		};
+
+		emif2: emif@0x4d000000 {
+			compatible	= "ti,emif-4d5";
+			ti,hwmods	= "emif2";
+			phy-type	= <2>; /* DDR PHY type: Intelli PHY */
+			reg = <0x4d000000 0x400>;
+			interrupts = <0 111 0x4>;
+			hw-caps-read-idle-ctrl;
+			hw-caps-ll-interface;
+			hw-caps-temp-alert;
+		};
 	};
 };
-- 
1.7.9.5


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

* [PATCH V3 3/3] ARM: dts: omap5-evm: LPDDR2 memory device details for EVM
  2012-11-05 12:52 [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 1/3] ARM: dts: omap5-evm: Fix size of memory defined for EVM Lokesh Vutla
  2012-11-05 12:52 ` [PATCH V3 2/3] ARM: dts: omap5: EMIF device tree data for OMAP5 boards Lokesh Vutla
@ 2012-11-05 12:52 ` Lokesh Vutla
  2012-11-05 17:45 ` [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Benoit Cousson
  3 siblings, 0 replies; 5+ messages in thread
From: Lokesh Vutla @ 2012-11-05 12:52 UTC (permalink / raw)
  To: b-cousson
  Cc: linux-omap, linux-arm-kernel, santosh.shilimkar,
	devicetree-discuss, lokeshvutla

Samsung's K3PE0E000B memory part is used in OMAP5-evm board.
Adding timings and geometry details for Samsung's memory part and
attaching the same to device-handle of EMIF1/2.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 arch/arm/boot/dts/omap5-evm.dts           |   11 +++++
 arch/arm/boot/dts/samsung_k3pe0e000b.dtsi |   67 +++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 arch/arm/boot/dts/samsung_k3pe0e000b.dtsi

diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 88d3d9b8..8722c15 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -8,6 +8,7 @@
 /dts-v1/;
 
 /include/ "omap5.dtsi"
+/include/ "samsung_k3pe0e000b.dtsi"
 
 / {
 	model = "TI OMAP5 EVM board";
@@ -140,3 +141,13 @@
 &mcbsp3 {
 	status = "disabled";
 };
+
+&emif1 {
+	cs1-used;
+	device-handle = <&samsung_K3PE0E000B>;
+};
+
+&emif2 {
+	cs1-used;
+	device-handle = <&samsung_K3PE0E000B>;
+};
diff --git a/arch/arm/boot/dts/samsung_k3pe0e000b.dtsi b/arch/arm/boot/dts/samsung_k3pe0e000b.dtsi
new file mode 100644
index 0000000..9657a5c
--- /dev/null
+++ b/arch/arm/boot/dts/samsung_k3pe0e000b.dtsi
@@ -0,0 +1,67 @@
+/*
+ * Timings and Geometry for Samsung K3PE0E000B memory part
+ */
+
+/ {
+	samsung_K3PE0E000B: lpddr2 {
+		compatible	= "Samsung,K3PE0E000B","jedec,lpddr2-s4";
+		density		= <4096>;
+		io-width	= <32>;
+
+		tRPab-min-tck	= <3>;
+		tRCD-min-tck	= <3>;
+		tWR-min-tck	= <3>;
+		tRASmin-min-tck	= <3>;
+		tRRD-min-tck	= <2>;
+		tWTR-min-tck	= <2>;
+		tXP-min-tck	= <2>;
+		tRTP-min-tck	= <2>;
+		tCKE-min-tck	= <3>;
+		tCKESR-min-tck	= <3>;
+		tFAW-min-tck	= <8>;
+
+		timings_samsung_K3PE0E000B_533MHz: lpddr2-timings@0 {
+			compatible	= "jedec,lpddr2-timings";
+			min-freq	= <10000000>;
+			max-freq	= <533333333>;
+			tRPab		= <21000>;
+			tRCD		= <18000>;
+			tWR		= <15000>;
+			tRAS-min	= <42000>;
+			tRRD		= <10000>;
+			tWTR		= <7500>;
+			tXP		= <7500>;
+			tRTP		= <7500>;
+			tCKESR		= <15000>;
+			tDQSCK-max	= <5500>;
+			tFAW		= <50000>;
+			tZQCS		= <90000>;
+			tZQCL		= <360000>;
+			tZQinit		= <1000000>;
+			tRAS-max-ns	= <70000>;
+			tDQSCK-max-derated = <6000>;
+		};
+
+		timings_samsung_K3PE0E000B_266MHz: lpddr2-timings@1 {
+			compatible	= "jedec,lpddr2-timings";
+			min-freq	= <10000000>;
+			max-freq	= <266666666>;
+			tRPab		= <21000>;
+			tRCD		= <18000>;
+			tWR		= <15000>;
+			tRAS-min	= <42000>;
+			tRRD		= <10000>;
+			tWTR		= <7500>;
+			tXP		= <7500>;
+			tRTP		= <7500>;
+			tCKESR		= <15000>;
+			tDQSCK-max	= <5500>;
+			tFAW		= <50000>;
+			tZQCS		= <90000>;
+			tZQCL		= <360000>;
+			tZQinit		= <1000000>;
+			tRAS-max-ns	= <70000>;
+			tDQSCK-max-derated = <6000>;
+		};
+	};
+};
-- 
1.7.9.5


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

* Re: [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data
  2012-11-05 12:52 [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Lokesh Vutla
                   ` (2 preceding siblings ...)
  2012-11-05 12:52 ` [PATCH V3 3/3] ARM: dts: omap5-evm: LPDDR2 memory device details for EVM Lokesh Vutla
@ 2012-11-05 17:45 ` Benoit Cousson
  3 siblings, 0 replies; 5+ messages in thread
From: Benoit Cousson @ 2012-11-05 17:45 UTC (permalink / raw)
  To: Lokesh Vutla
  Cc: linux-omap, linux-arm-kernel, santosh.shilimkar,
	devicetree-discuss

Hi Lokesh,

On 11/05/2012 01:52 PM, Lokesh Vutla wrote:
> This patch series adds Device tree data for the EMIF 
> sdram controllers in OMAP5 and LPDDR2 memory devices 
> in OMAP5-evm board.
> 
> Testing:
> - Boot tested on OMAP5430 evm.
> - Built EMIF as a module.
> 
> Changes from v2:
> * Rebased on top of
>   git://git.kernel.org/pub/scm/linux/kernel/git/bcousson/linux-omap-dt.git for_3.8/dts
> * Addressed few other comments from Benoit.

Thanks for this quick update.
I've just applied your series in my for_3.8/dts_part2 branch.

Regards,
Benoit


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

end of thread, other threads:[~2012-11-05 17:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-05 12:52 [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Lokesh Vutla
2012-11-05 12:52 ` [PATCH V3 1/3] ARM: dts: omap5-evm: Fix size of memory defined for EVM Lokesh Vutla
2012-11-05 12:52 ` [PATCH V3 2/3] ARM: dts: omap5: EMIF device tree data for OMAP5 boards Lokesh Vutla
2012-11-05 12:52 ` [PATCH V3 3/3] ARM: dts: omap5-evm: LPDDR2 memory device details for EVM Lokesh Vutla
2012-11-05 17:45 ` [PATCH V3 0/3] ARM: dts: omap5: EMIF and LPDDR2 device tree data Benoit Cousson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).