LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/PATCH] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
@ 2008-03-11 10:39 Sebastian Siewior
  2008-03-11 18:53 ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Siewior @ 2008-03-11 10:39 UTC (permalink / raw)
  To: linuxppc-embedded

The DT entry is copy / paste from the documentation.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
---
 arch/powerpc/boot/dts/mpc8544ds.dts      |   41 ++++++++++++++++++++++++++++++
 arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
 2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8544ds.dts b/arch/powerpc/boot/dts/mpc8544ds.dts
index 688af9d..fdaf793 100644
--- a/arch/powerpc/boot/dts/mpc8544ds.dts
+++ b/arch/powerpc/boot/dts/mpc8544ds.dts
@@ -116,6 +116,47 @@
 			};
 		};
 
+		dma@21300 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
+			reg = <21300 4>;
+			ranges = <0 21100 200>;
+			cell-index = <0>;
+			dma-channel@0 {
+				compatible = "fsl,mpc8540-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <0 80>;
+				cell-index = <0>;
+				interrupt-parent = <&mpic>;
+				interrupts = <14 2>;
+			};
+			dma-channel@80 {
+				compatible = "fsl,mpc8540-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <80 80>;
+				cell-index = <1>;
+				interrupt-parent = <&mpic>;
+				interrupts = <15 2>;
+			};
+			dma-channel@100 {
+				compatible = "fsl,mpc8540-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <100 80>;
+				cell-index = <2>;
+				interrupt-parent = <&mpic>;
+				interrupts = <16 2>;
+			};
+			dma-channel@180 {
+				compatible = "fsl,mpc8540-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <180 80>;
+				cell-index = <3>;
+				interrupt-parent = <&mpic>;
+				interrupts = <17 2>;
+			};
+		};
+
 		enet0: ethernet@24000 {
 			cell-index = <0>;
 			device_type = "network";
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
index bdb3d0b..b9a3094 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
@@ -19,6 +19,7 @@
 #include <linux/delay.h>
 #include <linux/seq_file.h>
 #include <linux/interrupt.h>
+#include <linux/of_platform.h>
 
 #include <asm/system.h>
 #include <asm/time.h>
@@ -183,6 +184,18 @@ static int __init mpc8544_ds_probe(void)
 	}
 }
 
+static struct of_device_id mpc85xxds_ids[] = {
+	{ .type = "soc", },
+	{ .compatible = "soc", },
+	{},
+};
+
+static int __init mpc85xxds_publish_devices(void)
+{
+	return of_platform_bus_probe(NULL, mpc85xxds_ids, NULL);
+}
+machine_device_initcall(mpc8544_ds, mpc85xxds_publish_devices);
+
 /*
  * Called very early, device-tree isn't unflattened
  */
-- 
1.5.4.3

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

* Re: [RFC/PATCH] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-03-11 10:39 [RFC/PATCH] [POWER] mpc85xx_ds add DMA engine to the DT and parse it Sebastian Siewior
@ 2008-03-11 18:53 ` Kumar Gala
  2008-03-14 23:01   ` [PATCH v2] " Sebastian Siewior
  0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2008-03-11 18:53 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: linuxppc-embedded


On Mar 11, 2008, at 5:39 AM, Sebastian Siewior wrote:

> The DT entry is copy / paste from the documentation.
>
> Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
> ---
> arch/powerpc/boot/dts/mpc8544ds.dts      |   41 +++++++++++++++++++++ 
> +++++++++
> arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
> 2 files changed, 54 insertions(+), 0 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/mpc8544ds.dts b/arch/powerpc/boot/ 
> dts/mpc8544ds.dts
> index 688af9d..fdaf793 100644
> --- a/arch/powerpc/boot/dts/mpc8544ds.dts
> +++ b/arch/powerpc/boot/dts/mpc8544ds.dts
> @@ -116,6 +116,47 @@
> 			};
> 		};
>
> +		dma@21300 {
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +			compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
> +			reg = <21300 4>;
> +			ranges = <0 21100 200>;
> +			cell-index = <0>;
> +			dma-channel@0 {
> +				compatible = "fsl,mpc8540-dma-channel",
> +						"fsl,eloplus-dma-channel";

this should be mpc8544-dma everywhere.

- k

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

* [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-03-11 18:53 ` Kumar Gala
@ 2008-03-14 23:01   ` Sebastian Siewior
  2008-04-10 14:46     ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Siewior @ 2008-03-14 23:01 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

This is a modified entry I found in the documentation for the 8544.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
---
 arch/powerpc/boot/dts/mpc8544ds.dts      |   41 ++++++++++++++++++++++++++++++
 arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
 2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8544ds.dts b/arch/powerpc/boot/dts/mpc8544ds.dts
index 688af9d..131ffaa 100644
--- a/arch/powerpc/boot/dts/mpc8544ds.dts
+++ b/arch/powerpc/boot/dts/mpc8544ds.dts
@@ -116,6 +116,47 @@
 			};
 		};
 
+		dma@21300 {
+			#address-cells = <1>;
+			#size-cells = <1>;
+			compatible = "fsl,mpc8544-dma", "fsl,eloplus-dma";
+			reg = <21300 4>;
+			ranges = <0 21100 200>;
+			cell-index = <0>;
+			dma-channel@0 {
+				compatible = "fsl,mpc8544-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <0 80>;
+				cell-index = <0>;
+				interrupt-parent = <&mpic>;
+				interrupts = <14 2>;
+			};
+			dma-channel@80 {
+				compatible = "fsl,mpc8544-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <80 80>;
+				cell-index = <1>;
+				interrupt-parent = <&mpic>;
+				interrupts = <15 2>;
+			};
+			dma-channel@100 {
+				compatible = "fsl,mpc8544-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <100 80>;
+				cell-index = <2>;
+				interrupt-parent = <&mpic>;
+				interrupts = <16 2>;
+			};
+			dma-channel@180 {
+				compatible = "fsl,mpc8544-dma-channel",
+						"fsl,eloplus-dma-channel";
+				reg = <180 80>;
+				cell-index = <3>;
+				interrupt-parent = <&mpic>;
+				interrupts = <17 2>;
+			};
+		};
+
 		enet0: ethernet@24000 {
 			cell-index = <0>;
 			device_type = "network";
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
index bdb3d0b..b9a3094 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
@@ -19,6 +19,7 @@
 #include <linux/delay.h>
 #include <linux/seq_file.h>
 #include <linux/interrupt.h>
+#include <linux/of_platform.h>
 
 #include <asm/system.h>
 #include <asm/time.h>
@@ -183,6 +184,18 @@ static int __init mpc8544_ds_probe(void)
 	}
 }
 
+static struct of_device_id mpc85xxds_ids[] = {
+	{ .type = "soc", },
+	{ .compatible = "soc", },
+	{},
+};
+
+static int __init mpc85xxds_publish_devices(void)
+{
+	return of_platform_bus_probe(NULL, mpc85xxds_ids, NULL);
+}
+machine_device_initcall(mpc8544_ds, mpc85xxds_publish_devices);
+
 /*
  * Called very early, device-tree isn't unflattened
  */
-- 
1.5.4.3

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

* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-03-14 23:01   ` [PATCH v2] " Sebastian Siewior
@ 2008-04-10 14:46     ` Kumar Gala
  2008-04-10 15:12       ` Sebastian Siewior
  0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2008-04-10 14:46 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: linuxppc-embedded


On Mar 14, 2008, at 6:01 PM, Sebastian Siewior wrote:
> This is a modified entry I found in the documentation for the 8544.
>
> Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
> ---
> arch/powerpc/boot/dts/mpc8544ds.dts      |   41 +++++++++++++++++++++ 
> +++++++++
> arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
> 2 files changed, 54 insertions(+), 0 deletions(-)

applied.

I also added updating the defconfig to enable the driver by default.

- k

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

* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-04-10 14:46     ` Kumar Gala
@ 2008-04-10 15:12       ` Sebastian Siewior
  2008-04-10 15:33         ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Siewior @ 2008-04-10 15:12 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

* Kumar Gala | 2008-04-10 09:46:39 [-0500]:

>>This is a modified entry I found in the documentation for the 8544.
>>
>>Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
>>---
>>arch/powerpc/boot/dts/mpc8544ds.dts      |   41 +++++++++++++++++++++ 
>>+++++++++
>>arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
>>2 files changed, 54 insertions(+), 0 deletions(-)
>
>applied.
Thank you.

>I also added updating the defconfig to enable the driver by default.
I just noticed that commit 049c9d455 renamed the ids. I couldn't find
this commit in your git tree. Did you rename the ids in the .dts file
(or want me to do this)?

>- k
Sebastian

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

* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-04-10 15:12       ` Sebastian Siewior
@ 2008-04-10 15:33         ` Kumar Gala
  2008-04-10 15:39           ` Sebastian Siewior
  0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2008-04-10 15:33 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: linuxppc-embedded


On Apr 10, 2008, at 10:12 AM, Sebastian Siewior wrote:
> * Kumar Gala | 2008-04-10 09:46:39 [-0500]:
>
>>> This is a modified entry I found in the documentation for the 8544.
>>>
>>> Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
>>> ---
>>> arch/powerpc/boot/dts/mpc8544ds.dts      |   41 +++++++++++++++++++ 
>>> ++
>>> +++++++++
>>> arch/powerpc/platforms/85xx/mpc85xx_ds.c |   13 +++++++++
>>> 2 files changed, 54 insertions(+), 0 deletions(-)
>>
>> applied.
> Thank you.
>
>> I also added updating the defconfig to enable the driver by default.
> I just noticed that commit 049c9d455 renamed the ids. I couldn't find
> this commit in your git tree. Did you rename the ids in the .dts file
> (or want me to do this)?

I think they are already in sync am I missing something?

- k

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

* Re: [PATCH v2] [POWER] mpc85xx_ds add DMA engine to the DT and parse it.
  2008-04-10 15:33         ` Kumar Gala
@ 2008-04-10 15:39           ` Sebastian Siewior
  0 siblings, 0 replies; 7+ messages in thread
From: Sebastian Siewior @ 2008-04-10 15:39 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-embedded

* Kumar Gala | 2008-04-10 10:33:11 [-0500]:

>>>I also added updating the defconfig to enable the driver by default.
>>I just noticed that commit 049c9d455 renamed the ids. I couldn't find
>>this commit in your git tree. Did you rename the ids in the .dts file
>>(or want me to do this)?
>
>I think they are already in sync am I missing something?
Ah, the .dts has mpc8544* and eloplus* so it should be fine. Just got
confused by the another commit.

>- k
Sebastian

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

end of thread, other threads:[~2008-04-10 15:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11 10:39 [RFC/PATCH] [POWER] mpc85xx_ds add DMA engine to the DT and parse it Sebastian Siewior
2008-03-11 18:53 ` Kumar Gala
2008-03-14 23:01   ` [PATCH v2] " Sebastian Siewior
2008-04-10 14:46     ` Kumar Gala
2008-04-10 15:12       ` Sebastian Siewior
2008-04-10 15:33         ` Kumar Gala
2008-04-10 15:39           ` Sebastian Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox